Skip to content

Commit 68132fa

Browse files
committed
tst code style checker
1 parent 91ad6ea commit 68132fa

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Code Style Formatter
2+
on:
3+
issue_comment:
4+
types: [created]
5+
6+
7+
jobs:
8+
format-code:
9+
if: github.event.issue.pull_request && contains(github.event.comment.body, '@quantecon-code-style')
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout PR branch
14+
uses: actions/checkout@v4
15+
with:
16+
token: ${{ secrets.GITHUB_TOKEN }}
17+
ref: ${{ github.event.pull_request.head.ref }}
18+
19+
- name: Get changed files
20+
id: changed-files
21+
uses: tj-actions/changed-files@v40
22+
with:
23+
files: '**/*.md'
24+
25+
- name: Format markdown files
26+
uses: QuantEcon/meta/.github/actions/code-style-checker@copilot/fix-221-3
27+
with:
28+
files: ${{ steps.changed-files.outputs.all_changed_files }}
29+
30+
- name: Push changes
31+
run: git push

0 commit comments

Comments
 (0)