Skip to content

Commit

Permalink
fix(release-drafter): Support modules like fix(xxx): in autolabeler.
Browse files Browse the repository at this point in the history
  • Loading branch information
iphydf committed Nov 8, 2024
1 parent b51a652 commit a884bb5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/mergeable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ mergeable:
- do: title
or:
- must_include:
regex: ^(feat|docs|chore|cleanup|fix|refactor|test|style|perf)(\(\w+\))?:\ .+$
regex: ^(feat|docs|chore|cleanup|fix|refactor|test|style|perf)(\([^)]+\))?:\ .+$
message: Semantic release conventions must be followed.
- must_include:
regex: ^Bump [^ ]* from [^ ]* to [^ ]*$
message: Dependabot PRs are exempt from semantic release conventions.
- do: commit
message:
regex: ^((feat|docs|chore|cleanup|fix|refactor|test|style|perf)(\(\w+\))?:\ .+|Bump [^ ]* from [^ ]* to [^ ]*)
regex: ^((feat|docs|chore|cleanup|fix|refactor|test|style|perf)(\([^)]+\))?:\ .+|Bump [^ ]* from [^ ]* to [^ ]*)
message: Semantic release conventions must be followed.
# All todo check boxes must be checked.
- do: description
Expand Down
20 changes: 10 additions & 10 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
replacers:
- search: "/- (feat|fix|docs|chore|cleanup|style|refactor|perf|test)(\\(\\w+\\))?: /g"
- search: "/- (feat|fix|docs|chore|cleanup|style|refactor|perf|test)(\\([^)]+\\))?: /g"
replace: "- "

name-template: "v$NEXT_PATCH_VERSION"
Expand All @@ -9,23 +9,23 @@ change-template: "- $TITLE @$AUTHOR (#$NUMBER)"

autolabeler:
- label: enhancement
title: '/^feat:/'
title: '/^feat[:(]/'
- label: bug
title: '/^fix:/'
title: '/^fix[:(]/'
- label: documentation
title: '/^docs:/'
title: '/^docs[:(]/'
- label: chore
title: '/^chore:/'
title: '/^chore[:(]/'
- label: cleanup
title: '/^cleanup:/'
title: '/^cleanup[:(]/'
- label: style
title: '/^style:/'
title: '/^style[:(]/'
- label: refactor
title: '/^refactor:/'
title: '/^refactor[:(]/'
- label: performance
title: '/^perf:/'
title: '/^perf[:(]/'
- label: test
title: '/^test:/'
title: '/^test[:(]/'

categories:
- title: "Breaking changes"
Expand Down

0 comments on commit a884bb5

Please sign in to comment.