Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8a35070

Browse files
authored
Merge pull request#1 from erickisos/github-actions
Add Github action to run pospell on a comment
2 parents6713fc1 +4c88e59 commit8a35070

File tree

2 files changed

+90
-0
lines changed

2 files changed

+90
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name:pospell
2+
on:
3+
issue_comment:
4+
types:
5+
-created
6+
7+
jobs:
8+
fix-spell:
9+
name:Fix spelling
10+
runs-on:ubuntu-latest
11+
if:|
12+
github.event.comment.body == 'run-powrap'
13+
&& github.event.issue.pull_request
14+
steps:
15+
-name:Confirmar ejecucion
16+
uses:actions/github-script@v6
17+
with:
18+
script:|
19+
const {owner, repo} = context.issue
20+
github.reactions.createForIssueComment({
21+
owner,
22+
repo,
23+
comment_id: context.payload.comment.id,
24+
content: "+1",
25+
});
26+
-uses:actions/checkout@v3
27+
-name:Preparar Python v3.10
28+
uses:actions/setup-python@v4
29+
with:
30+
python-version:"3.10"
31+
cache:"pip"
32+
-name:Instalar dependencias
33+
run:|
34+
sudo apt-get update
35+
sudo apt-get install -y hunspell hunspell-es gettext
36+
python -m pip install -r requirements.txt
37+
-name:Ejecutar Powrap
38+
run:powrap --quiet **/*.po
39+
-name:Revisar con Pospell
40+
run:python scripts/check_spell.py
41+
continue-on-error:true
42+
-name:Commit & Push changes
43+
uses:actions-js/push@master
44+
with:
45+
message:"auto: spell check"
46+
github_token:${{ secrets.GITHUB_TOKEN }}

‎.github/workflows/pospell.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name:pospell
2+
on:
3+
issue_comment:
4+
types:
5+
-edited
6+
-created
7+
8+
jobs:
9+
fix-spell:
10+
name:Fix spelling
11+
runs-on:ubuntu-latest
12+
if:${{ github.event.issue.pull_request && github.event.comment.body == 'pospell-fix' }}
13+
steps:
14+
-name:Confirm process
15+
uses:actions/github-script@v6
16+
with:
17+
script:|
18+
const {owner, repo} = context.issue
19+
github.reactions.createForIssueComment({
20+
owner,
21+
repo,
22+
comment_id: context.payload.comment.id,
23+
content: "+1",
24+
});
25+
-uses:actions/checkout@v3
26+
-name:Preparar Python v3.10
27+
uses:actions/setup-python@v4
28+
with:
29+
python-version:"3.10"
30+
cache:"pip"
31+
-name:Instalar dependencias
32+
run:|
33+
sudo apt-get update
34+
sudo apt-get install -y hunspell hunspell-es gettext
35+
python -m pip install -r requirements.txt
36+
-name:Powrap
37+
run:powrap --quiet **/*.po
38+
-name:Pospell
39+
run:python scripts/check_spell.py
40+
-name:Commit & Push changes
41+
uses:actions-js/push@master
42+
with:
43+
message:"auto: spell check"
44+
github_token:${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp