Skip to content

Commit 3b47dfe

Browse files
committed
add drafter config
1 parent cb223a9 commit 3b47dfe

File tree

1 file changed

+94
-0
lines changed

1 file changed

+94
-0
lines changed

.github/release-drafter.yml

+94
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name-template: "v$RESOLVED_VERSION"
2+
tag-template: "v$RESOLVED_VERSION"
3+
categories:
4+
- title: ⚠️ Breaking Changes
5+
labels:
6+
- breaking-change
7+
- title: 🚀 Features
8+
labels:
9+
- enhancement
10+
- title: 💻 Fixed Vulnerabilities
11+
labels:
12+
- security
13+
- title: 🐞 Bug Fixes
14+
labels:
15+
- bug
16+
- title: 🧰 Maintenance
17+
collapse-after: 3
18+
labels:
19+
- chore
20+
- infrastructure
21+
- title: 🤖 Dependency Updates
22+
collapse-after: 3
23+
labels:
24+
- dependencies
25+
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
26+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
27+
version-resolver:
28+
major:
29+
labels:
30+
- major
31+
minor:
32+
labels:
33+
- minor
34+
patch:
35+
labels:
36+
- patch
37+
default: patch
38+
autolabeler:
39+
# Pull requests scope.
40+
- label: enhancement
41+
title:
42+
- "/^feat:/i"
43+
- label: chore
44+
title:
45+
- "/^chore:/i"
46+
- label: infrastructure
47+
title:
48+
- "/^infra:/i"
49+
- label: security
50+
title:
51+
- "/^sec:/i"
52+
- label: bug
53+
title:
54+
- "/^fix:/i"
55+
- label: documentation
56+
title:
57+
- "/^doc:/i"
58+
- label: breaking-change
59+
body:
60+
- '/^## Breaking Changes/im'
61+
- label: release-notes
62+
body:
63+
- '/^## Release Notes/im'
64+
# Version labels.
65+
- label: minor
66+
title:
67+
- "/^feat:/i"
68+
- label: patch
69+
title:
70+
- "/^fix:/i"
71+
- "/^sec:/i"
72+
- "/^chore:/i"
73+
branch:
74+
- '/^renovate_/'
75+
# Languages detection.
76+
- label: go
77+
files:
78+
- '*.go'
79+
- 'go.mod'
80+
- 'go.sum'
81+
- label: python
82+
files:
83+
- '*.py'
84+
- label: javascript
85+
files:
86+
- '*.js'
87+
replacers:
88+
# Remove unlabeled or uncategorized PRs.
89+
- search: "/# What's Changed.*?\\n## /s"
90+
replace: "# What's Changed\n\n## "
91+
template: |
92+
# What's Changed
93+
94+
$CHANGES

0 commit comments

Comments
 (0)