Repository navigation
ci(release): Move to Craft auto versioning - #20
Merged
Merged
Conversation
Replace getsentry/action-prepare-release and the local version calculator with getsentry/craft 3.11.0. The bump input now offers auto, pre, patch, minor, and major (default auto), plus an exact version override. The prerelease and prerelease_id inputs are replaced by pre (alpha) and the version override (beta, rc). Raise .craft.yml minVersion to 3.9.0, which pre needs. Co-Authored-By: Burak Yigit Kaya <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
BYK
approved these changes
Nov 6, 2026
BYK
added a commit
that referenced
this pull request
Nov 24, 2026
#19) Bumps the changelog-preview reusable workflow `getsentry/craft/.github/workflows/changelog-preview.yml@v2` → `@v3`, and switches `.craft.yml` from the deprecated `changelogPolicy: none` to `changelog.policy: auto`. The release workflow already uses `getsentry/craft@v3` with `auto` versioning and `minVersion: 3.9.0` (#20). This moves the changelog preview onto the same v3 line, matching the bumps going out across getsentry for getsentry/craft#956, and puts the changelog on `auto` too. Versioning stays on `auto`, Craft's default for `minVersion` ≥ 2.14.0. With `changelog.policy: auto`, `craft prepare` creates `CHANGELOG.md` on the first release (the repo has none yet) and adds an entry for each release from merged PRs, sorted by Craft's default conventional-commit categories since there's no `.github/release.yml`. The same notes become the GitHub release body. AI summaries stay off, since `changelog.aiSummary` is opt-in. The reusable workflow's inputs, secrets, and permissions in v3 are the same as in v2, or only gained optional additions. `.craft.yml` doesn't use anything craft 3.0 removed (`changelog.includePaths`, `unownedPaths`, nuget target). <!-- junior-request-attribution:start --> via @BYK. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:local%3Aweb%3Ab0c652bbc9f35fc17bc3bd34 --> -- [View Session](https://junior-prod.sentry.dev/conversations/local%3Aweb%3Ab0c652bbc9f35fc17bc3bd34) [[Sentry]](https://sentry.sentry.io/explore/conversations/local%3Aweb%3Ab0c652bbc9f35fc17bc3bd34/?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]>
This branch was successfully deployed
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.
BYK asked to put the Craft repos on
autoversioning with all bump types, the same waygetsentry/junioralready works. This PR does that for sentry-starlight-theme.Changes
.github/workflows/release.yml: swapsgetsentry/action-prepare-release@v1forgetsentry/craft@v3. Per BYK's review, this is the floatingv3tag, so releases pick up Craft 3.x updates. Craft getsversion: ${{ inputs.version || inputs.bump }},force, andllm_api_key: ${{ github.token }}. The workflow also gets thecopilot-requests: writepermission, which BYK approved. The token, checkout, Node, and pnpm steps, the runner, and the other pinned SHAs don't change.workflow_dispatchinputs:bump(required):auto(default),pre,patch,minor, ormajorversion(optional): an exact versionforce: boolean, default falseprereleaseandprerelease_idinputs, theCalculate versionstep, andscripts/calculate-release-version.mjs, which nothing else used. Their replacements:bump: precutsX.Y.Z-alpha.Nfor the versionautowould release.betaandrcprereleases go throughversion, for example0.10.0-beta.0..craft.yml: raisesminVersionfrom0.23.1to3.9.0. Bump types andautoneed 2.14.0 or later, andpreneeds 3.9.0 or later (Craft config docs).README.md: the release section now describes the new inputs.Notes
v0.1.0–v0.9.1tags. There are no-srctags, so this repo doesn't need the tag remap that warden and vitest-evals needed..github/release.yml, soautouses Craft's default conventional-commit categories. This repo's commits already follow them (feat,fix,ref, …).changelogPolicystaysnone. That means no AI changelog summaries for now, so the Copilot permission andllm_api_keysit unused until changelogs are turned on. Craft also warns thatchangelogPolicyis deprecated in favor ofchangelog.policy. I didn't touch either here.changelog-preview.ymlstill usesgetsentry/craft/.github/workflows/changelog-preview.yml@v2, which I didn't change.Verification
actionlint1.7.12 with shellcheck: the only finding isunknown permission scope "copilot-requests". actionlint doesn't know that scope yet, and junior's live workflow uses it too.pnpm release:checkandpnpm lintpass.npx @sentry/[email protected](the current 3.x)changelog --format jsonloads the new config withversioningPolicy: autoand finds 0 commits sincev0.9.1.via @BYK.
--
View Session [Sentry]