Commit 97689a2 1 parent 5effa82 commit 97689a2 Copy full SHA for 97689a2
File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 3
3
# Check a specified branch name against a list of allowed patterns.
4
4
function check_branch_name() {
5
5
case $1 in
6
- VAGOV-TEAM-[1-9][0-9]* | VACMS-[1-9][0-9]* | dependabot/* | revert-* | " " ) return 0;;
6
+ VAGOV-TEAM-[1-9][0-9]* | VACMS-[1-9][0-9]* | dependabot/* | revert-* | [1-9][0-9] * | " " ) return 0;;
7
7
* ) return 1;;
8
8
esac
9
9
}
@@ -22,7 +22,8 @@ function branch_name_error() {
22
22
cat << -EOF >&2
23
23
Aborting commit. Your branch name must be prefixed with one of the following:
24
24
- a VAGOV-TEAM-* or VACMS-* Github issue number format,
25
- e.g. VAGOV-TEAM-123-issue-name or VACMS-123-issue-name.
25
+ e.g. VAGOV-TEAM-123-issue-name or VACMS-123-issue-name
26
+ - a new GitHub issue number format, e.g. 123-issue-name
26
27
- dependabot/* (for work on Dependabot PRs)
27
28
- revert-* (for work on GitHub-initiated revert PRs)
28
29
You can’t perform that action at this time.
0 commit comments