Open
Refactor release flow to PR-time Dependabot changesets#56
Conversation
Co-authored-by: TylerJDev <26746305+TylerJDev@users.noreply.github.com>
Co-authored-by: TylerJDev <26746305+TylerJDev@users.noreply.github.com>
Co-authored-by: TylerJDev <26746305+TylerJDev@users.noreply.github.com>
Co-authored-by: TylerJDev <26746305+TylerJDev@users.noreply.github.com>
Co-authored-by: TylerJDev <26746305+TylerJDev@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Refactor Changesets release workflow for Dependabot
Refactor release flow to PR-time Dependabot changesets
Aug 24, 2026
TylerJDev
changed the base branch from
copilot/implement-changesets-release-flow
to
main
August 25, 2026 14:21
There was a problem hiding this comment.
Pull request overview
Refactors releases around Changesets and automates changeset policy for human and Dependabot PRs.
Changes:
- Adds Changesets release configuration and automation.
- Generates patch changesets for qualifying Dependabot updates.
- Enforces changesets or a skip label on human PRs.
Show a summary per file
| File | Description |
|---|---|
.changeset/README.md |
Documents Changesets. |
.changeset/config.json |
Configures package releases. |
.github/workflows/check-for-changeset.yml |
Enforces human PR policy. |
.github/workflows/dependabot-changeset.yml |
Automates Dependabot changesets. |
.github/workflows/pr.yml |
Runs policy tests. |
.github/workflows/publish.yml |
Removes legacy publishing. |
.github/workflows/release.yml |
Adds Changesets releases. |
README.md |
Documents release procedures. |
package-lock.json |
Locks Changesets dependencies. |
package.json |
Adds release tooling and metadata. |
scripts/dependabot-changeset.mjs |
Implements Dependabot policy. |
scripts/dependabot-changeset.test.mjs |
Tests policy evaluation. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 11/12 changed files
- Comments generated: 7
- Review effort level: Balanced
| ) | ||
| }) | ||
|
|
||
| test('a previously generated changeset is removed when the PR no longer qualifies', () => { |
…e-publish, removed files, dismissed alerts, and test coverage Co-authored-by: TylerJDev <26746305+TylerJDev@users.noreply.github.com>
Co-authored-by: TylerJDev <26746305+TylerJDev@users.noreply.github.com>
francinelucca
left a comment
Contributor
There was a problem hiding this comment.
seeing some high level callouts from copilot, please re-request review when those have been addressed
There was a problem hiding this comment.
Review details
Suppressed comments (1)
Previously missed (1) — in code that hasn't changed since the last review.
scripts/dependabot-changeset.mjs:103
- The 404 shortcut also applies to
PUTandDELETE, so a failed write (for example, a missing branch or inaccessible resource) is treated as success andapplyDependabotChangesetreportscreated/removedeven though no commit was made. Only a GET uses 404 to mean “no existing changeset”; mutation responses should flow through the error path.
if (response.status === 404) return undefined
- Files reviewed: 11/12 changed files
- Comments generated: 2
- Review effort level: Balanced
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
This PR automatically adds
patchchangesets to qualifying Dependabot updates, allowing our usual@changesetsrelease flow to follow our other repositories, such asprimer/react.Dependabot changeset automation
Added a
pull_request_targetworkflow scoped todependabot[bot].Uses pinned
dependabot/fetch-metadatawithalert-lookup: true.Compares base/head
package.jsonfiles without executing PR code.Creates, updates, or removes one deterministic changeset:
.changeset/dependabot-<pr-number>.mdAdds a patch changeset when a Dependabot PR resolves a security alert or changes a direct production dependency range.
Human PR changeset policy
.changeset/*.mdfor non-Dependabot PRs.skip changesetlabel when no release is required.