Skip to content

Commit 57b541e

Browse files
authored
Merge pull request #900 from eyal0/commit_titles
chore: Update release-drafter configuration for conventional commit titles
2 parents b5e45a1 + cd24e7d commit 57b541e

1 file changed

Lines changed: 24 additions & 22 deletions

File tree

.github/release-drafter.yml

Lines changed: 24 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -31,46 +31,48 @@ template: |
3131
## What’s Changed
3232
3333
$CHANGES
34+
# Conventional Commits-style PR titles: <type>[(scope)][!]: <description>
35+
# https://www.conventionalcommits.org/en/v1.0.0-beta.4/
3436
autolabeler:
3537
- label: 'feature'
3638
title:
37-
- '/feat:/i'
38-
- '/feature:/i'
39-
- '/enhancement:/i'
39+
- '/^feat(\([^)]+\))?!?:/i'
40+
- '/^feature(\([^)]+\))?!?:/i'
41+
- '/^enhancement(\([^)]+\))?!?:/i'
4042
- label: 'performance'
4143
title:
42-
- '/perf:/i'
43-
- '/performance:/i'
44+
- '/^perf(\([^)]+\))?!?:/i'
45+
- '/^performance(\([^)]+\))?!?:/i'
4446
- label: 'bug'
4547
title:
46-
- '/fix:/i'
47-
- '/bugfix:/i'
48-
- '/bug:/i'
48+
- '/^fix(\([^)]+\))?!?:/i'
49+
- '/^bugfix(\([^)]+\))?!?:/i'
50+
- '/^bug(\([^)]+\))?!?:/i'
4951
- label: 'build'
5052
title:
51-
- '/build:/i'
53+
- '/^build(\([^)]+\))?!?:/i'
5254
- label: 'documentation'
5355
title:
54-
- '/docs:/i'
55-
- '/documentation:/i'
56-
- '/doc:/i'
56+
- '/^docs(\([^)]+\))?!?:/i'
57+
- '/^documentation(\([^)]+\))?!?:/i'
58+
- '/^doc(\([^)]+\))?!?:/i'
5759
- label: 'testing'
5860
title:
59-
- '/tests:/i'
60-
- '/test:/i'
61-
- '/testing:/i'
61+
- '/^tests(\([^)]+\))?!?:/i'
62+
- '/^test(\([^)]+\))?!?:/i'
63+
- '/^testing(\([^)]+\))?!?:/i'
6264
- label: 'ci'
6365
title:
64-
- '/ci:/i'
66+
- '/^ci(\([^)]+\))?!?:/i'
6567
- label: 'refactoring'
6668
title:
67-
- '/refactoring:/i'
68-
- '/refactor:/i'
69+
- '/^refactoring(\([^)]+\))?!?:/i'
70+
- '/^refactor(\([^)]+\))?!?:/i'
6971
- label: 'style'
7072
title:
71-
- '/style:/i'
72-
- '/whitespace:/i'
73+
- '/^style(\([^)]+\))?!?:/i'
74+
- '/^whitespace(\([^)]+\))?!?:/i'
7375
- label: 'chore'
7476
title:
75-
- '/chore:/i'
76-
- '/chores:/i'
77+
- '/^chore(\([^)]+\))?!?:/i'
78+
- '/^chores(\([^)]+\))?!?:/i'

0 commit comments

Comments
 (0)