Skip to content

Commit a8a0d8d

Browse files
committed
ENH: upgrade action-style-guide==0.3
1 parent e9402db commit a8a0d8d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/style-guide.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
name: Style Guide Checker
1+
name: Style Guide Comment Trigger
22
on:
3+
issues:
4+
types: [opened, edited]
35
issue_comment:
46
types: [created]
57

68
jobs:
7-
review:
8-
if: contains(github.event.comment.body, '@quantecon-style-guide')
9+
check-trigger:
10+
if: contains(github.event.comment.body, '@qe-style-checker')
911
runs-on: ubuntu-latest
10-
permissions:
11-
contents: write
12-
pull-requests: write
13-
issues: read
1412
steps:
15-
- uses: QuantEcon/action-style-guide@v0.2
13+
- uses: QuantEcon/action-style-guide@v0.3
1614
with:
1715
mode: 'single'
16+
lectures-path: 'lectures/'
1817
anthropic-api-key: ${{ secrets.ANTHROPIC_API_KEY }}
1918
github-token: ${{ secrets.GITHUB_TOKEN }}
20-
comment-body: ${{ github.event.comment.body }}
19+
comment-body: ${{ github.event.comment.body || github.event.issue.body }}

0 commit comments

Comments
 (0)