Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork398
Github Action para ejecutar powrap fix con un comentario#1836
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
erickisos wants to merge35 commits intopython:3.13Choose a base branch fromerickisos:3.10
base:3.13
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes fromall commits
Commits
Show all changes
35 commits Select commitHold shift + click to select a range
9f36e72 wip: github action to run pospell
erickisos4784132 fix: execute only on PR
erickisosb60f901 Apply suggestions from code review
erickisos94a5617 rename and add continue-on-error
erickisos4c88e59 one liner to avoid confusion
erickisos8a35070 Merge pull request #1 from erickisos/github-actions
erickisos5e8294d Update check_spell.py
erickisose97b234 delete duplicated file
erickisosa298acd fix createforIssueComment
erickisos89efe08 Merge pull request #2 from erickisos/erickisos-patch-1
erickisosc6cd5c9 react to comment
erickisos4660c60 Merge pull request #3 from erickisos/fix-reaction
erickisos48359fa Update pospell-on-demand.yml
erickisos1f6c82f add cache apt action
erickisosecc94e1 fix: add apt cache
erickisos284a519 Merge pull request #4 from erickisos/erickisos-patch-1
erickisosb620336 Merge branch '3.10' into fix-reaction
erickisos0e43eca Merge pull request #5 from erickisos/fix-reaction
erickisosbeb9bfe Rollback a check_spell
erickisos75fd847 Update scripts/check_spell.py
erickisos55fe5e7 Apply suggestions from code review
erickisos0f8c793 Update .github/workflows/pospell-on-demand.yml
erickisosfe0bbda Rename pospell-on-demand.yml to execute-powrap.yml
erickisos64a4e23 Merge branch 'python:3.10' into 3.10
erickisos2bcf7ea rollback to previous commit action
erickisos26e3093 Merge pull request #8 from erickisos/rollback-push-action
erickisosda6981a Add branch name to action-js
erickisos3f5ac33 Merge pull request #9 from erickisos/sent-branch-name
erickisosb821192 Update execute-powrap.yml
erickisosbbef6e3 Merge pull request #10 from erickisos/erickisos-patch-3
erickisos111a24d Update execute-powrap.yml
erickisosc03192f Merge pull request #11 from erickisos/erickisos-patch-3
erickisos0b465a5 Merge branch '3.10' into 3.10
erickisos5f3b136 Reducir la carga eliminando otras dependencias
erickisosc609c52 Merge branch '3.13' into 3.10
erickisosFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
42 changes: 42 additions & 0 deletions.github/workflows/execute-powrap.yml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| name: Ejecuta powrap | ||
| on: | ||
| issue_comment: | ||
| types: | ||
| - edited | ||
| - created | ||
| jobs: | ||
| ejecutar-powrap: | ||
| name: Revisa y repara el formato con Powrap | ||
| runs-on: ubuntu-latest | ||
| if: ${{ github.event.issue.pull_request && github.event.comment.body == 'powrap-fix' }} | ||
| steps: | ||
| - name: Confirmar ejecucion | ||
| continue-on-error: true | ||
| run: | | ||
| curl ${{github.event.comment.url}}/reactions \ | ||
| -X POST \ | ||
| -d '{"content":"+1"}' \ | ||
| -H "Accept: application/vnd.github.squirrel-girl-preview+json" \ | ||
| -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" | ||
| - uses: actions/checkout@v3 | ||
erickisos marked this conversation as resolved. Show resolvedHide resolvedUh oh!There was an error while loading.Please reload this page. | ||
| - uses: awalsh128/cache-apt-pkgs-action@latest | ||
| with: | ||
| packages: gettext | ||
| version: 1.0 | ||
| - name: Preparar Python v3.10 | ||
| uses: actions/setup-python@v4 | ||
| with: | ||
| python-version: "3.10" | ||
| cache: "pip" | ||
| - name: Instalar dependencias | ||
| run: python -m pip install powrap | ||
| - name: Ejecutar Powrap | ||
| run: powrap --quiet **/*.po | ||
| - name: Commit & Push changes | ||
| uses: actions-js/push@master | ||
| with: | ||
| message: "auto: spell check" | ||
| branch: ${{ github.head_ref }} | ||
| github_token: ${{ secrets.GITHUB_TOKEN }} | ||
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.