Skip to content

Commit 4fe8f0f

Browse files
prontclaude
andcommitted
chore(ci): widen check-fmt trigger to run on prettier-eligible file changes
Add a prettier path filter in changes.yml that matches *.yml, *.yaml, *.js, *.ts, *.tsx, *.json, and prettier config files. Use it as an additional trigger for check-fmt so PRs touching only workflows, config examples, or website JS/JSON also get format-checked. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0096874 commit 4fe8f0f

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/changes.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ on:
4848
value: ${{ jobs.source.outputs.website_only }}
4949
install:
5050
value: ${{ jobs.source.outputs.install }}
51+
prettier:
52+
value: ${{ jobs.source.outputs.prettier }}
5153
test-yml:
5254
value: ${{ jobs.source.outputs.test-yml }}
5355
integration-yml:
@@ -176,6 +178,7 @@ jobs:
176178
install: ${{ steps.filter.outputs.install }}
177179
k8s: ${{ steps.filter.outputs.k8s }}
178180
website_only: ${{ steps.filter.outputs.website == 'true' && steps.filter.outputs.not_website == 'false' }}
181+
prettier: ${{ steps.filter.outputs.prettier }}
179182
test-yml: ${{ steps.filter.outputs.test-yml }}
180183
integration-yml: ${{ steps.filter.outputs.integration-yml }}
181184
test-make-command-yml: ${{ steps.filter.outputs.test-make-command-yml }}
@@ -265,6 +268,16 @@ jobs:
265268
- "website/**"
266269
not_website:
267270
- "!website/**"
271+
prettier:
272+
- "**/*.yml"
273+
- "**/*.yaml"
274+
- "**/*.js"
275+
- "**/*.ts"
276+
- "**/*.tsx"
277+
- "**/*.json"
278+
- ".prettierrc.json"
279+
- ".prettierignore"
280+
- ".github/workflows/changes.yml"
268281
test-yml:
269282
- ".github/workflows/test.yml"
270283
- ".github/workflows/changes.yml"

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
check-fmt:
3232
name: Check code format
3333
runs-on: ubuntu-24.04
34-
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.test-yml == 'true' }}
34+
if: ${{ needs.changes.outputs.source == 'true' || needs.changes.outputs.test-yml == 'true' || needs.changes.outputs.prettier == 'true' }}
3535
needs: changes
3636
steps:
3737
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2

0 commit comments

Comments
 (0)