Skip to content
Open
Changes from all 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
31 changes: 31 additions & 0 deletions .github/workflows/code-style-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Code Style Formatter
on:
issue_comment:
types: [created]


jobs:
format-code:
if: github.event.issue.pull_request && contains(github.event.comment.body, '@quantecon-code-style')
runs-on: ubuntu-latest

steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
ref: ${{ github.event.pull_request.head.ref }}

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v40
with:
files: '**/*.md'

- name: Format markdown files
uses: QuantEcon/meta/.github/actions/code-style-checker@copilot/fix-221-3
with:
files: ${{ steps.changed-files.outputs.all_changed_files }}

- name: Push changes
run: git push
Loading