|
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 | + |
2 | 5 | name-template: 'v$RESOLVED_VERSION' |
3 | 6 | tag-template: 'v$RESOLVED_VERSION' |
4 | 7 |
|
5 | | -# Emoji reference: https://gitmoji.carloscuesta.me/ |
6 | 8 | categories: |
7 | 9 | - title: 💥 Breaking changes |
8 | 10 | labels: |
9 | 11 | - 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 |
24 | 13 | labels: |
25 | | - - enhancement |
26 | 14 | - feature |
| 15 | + - enhancement |
27 | 16 | - title: 🐛 Bug fixes |
28 | 17 | labels: |
29 | 18 | - bug |
30 | | - - fix |
31 | 19 | - bugfix |
| 20 | + - fix |
32 | 21 | - 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 |
40 | 23 | labels: |
41 | 24 | - documentation |
| 25 | + - title: 🚦 Tests |
| 26 | + labels: |
| 27 | + - test |
| 28 | + - tests |
42 | 29 | - title: 👻 Maintenance |
43 | 30 | labels: |
44 | 31 | - chore |
45 | 32 | - internal |
46 | 33 | - 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 |
54 | 35 | labels: |
55 | 36 | - dependencies |
56 | 37 | collapse-after: 15 |
| 38 | + - title: 🗑 Removed |
| 39 | + labels: |
| 40 | + - removed |
| 41 | + - deprecated |
| 42 | + - title: ✍ Other changes |
| 43 | + |
57 | 44 | exclude-labels: |
58 | 45 | - no-changelog |
59 | 46 | - skip-changelog |
60 | 47 | - invalid |
| 48 | + - duplicate |
| 49 | + - question |
| 50 | + - wontfix |
61 | 51 |
|
62 | 52 | change-template: '- $TITLE by @$AUTHOR in #$NUMBER' |
63 | 53 |
|
64 | | -# https://github.com/release-drafter/release-drafter?tab=readme-ov-file#version-resolver |
65 | 54 | version-resolver: |
66 | 55 | major: |
67 | 56 | labels: |
68 | | - - 'major' |
| 57 | + - major |
69 | 58 | minor: |
70 | 59 | labels: |
71 | | - - 'minor' |
| 60 | + - minor |
72 | 61 | patch: |
73 | 62 | labels: |
74 | | - - 'patch' |
| 63 | + - patch |
75 | 64 | default: patch |
76 | 65 |
|
77 | 66 | template: | |
78 | | - <!-- Optional: add a release summary here --> |
| 67 | + ## What's Changed |
| 68 | +
|
79 | 69 | $CHANGES |
80 | 70 |
|
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 |
82 | 72 |
|
83 | 73 | 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 |
88 | 102 | branch: |
89 | | - - '/docs{0,1}\/.+/' |
90 | | - - label: 'bug' |
| 103 | + - /^feature\/.+/ |
| 104 | + - /^feat\/.+/ |
| 105 | + - label: bug |
91 | 106 | branch: |
92 | | - - '/fix\/.+/' |
93 | | - title: |
94 | | - - '/fix/i' |
95 | | - - label: 'enhancement' |
| 107 | + - /^fix\/.+/ |
| 108 | + - /^bugfix\/.+/ |
| 109 | + - label: chore |
96 | 110 | 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