Skip to content
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

Github Action para ejecutar powrap fix con un comentario #1836

Open
wants to merge 34 commits into
base: 3.10
Choose a base branch
from
Open
Changes from 32 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
9f36e72
wip: github action to run pospell
erickisos Feb 13, 2022
4784132
fix: execute only on PR
erickisos Oct 3, 2022
b60f901
Apply suggestions from code review
erickisos Oct 3, 2022
94a5617
rename and add continue-on-error
erickisos Oct 3, 2022
4c88e59
one liner to avoid confusion
erickisos Oct 3, 2022
8a35070
Merge pull request #1 from erickisos/github-actions
erickisos Oct 4, 2022
5e8294d
Update check_spell.py
erickisos Oct 4, 2022
e97b234
delete duplicated file
erickisos Oct 4, 2022
a298acd
fix createforIssueComment
erickisos Oct 4, 2022
89efe08
Merge pull request #2 from erickisos/erickisos-patch-1
erickisos Oct 4, 2022
c6cd5c9
react to comment
erickisos Oct 4, 2022
4660c60
Merge pull request #3 from erickisos/fix-reaction
erickisos Oct 4, 2022
48359fa
Update pospell-on-demand.yml
erickisos Oct 5, 2022
1f6c82f
add cache apt action
erickisos Oct 5, 2022
ecc94e1
fix: add apt cache
erickisos Oct 5, 2022
284a519
Merge pull request #4 from erickisos/erickisos-patch-1
erickisos Oct 5, 2022
b620336
Merge branch '3.10' into fix-reaction
erickisos Oct 5, 2022
0e43eca
Merge pull request #5 from erickisos/fix-reaction
erickisos Oct 5, 2022
beb9bfe
Rollback a check_spell
erickisos Oct 5, 2022
75fd847
Update scripts/check_spell.py
erickisos Oct 5, 2022
55fe5e7
Apply suggestions from code review
erickisos Oct 5, 2022
0f8c793
Update .github/workflows/pospell-on-demand.yml
erickisos Oct 5, 2022
fe0bbda
Rename pospell-on-demand.yml to execute-powrap.yml
erickisos Oct 5, 2022
64a4e23
Merge branch 'python:3.10' into 3.10
erickisos Oct 6, 2022
2bcf7ea
rollback to previous commit action
erickisos Oct 8, 2022
26e3093
Merge pull request #8 from erickisos/rollback-push-action
erickisos Oct 8, 2022
da6981a
Add branch name to action-js
erickisos Oct 8, 2022
3f5ac33
Merge pull request #9 from erickisos/sent-branch-name
erickisos Oct 8, 2022
b821192
Update execute-powrap.yml
erickisos Oct 8, 2022
bbef6e3
Merge pull request #10 from erickisos/erickisos-patch-3
erickisos Oct 8, 2022
111a24d
Update execute-powrap.yml
erickisos Oct 8, 2022
c03192f
Merge pull request #11 from erickisos/erickisos-patch-3
erickisos Oct 8, 2022
0b465a5
Merge branch '3.10' into 3.10
erickisos Oct 26, 2022
5f3b136
Reducir la carga eliminando otras dependencias
erickisos Oct 28, 2022
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
42 changes: 42 additions & 0 deletions .github/workflows/execute-powrap.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Ejecuta powrap

on:
issue_comment:
types:
- edited
- created

jobs:
fix-spell:
name: Fix spelling
erickisos marked this conversation as resolved.
Show resolved Hide resolved
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 resolved Hide resolved
- uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: hunspell hunspell-es gettext
erickisos marked this conversation as resolved.
Show resolved Hide resolved
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 -r requirements.txt
erickisos marked this conversation as resolved.
Show resolved Hide resolved
- 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 }}