Visitar URL original
Ejecuta pospell con un comentario en el PR by erickisos · Pull Request #1825 · python/python-docs-es · GitHub
Skip to content
Closed
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 5 additions & 7 deletions .github/workflows/pospell-on-demand.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,22 @@ name: pospell
on:
issue_comment:
types:
- edited
- created

jobs:
fix-spell:
name: Fix spelling
runs-on: ubuntu-latest
if: |
github.event.comment.body == 'run-powrap'
&& github.event.issue.pull_request
if: ${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }}
steps:
- name: Confirmar ejecucion
uses: actions/github-script@v6
with:
script: |
const {owner, repo} = context.issue
github.reactions.createForIssueComment({
owner,
repo,
await github.rest.issues.createForIssueComment({
context.repo.owner,
context.repo.repo,
comment_id: context.payload.comment.id,
content: "+1",
});
Expand Down
44 changes: 0 additions & 44 deletions .github/workflows/pospell.yml

This file was deleted.

4 changes: 1 addition & 3 deletions scripts/check_spell.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,7 @@
# Write merged dictionary file
output_filename = tempfile.mktemp(suffix="_merged_dict.txt")
with open(output_filename, "w") as f:
for e in entries:
f.write(e)
f.write("\n")
f.writelines(entries)

# Run pospell either against all files or the file given on the command line
po_files = sys.argv[1:]
Expand Down