Skip to content

Commit

Permalink
Merge pull request #36 from mobsuccess-devops/fix/dependabot-branch-n…
Browse files Browse the repository at this point in the history
…ame-rules

Fix dependabot branch name rules
  • Loading branch information
gillesperrin committed Sep 28, 2022
2 parents 7d84f16 + 0e2a936 commit 4b043cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/branch.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ exports.isBranchNameValid = (branchName) =>
/^(core|feature|fix|hotfix|asset|rework|documentation|mobsuccessbot|dependabot)\/([a-z][a-z0-9.-]*)$/
) ||
!!branchName.match(/^(mobsuccessbot)\/([a-z0-9_\-@./_-]*)$/) ||
!!branchName.match(/^(dependabot)\/([a-z][a-z0-9./_-]*)$/) ||
!!branchName.match(/^(dependabot)\/([a-z][a-zA-Z0-9./_-]*)$/) ||
!!branchName.match(/^revert-[0-9]+-/) ||
!!branchName.match(/^(rework)\/([A-Z][a-zA-Z0-9.-]*)$/)) &&
!branchName.match(/---/) &&
Expand Down

0 comments on commit 4b043cb

Please sign in to comment.