-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathrelease-drafter.yml
65 lines (60 loc) · 1.28 KB
/
release-drafter.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# automatically label PRs based on the following title regexs
autolabeler:
- label: 'breaking'
title:
- '/!/i'
body:
- '/breaking change/i'
- label: 'enhancement'
title:
- '/feat/i'
- label: 'bug'
title:
- '/fix/i'
- label: 'documentation'
title:
- '/docs/i'
- label: 'maintenance'
title:
- '/build/i'
- '/chore/i'
- '/ci/i'
- '/refactor/i'
# draft release title & tag
name-template: '$RESOLVED_VERSION'
tag-template: '$RESOLVED_VERSION'
# release notes template
template: |
$CHANGES
**Full Changelog**: https://github.com/$OWNER/$REPOSITORY/compare/$PREVIOUS_TAG...$RESOLVED_VERSION
# $CHANGES are categorised by these PR labels
categories:
- title: '❗ Breaking changes'
labels:
- 'breaking'
- title: '🚀 Features'
labels:
- 'enhancement'
- title: '🐛 Bug Fixes'
labels:
- 'bug'
- title: '📚 Documentation'
labels:
- 'documentation'
- title: '🧹 Maintenance'
labels:
- 'maintenance'
# determine the draft release version from these PR labels
version-resolver:
major:
labels:
- 'breaking'
minor:
labels:
- 'enhancement'
patch:
labels:
- 'bug'
- 'documentation'
- 'maintenance'
default: patch