-
Notifications
You must be signed in to change notification settings - Fork 397
Ejecuta pospell con un comentario en el PR #1825
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
9f36e72
wip: github action to run pospell
erickisos fe540b9
corrige y añade traductores faltantes
cacrespo 04cd006
Merge pull request #1827 from cacrespo/fix_translators
raulcd bbfed35
logo python-docs-es + instrucciones de cómo generarlo (#1828)
mmmarcos 29d216b
Chequea orden en TRANSLATORS (#1830)
rtobar 23e34ff
nombre de directorio adecuado (#1829)
cacrespo a7fbd71
Usar 'lanzar' para 'raise' (#1816)
cmaureir ef2d567
Varias correcciones en el módulo `time` (#1831)
gio8tisu 6713fc1
Fix built-in Sphinx substitutions. (#1834)
ezio-melotti 4784132
fix: execute only on PR
erickisos b60f901
Apply suggestions from code review
erickisos 94a5617
rename and add continue-on-error
erickisos 4c88e59
one liner to avoid confusion
erickisos 8a35070
Merge pull request #1 from erickisos/github-actions
erickisos 5e8294d
Update check_spell.py
erickisos e97b234
delete duplicated file
erickisos a298acd
fix createforIssueComment
erickisos 89efe08
Merge pull request #2 from erickisos/erickisos-patch-1
erickisos File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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: pospell | ||
on: | ||
issue_comment: | ||
types: | ||
- created | ||
|
||
jobs: | ||
fix-spell: | ||
name: Fix spelling | ||
runs-on: ubuntu-latest | ||
if: ${{ github.event.comment.body == 'pospell-fix'}} | ||
erickisos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
steps: | ||
- name: Confirm process | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
const {owner, repo} = context.issue | ||
github.reactions.createForIssueComment({ | ||
owner, | ||
repo, | ||
comment_id: context.payload.comment.id, | ||
content: "+1", | ||
}); | ||
- uses: actions/checkout@v2 | ||
erickisos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Preparar Python v3.10 | ||
uses: actions/setup-python@v2 | ||
erickisos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
with: | ||
python-version: "3.10" | ||
erickisos marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Instalar dependencias | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y hunspell hunspell-es gettext | ||
python -m pip install -r requirements.txt | ||
- name: Powrap | ||
run: powrap --quiet **/*.po | ||
- name: Pospell | ||
run: python scripts/check_spell.py | ||
- name: Commit & Push changes | ||
uses: actions-js/push@master | ||
with: | ||
message: "auto: spell check" | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
erickisos marked this conversation as resolved.
Show resolved
Hide resolved
|
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.
Uh oh!
There was an error while loading. Please reload this page.