Skip to content

Commit 3687ef3

Browse files
authored
chore(publish): Fix release.yml commit patterns (#1185)
1 parent 4bf938f commit 3687ef3

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

.github/release.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,24 +10,29 @@ changelog:
1010
labels:
1111
- "Changelog: Breaking Change"
1212
commit_patterns:
13-
- "^\w+(\(\w+\))?!:"
14-
- title: New Features
13+
- "^(?<type>\\w+(?:\\((?<scope>[^)]+)\\))?!:\\s*)"
14+
15+
- title: Features
1516
labels:
1617
- "Changelog: Feature"
1718
commit_patterns:
18-
- "^feat(\(\w+\))?:"
19+
- "^(?<type>feat(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"
20+
1921
- title: Bug Fixes
2022
labels:
2123
- "Changelog: Bugfix"
2224
commit_patterns:
23-
- "^fix(\(\w+\))?:"
24-
- title: Documentation 📚
25+
- "^(?<type>fix(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"
26+
- "^Revert \""
27+
28+
- title: Documentation
2529
labels:
2630
- "Changelog: Docs"
2731
commit_patterns:
28-
- "^docs?(\(\w+\))?:"
29-
- title: Internal Changes 🔧
32+
- "^(?<type>docs?(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"
33+
34+
- title: Internal Changes
3035
labels:
3136
- "Changelog: Internal"
3237
commit_patterns:
33-
- "^(build|ref|chore|ci)(\(\w+\))?:"
38+
- "^(?<type>(?:build|refactor|meta|chore|ci|ref|perf)(?:\\((?<scope>[^)]+)\\))?!?:\\s*)"

0 commit comments

Comments
 (0)