Skip to content

Commit d22d7cb

Browse files
committed
feat: add support for copilot branches
1 parent 5bc2559 commit d22d7cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/branch.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ function isBranchNameValid(branchName) {
66
!!branchName.match(/^revert-([0-9]+)-([a-z0-9_\-@./_-]*)$/) ||
77
!!branchName.match(/^(mobsuccessbot)\/([a-z0-9_\-@./_-]*)$/) ||
88
!!branchName.match(/^(dependabot)\/([a-z][a-zA-Z0-9./_-]*)$/) ||
9-
!!branchName.match(/^(renovate)\/([a-z0-9_\-@./_-]*)$/)
9+
!!branchName.match(/^(renovate)\/([a-z0-9_\-@./_-]*)$/) ||
10+
!!branchName.match(/^(copilot)\/([a-z0-9_\-@./_-]*)$/)
1011
);
1112
}
1213

0 commit comments

Comments
 (0)