-
Notifications
You must be signed in to change notification settings - Fork 0
fix(ci): skip changeset-check on the version-packages PR #23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| --- | ||
| --- | ||
|
|
||
| Internal CI change (no version bump): skip the `changeset-check` job on the | ||
| changesets bot's "version packages" PR (`changeset-release/main`). That PR | ||
| consumes (deletes) changesets rather than adding them, so the check counted 0 | ||
| added/modified changeset files and always failed. | ||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -39,7 +39,9 @@ jobs: | |||||
| run: npm test | ||||||
|
|
||||||
| changeset-check: | ||||||
| if: github.event_name == 'pull_request' | ||||||
| # Skip the changesets bot's "version packages" PR: it consumes (deletes) | ||||||
| # changesets rather than adding them, so it would always fail this check. | ||||||
| if: github.event_name == 'pull_request' && github.head_ref != 'changeset-release/main' | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 MEDIUM RISK Suggestion: The branch name check is restricted to 'main'. If you use other base branches for releases, this check will fail. Using a prefix check handles all release branches.
Suggested change
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good call — adopted. Switched to 🤖 Generated by /pr-fixup command |
||||||
| runs-on: ubuntu-latest | ||||||
|
|
||||||
| steps: | ||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The actual CI workflow file changes (such as adding the
github.head_ref != 'changeset-release/main'guard) are missing from this pull request. Currently, the only modified file is this changeset markdown file. Please commit and push the workflow changes to this branch to complete the implementation.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks like a misread — the workflow change is included. The PR touches 2 files:
.github/workflows/ci.yml(adds thechangeset-checkguard) and this changeset. You can see it in the diff, and thechangeset-checkjob is already passing green on this PR. No action needed.🤖 Generated by /pr-fixup command