Skip to content

chore: add semver field to release.yml categories for craft auto-versioning#5257

Open
jamescrosswell wants to merge 1 commit into
mainfrom
fix/craft-auto-semver
Open

chore: add semver field to release.yml categories for craft auto-versioning#5257
jamescrosswell wants to merge 1 commit into
mainfrom
fix/craft-auto-semver

Conversation

@jamescrosswell
Copy link
Copy Markdown
Collaborator

@jamescrosswell jamescrosswell commented May 24, 2026

Craft's auto versioning policy needs each changelog category in .github/release.yml to declare a semver field (major / minor / patch / none). It uses that field to map commits since the last tag to a bump type and pick the next version.

The current categories have no semver field, so craft prepare auto fails with:

Cannot determine version automatically: 60 commit(s) found, but none matched a category with a "semver" field in the release configuration.

See the recent failure: https://github.com/getsentry/sentry-dotnet/actions/runs/26375155007/job/77634036157

References

#skip-changelog

Craft's auto-versioning policy requires each changelog category to declare a
`semver` field (major/minor/patch/none) so it can determine the bump type from
commits since the last release. Without these fields, `craft prepare auto`
fails with "none matched a category with a semver field".

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.12%. Comparing base (369de60) to head (8ec5c76).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5257      +/-   ##
==========================================
- Coverage   74.13%   74.12%   -0.02%     
==========================================
  Files         508      508              
  Lines       18320    18320              
  Branches     3584     3584              
==========================================
- Hits        13582    13580       -2     
- Misses       3863     3864       +1     
- Partials      875      876       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@jamescrosswell jamescrosswell marked this pull request as ready for review May 24, 2026 23:37
@jamescrosswell jamescrosswell requested a review from Flash0ver as a code owner May 24, 2026 23:37
@jamescrosswell jamescrosswell added the skip-changelog Suppress automatic changelog generation via Craft label May 24, 2026
@jamescrosswell jamescrosswell changed the title ci: add semver field to release.yml categories for craft auto-versioning chore: add semver field to release.yml categories for craft auto-versioning May 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog Suppress automatic changelog generation via Craft

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant