Repository navigation
feat(action): Add release-tag-prefix input to generate-release - #51
Merged
Merged
Conversation
In a repository that releases several packages, the newest stable release can belong to another package. generate-release then finds no matching binaries and ships no patches. The new input keeps only releases whose tag starts with the prefix, e.g. 'cli@'. The lookup reads a full page of releases so other packages' releases can't push the previous one out of the window. Empty (default) keeps today's behavior.
sentry-junior Bot
added a commit
to getsentry/toolkit
that referenced
this pull request
Dec 6, 2026
Pin binpatch to BYK/binpatch#51 and set release-tag-prefix to cli@, so a release of another package between two CLI releases no longer leaves the CLI release without patches.
github-actions Bot
pushed a commit
to Fields-Education/sentry-mcp
that referenced
this pull request
Dec 6, 2026
No stable `cli@` release since the move to Toolkit (0.46.0 through 4.5.0) has `.patch` assets, so `sentry cli upgrade` on stable always downloads the full ~25–40 MB binary. The cause: `generate-patches` in `cli-build.yml` only ran on `main`. getsentry/cli also ran it on release branches with binpatch's `generate-release` mode, and getsentry#1393 ported only the nightly half. This PR runs `generate-patches` on `release/cli/**` pushes too, with the binpatch Action in `generate-release` mode and `release-tag-prefix: "cli@"`. It diffs the new binaries against the newest stable `cli@` release, which before the next CLI release is `cli@4.5.0`, and writes the patches to the existing `sentry-patches` artifact. Releases of other packages in this repo (`http@`, `logger@`, `wizard@`, `spotlight@`) are skipped. That input comes from BYK/binpatch#51, so all three binpatch Action pins move to its merge commit. The only change in `action/` since 0.4.2 is that input. The artifact name `sentry-patches` already matches Craft's `/^sentry-.*$/` artifact rule, and the `github` target has no `includeNames`, so Craft attaches the patches to the release. No `.craft.yml` change is needed. No other target's `includeNames` matches `.patch`. The next release gets one patch per binary next to the existing assets, which is the name `githubReleaseSource` looks for (`<binaryName>.patch`): ``` sentry-linux-x64.patch sentry-linux-x64-musl.patch sentry-linux-arm64.patch sentry-linux-arm64-musl.patch sentry-darwin-arm64.patch sentry-darwin-x64.patch sentry-windows-x64.exe.patch sentry-windows-arm64.exe.patch ``` The job keeps `continue-on-error: true`, so a patch failure never blocks a release. That release just ships without patches. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A7526519b92bfd174842b16ae9cf268c8 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A7526519b92bfd174842b16ae9cf268c8) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A7526519b92bfd174842b16ae9cf268c8/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <126780+BYK@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.
In a repository that releases several packages, the newest stable release can belong to another package. generate-release then finds no matching binaries and ships no patches. The new input keeps only releases whose tag starts with the prefix, e.g. 'cli@'. The lookup reads a full page of releases so other packages' releases can't push the previous one out of the window. Empty (default) keeps today's behavior.