Skip to content

Commit 2862e31

Browse files
committed
[Chore::workflow] perfect branch-name.sh style
1 parent 79c1a81 commit 2862e31

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

.github/shell/branch-name.sh

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#!/bin/bash
2-
branchType="feature|hotfix|improve|chore"
2+
branch_type="feature|hotfix|improve|chore"
33

4-
if [[ $1 =~ ^($branchType)/[a-z]+(-[a-z]+)*$ ]]
5-
then
4+
if [[ $1 =~ ^($branch_type)/[a-z]+(-[a-z]+)*$ ]];then
65
exit 0
76
else
87
exit 1

0 commit comments

Comments
 (0)