Skip to content

Commit ed9ce01

Browse files
authored
fix(release): Add semver fields to changelog categories (#1193)
This enables Craft's automatic version bump detection for changelog preview comments on PRs. Without these fields, the changelog preview shows 'None' for the semver impact even when PRs match categories like Features or Bug Fixes. The semver mappings follow conventional commit semantics: - Important Changes: minor - Breaking Changes: major - Features: minor - Bug Fixes: patch - Documentation: patch - Internal Changes: patch
1 parent 4862b02 commit ed9ce01

File tree

1 file changed

+18
-12
lines changed

1 file changed

+18
-12
lines changed

.github/release.yml

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,40 @@ changelog:
55
categories:
66
- title: Important Changes
77
labels:
8-
- "Changelog: Important Change"
8+
- 'Changelog: Important Change'
9+
semver: minor
910
- title: Breaking Changes
1011
labels:
11-
- "Changelog: Breaking Change"
12+
- 'Changelog: Breaking Change'
1213
commit_patterns:
1314
- "^(?<type>\\w+(?:\\((?<scope>[^)]+)\\))?!:\\s*)"
14-
15+
semver: major
16+
1517
- title: Features
1618
labels:
17-
- "Changelog: Feature"
19+
- 'Changelog: Feature'
1820
commit_patterns:
1921
- "^(?<type>feat(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"
20-
22+
semver: minor
23+
2124
- title: Bug Fixes
2225
labels:
23-
- "Changelog: Bugfix"
26+
- 'Changelog: Bugfix'
2427
commit_patterns:
2528
- "^(?<type>fix(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"
26-
- "^Revert \""
27-
29+
- '^Revert "'
30+
semver: patch
31+
2832
- title: Documentation
2933
labels:
30-
- "Changelog: Docs"
34+
- 'Changelog: Docs'
3135
commit_patterns:
3236
- "^(?<type>docs?(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"
33-
37+
semver: patch
38+
3439
- title: Internal Changes
3540
labels:
36-
- "Changelog: Internal"
41+
- 'Changelog: Internal'
3742
commit_patterns:
38-
- "^(?<type>(?:build|refactor|meta|chore|ci|ref|perf)(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"
43+
- "^(?<type>(?:build|refactor|meta|chore|ci|ref|perf)(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"
44+
semver: patch

0 commit comments

Comments
 (0)