Skip to content

Commit c4e7527

Browse files
authored
Refactor Release Drafter configuration
Updated Release Drafter configuration with new categories and labels.
1 parent 415a93f commit c4e7527

1 file changed

Lines changed: 80 additions & 52 deletions

File tree

.github/release-drafter.yml

Lines changed: 80 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,100 +1,128 @@
1-
# Configuration for Release Drafter: https://github.com/toolmantim/release-drafter
1+
# Shared Release Drafter config for open-delivery-spec org
2+
# Referenced by repos via: config-name: open-delivery-spec/.github:release-drafter-config.yml
3+
# https://github.com/release-drafter/release-drafter
4+
25
name-template: 'v$RESOLVED_VERSION'
36
tag-template: 'v$RESOLVED_VERSION'
47

5-
# Emoji reference: https://gitmoji.carloscuesta.me/
68
categories:
79
- title: 💥 Breaking changes
810
labels:
911
- breaking
10-
- title: 🚨 Removed
11-
labels:
12-
- removed
13-
- title: 🎉 Major features and improvements
14-
labels:
15-
- major-enhancement
16-
- major-rfe
17-
- title: 🐛 Major bug fixes
18-
labels:
19-
- major-bug
20-
- title: ⚠️ Deprecated
21-
labels:
22-
- deprecated
23-
- title: 🚀 New features and improvements
12+
- title: 🚀 Features
2413
labels:
25-
- enhancement
2614
- feature
15+
- enhancement
2716
- title: 🐛 Bug fixes
2817
labels:
2918
- bug
30-
- fix
3119
- bugfix
20+
- fix
3221
- regression
33-
- title: 🌐 Localization and translation
34-
labels:
35-
- localization
36-
- title: 👷 Changes for developers
37-
labels:
38-
- developer
39-
- title: 📝 Documentation updates
22+
- title: 📝 Documentation
4023
labels:
4124
- documentation
25+
- title: 🚦 Tests
26+
labels:
27+
- test
28+
- tests
4229
- title: 👻 Maintenance
4330
labels:
4431
- chore
4532
- internal
4633
- maintenance
47-
- title: 🚦 Tests
48-
labels:
49-
- test
50-
- tests
51-
- title: ✍ Other changes
52-
# Default label used by Dependabot
53-
- title: 📦 Dependency updates
34+
- title: 📦 Dependencies
5435
labels:
5536
- dependencies
5637
collapse-after: 15
38+
- title: 🗑 Removed
39+
labels:
40+
- removed
41+
- deprecated
42+
- title: ✍ Other changes
43+
5744
exclude-labels:
5845
- no-changelog
5946
- skip-changelog
6047
- invalid
48+
- duplicate
49+
- question
50+
- wontfix
6151

6252
change-template: '- $TITLE by @$AUTHOR in #$NUMBER'
6353

64-
# https://github.com/release-drafter/release-drafter?tab=readme-ov-file#version-resolver
6554
version-resolver:
6655
major:
6756
labels:
68-
- 'major'
57+
- major
6958
minor:
7059
labels:
71-
- 'minor'
60+
- minor
7261
patch:
7362
labels:
74-
- 'patch'
63+
- patch
7564
default: patch
7665

7766
template: |
78-
<!-- Optional: add a release summary here -->
67+
## What's Changed
68+
7969
$CHANGES
8070
81-
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
71+
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...v$RESOLVED_VERSION
8272
8373
autolabeler:
84-
- label: 'documentation'
85-
files:
86-
- '*.md'
87-
- '*.rst'
74+
# ── Title-based (conventional commit prefix) ──────────────
75+
- label: enhancement
76+
title:
77+
- /^feat(\(.*\))?:.*/
78+
- /^feature(\(.*\))?:.*/
79+
- /^perf(\(.*\))?:.*/
80+
- label: bug
81+
title:
82+
- /^fix(\(.*\))?:.*/
83+
- /^bugfix(\(.*\))?:.*/
84+
- label: documentation
85+
title:
86+
- /^docs(\(.*\))?:.*/
87+
- label: chore
88+
title:
89+
- /^chore(\(.*\))?:.*/
90+
- /^refactor(\(.*\))?:.*/
91+
- /^ci(\(.*\))?:.*/
92+
- /^style(\(.*\))?:.*/
93+
- /^build(\(.*\))?:.*/
94+
- /^revert(\(.*\))?:.*/
95+
- label: tests
96+
title:
97+
- /^test(\(.*\))?:.*/
98+
- /^tests(\(.*\))?:.*/
99+
100+
# ── Branch-based ──────────────────────────────────────────
101+
- label: enhancement
88102
branch:
89-
- '/docs{0,1}\/.+/'
90-
- label: 'bug'
103+
- /^feature\/.+/
104+
- /^feat\/.+/
105+
- label: bug
91106
branch:
92-
- '/fix\/.+/'
93-
title:
94-
- '/fix/i'
95-
- label: 'enhancement'
107+
- /^fix\/.+/
108+
- /^bugfix\/.+/
109+
- label: chore
96110
branch:
97-
- '/feature\/.+/'
98-
- label: 'dependencies'
99-
title:
100-
- '/^ci:/i'
111+
- /^chore\/.+/
112+
- label: tests
113+
branch:
114+
- /^test\/.+/
115+
116+
# ── File-based ────────────────────────────────────────────
117+
- label: documentation
118+
files:
119+
- '*.md'
120+
- '*.rst'
121+
- '*.adoc'
122+
- label: tests
123+
files:
124+
- 'test/**'
125+
- 'tests/**'
126+
- '__tests__/**'
127+
- '*_test.go'
128+
- '*.test.*'

0 commit comments

Comments
 (0)