Skip to content

Commit a64cbf6

Browse files
alerizzoclaude
andcommitted
chore(ci): match changeset-release/ prefix in changeset-check skip
Per review (Codacy): the changesets bot branches as changeset-release/<baseBranch>, so use !startsWith(github.head_ref, 'changeset-release/') instead of an exact match on 'changeset-release/main'. Same behavior for this repo today, but robust to other base branches. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 452523f commit a64cbf6

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ jobs:
4141
changeset-check:
4242
# Skip the changesets bot's "version packages" PR: it consumes (deletes)
4343
# changesets rather than adding them, so it would always fail this check.
44-
if: github.event_name == 'pull_request' && github.head_ref != 'changeset-release/main'
44+
# The bot branches as changeset-release/<baseBranch>, so match the prefix.
45+
if: github.event_name == 'pull_request' && !startsWith(github.head_ref, 'changeset-release/')
4546
runs-on: ubuntu-latest
4647

4748
steps:

0 commit comments

Comments
 (0)