ci(validate): skip changeset-check on release PRs#25
Merged
Conversation
The changeset-check job runs `bunx changeset status --since=origin/main` which looks for NEW changesets added in the branch. Release PRs (the ones opened by changesets/action) DELETE changesets rather than adding them — they have nothing to report and the check fails. Skip the job when the head ref is `changeset-release/main` (the canonical branch name changesets/action uses). Skipped jobs satisfy required status checks in GitHub's branch protection (since 2022), so the release PR can merge through standard CI rather than admin override. Empty changeset (CI config, no package impact).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Surfaced by the release-flow verification in PR #23: the `changeset-check` job in `validate.yml` fails on release PRs because it expects to find a new changeset added by the branch, but release PRs (the ones opened by `changesets/action`) DELETE changesets — they have nothing to report.
This was masked until today because prior release PRs (#15, #21) either merged before branch protection existed or were admin-overridden. PR #24 is the first release PR that actually had its CI scrutinized.
Fix
Add a head-ref exclusion so `changeset-check` skips on PRs from `changeset-release/main` (the canonical branch name `changesets/action` uses):
```diff
changeset-check:
```
Why this is safe
Test plan
Follow-up
After this PR merges, PR #24 needs a check re-trigger to pick up the new workflow. Close+reopen does it.