Skip to content

Commit 83c6359

Browse files
ci: add semver field to release.yml categories for craft auto-versioning (#5257)
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>
1 parent f0605ac commit 83c6359

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,25 @@ changelog:
77
- dependabot
88
categories:
99
- title: Breaking Changes 🛠
10+
semver: major
1011
labels:
1112
- "Changelog: Breaking Change"
1213
commit_patterns:
1314
- "^(?<type>\\w+(?:\\((?<scope>[^)]+)\\))?!:\\s*)"
1415
- title: Features ✨
16+
semver: minor
1517
labels:
1618
- "Changelog: Feature"
1719
commit_patterns:
1820
- "^feat(?:\\([^\\)]+\\))?:\\s+"
1921
- title: Fixes 🐛
22+
semver: patch
2023
labels:
2124
- "Changelog: Bugfix"
2225
commit_patterns:
2326
- "^(?:fix|bugfix)(?:\\([^\\)]+\\))?:\\s+"
2427
- title: Dependencies ⬆️
28+
semver: patch
2529
labels:
2630
- "Changelog: Dependency Update"
2731
commit_patterns:

0 commit comments

Comments
 (0)