Repository navigation
ci(api): Dispatch bump-sentry-api.yml in each @sentry/api consumer - #131318
Merged
Merged
Conversation
Every consumer now runs the same bump-sentry-api.yml, a thin caller of bump-sentry-api-consumer.yml, so the dispatch matrix only lists repo names and dispatches on each repository's default branch. sentry-docs keeps the app it already uses; other entries use the release bot. The workflow is renamed to dispatch-api-consumers.yml since it no longer bumps only sentry-docs. Co-Authored-By: BYK <[email protected]>
This was referenced Nov 16, 2026
Merged
Contributor
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit fb4a2f9. Configure here.
Without --ref, gh workflow run reads the target repository's default branch first. Ask for that permission explicitly next to actions: write.
BYK
added a commit
that referenced
this pull request
Nov 17, 2026
…#131317) sentry-docs and getsentry/toolkit each carry their own `@sentry/api` bump: sentry-docs has a shell script that merges a PR, and toolkit has a Node script that keeps one rolling PR. This adds `bump-sentry-api-consumer.yml`, a `workflow_call` workflow both can call from a thin `bump-sentry-api.yml`, so the logic lives here next to the package. It follows up on #131244. - **The script** is `.github/workflows/scripts/bump-sentry-api.js`, ported with its tests from toolkit's `scripts/bump-sentry-api.mjs`. It runs in the caller's checkout. - **`pin` input:** - `dependency` pins an exact `package.json` version with `pnpm add --save-exact --lockfile-only`, as sentry-docs does today. - `catalog` updates the `pnpm-workspace.yaml` catalog and its `minimumReleaseAgeExclude` entry, as toolkit does today. - **`mode` input:** - `merge` keeps sentry-docs' current behavior. It commits "Bump @sentry/api to X" on `bot/bump-sentry-api-to-X`, opens the PR with `--fill` (or reuses one a failed run left open), and merges it with `--squash --admin`. - `rolling-pr` keeps toolkit's current behavior. It keeps one `bot/bump-sentry-api` PR, rebuilds it from the default branch and force-pushes it with a lease. If someone else pushed a commit to it, it leaves the PR alone with a warning (merge commits don't count). It never merges. - **Per-caller settings:** - `app-client-id` and the `app-private-key` secret name the GitHub App that pushes and opens the PR. A PR opened with `github.token` doesn't start the caller's CI. In `merge` mode the app must also be allowed to `--admin` merge. - `commit-author-name` and `commit-author-email` set the commit author. They default to `github-actions[bot]`, which toolkit uses today, and sentry-docs passes its own bot. - **Callers use it `@master`.** The workflow checks the script out from `master` too, so the two always match. **Merge order:** 1. This PR. 2. The consumer PRs, in either order: getsentry/sentry-docs#20835 and getsentry/toolkit#2299. Each one calls this workflow from `master`. 3. #131318, which switches the release dispatch to each repo's `bump-sentry-api.yml`. 4. A follow-up in sentry-docs that deletes its temporary `bump-api-schema-sha.yml` alias. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A69da19b385017e68b7f9eace56e9477f --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A69da19b385017e68b7f9eace56e9477f) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A69da19b385017e68b7f9eace56e9477f/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
BYK
approved these changes
Nov 17, 2026
BYK
pushed a commit
that referenced
this pull request
Nov 17, 2026
…ow (#131436) `bump-sentry-api-consumer.yml`, which #131317 added, still pins `actions/checkout` v4 and `actions/setup-node` v4. Both run on Node 20, which GitHub is retiring as an Actions runtime, and both are several majors behind. This moves each `actions/` action the workflow uses to its latest release: - `actions/checkout` v4.1.7 → v7.0.1, in both checkouts. - `actions/setup-node` v4 → v7.1.0. - `actions/create-github-app-token` stays on v3.3.0, which is already the latest. None of the major-version changes affects this workflow: - Checkout v6 moved persisted credentials to a separate file, but the bump still pushes with them through plain `git`, and the script checkout keeps `persist-credentials: false`. - setup-node v5 and v6 only changed automatic package-manager caching, which this job doesn't use. - `pnpm/action-setup` isn't an `actions/` action, so it isn't changed. This merges independently of getsentry/sentry-docs#20835, getsentry/toolkit#2299 and #131318. Callers use the workflow from `master`, so they pick this up once it merges. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A69da19b385017e68b7f9eace56e9477f --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A69da19b385017e68b7f9eace56e9477f) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A69da19b385017e68b7f9eace56e9477f/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
BYK
added a commit
to getsentry/toolkit
that referenced
this pull request
Nov 17, 2026
) The rolling `@sentry/api` bump from #2291 moves into getsentry/sentry#131317's reusable `bump-sentry-api-consumer.yml`, so every consumer of the package runs the same logic from one place, next to the package. - `bump-sentry-api.yml` keeps its name, daily schedule, dispatch trigger and concurrency group. It now calls the reusable workflow in `rolling-pr` mode with a `catalog` pin, the release bot app, and Node 22.23.4. - `scripts/bump-sentry-api.mjs` and its tests are deleted, and `test:ci-projects` no longer lists them. The script and tests moved to getsentry/sentry as `.github/workflows/scripts/bump-sentry-api.js`. - The behavior is unchanged: - one `bot/bump-sentry-api` PR on the newest release, rebuilt from main and force-pushed with a lease; - the PR is left alone with a warning when someone else pushed a commit to it, and merge commits don't count; - commits are authored as `github-actions[bot]`; - the PR is never merged. - `docs/operations/github-actions.md` points at the reusable workflow. **Merge order:** 1. getsentry/sentry#131317. 2. This PR, in either order with getsentry/sentry-docs#20835. It calls that workflow from getsentry/sentry `master`. 3. getsentry/sentry#131318. This repo's workflow name doesn't change, so dispatches keep working throughout. <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A69da19b385017e68b7f9eace56e9477f --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A69da19b385017e68b7f9eace56e9477f) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A69da19b385017e68b7f9eace56e9477f/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
BYK
added a commit
to getsentry/sentry-docs
that referenced
this pull request
Nov 17, 2026
#20835) ## DESCRIBE YOUR PR The `@sentry/api` bump moves into getsentry/sentry#131317's reusable `bump-sentry-api-consumer.yml`, so every consumer of the package runs the same logic from one place. - `bump-api-schema-sha.yml` becomes `bump-sentry-api.yml`, the name every consumer uses. It calls the reusable workflow in `merge` mode with a `dependency` pin, and `scripts/bump-sentry-api.sh` is deleted. - The bump behaves as before: - same hourly schedule, dispatch and concurrency group; - the same `SENTRY_API_SCHEMA_UPDATER` app and commit author; - a "Bump @sentry/api to X" commit on `bot/bump-sentry-api-to-X`, with a PR opened with `--fill` and merged with `--squash --admin`. - One change: the dispatch-time npm retry is gone. getsentry/sentry now waits until npm serves a release before it dispatches (getsentry/sentry#131244). - `bump-api-schema-sha.yml` stays for now as a dispatch-only alias that runs the same bump. getsentry/sentry dispatches that name until getsentry/sentry#131318 merges, and a follow-up deletes it afterwards. - The develop-docs build-process page, the `pnpm-workspace.yaml` comment and an `update-docs-changelog.yml` comment now point at the new file. **Merge order:** 1. getsentry/sentry#131317. 2. This PR. It calls that workflow from getsentry/sentry `master`. 3. getsentry/sentry#131318. 4. The follow-up that deletes the alias. ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD - [ ] Other deadline: YYYY-MM-DD - [x] No deadline: Not urgent, can wait up to 1 week+ <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A69da19b385017e68b7f9eace56e9477f --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A69da19b385017e68b7f9eace56e9477f) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A69da19b385017e68b7f9eace56e9477f/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: BYK <[email protected]>
1 of 3 tasks
BYK
pushed a commit
to getsentry/sentry-docs
that referenced
this pull request
Nov 17, 2026
## DESCRIBE YOUR PR This deletes `.github/workflows/bump-api-schema-sha.yml`. It was a temporary, dispatch-only alias that #20835 kept so getsentry/sentry could still dispatch the old file name during the rollout. getsentry/sentry#131318 has merged, and getsentry/sentry's `dispatch-api-consumers.yml` now dispatches `bump-sentry-api.yml`, so nothing calls the old name anymore. The alias had no schedule. `bump-sentry-api.yml` keeps the hourly run and the dispatch trigger, so the `@sentry/api` bump works the same. ## IS YOUR CHANGE URGENT? - [ ] Urgent deadline (GA date, etc.): YYYY-MM-DD - [ ] Other deadline: YYYY-MM-DD - [x] No deadline: Not urgent, can wait up to 1 week+ <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A69da19b385017e68b7f9eace56e9477f --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A69da19b385017e68b7f9eace56e9477f) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A69da19b385017e68b7f9eace56e9477f/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@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.

Once every consumer has a thin
bump-sentry-api.ymlthat calls #131317's reusable workflow, the release dispatch no longer needs a per-repo workflow file or ref. This reduces the dispatch matrix torepo: [sentry-docs, toolkit]. Each entry dispatchesbump-sentry-api.ymlon the repo's default branch, and the job still waits for npm first. It follows up on #131244.bump-sentry-docs.ymlbecomesdispatch-api-consumers.yml, since it no longer bumps only sentry-docs. The.craft.ymlcomment that pointed at it is updated.SENTRY_RELEASE_BOT_*) unless they name another app. sentry-docs keepsSENTRY_API_SCHEMA_UPDATER_*through a matrixinclude, because nothing in sentry-docs uses the release bot. Whether its installation reaches sentry-docs withactions: writeis unverified. Moving sentry-docs to the release bot later means deleting thatincludeentry.bump-sentry-api.yml.Merge order: this PR goes last.
bump-api-schema-sha.yml.No dispatch ever targets a missing workflow during the rollout. Toolkit already has
bump-sentry-api.yml. getsentry/sentry-docs#20835 addsbump-sentry-api.ymland keepsbump-api-schema-sha.ymlas a dispatch-only alias, so both the old name (currentmaster) and the new name (this PR) exist until this merges.via @BYK.
--
View Session [Sentry]