Skip to content

Commit

Permalink
change: add all conventional commits prefixes (#85)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccaulonque committed Mar 7, 2024
1 parent 1f12103 commit 8a1c5e4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function isBranchNameValidLegacy(branchName) {
function isBranchNameValid(branchName) {
return (
!!branchName.match(
/^(feat|fix|chore|docs|refactor|change|remove|test|revert|poc|mobsuccessbot|dependabot)\/([a-z][a-z0-9._-]*)$/
/^(feat|fix|chore|docs|refactor|test|revert|ci|perf|style|build|change|remove|poc|mobsuccessbot|dependabot)\/([a-z][a-z0-9._-]*)$/
) ||
!!branchName.match(/^(mobsuccessbot)\/([a-z0-9_\-@./_-]*)$/) ||
!!branchName.match(/^(dependabot)\/([a-z][a-zA-Z0-9./_-]*)$/)
Expand Down
2 changes: 1 addition & 1 deletion lib/pullRequest.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ function isPullRequestTitleValidLegacy(pullRequestName) {
// commit convention: prefix([optional scope]): description
function isPullRequestTitleValid(pullRequestName) {
return !!pullRequestName.match(
/^(feat|fix|chore|docs|refactor|change|remove|test|revert|poc)(?:\(.+\))?!?:.+/
/^(feat|fix|chore|docs|refactor|test|revert|build|ci|perf|style|change|remove|poc)(?:\(.+\))?!?:.+/
);
}

0 comments on commit 8a1c5e4

Please sign in to comment.