Skip to content

Commit 0034188

Browse files
authored
Merge pull request #56 from Kpler/chore/allow_mq_branch_name
fix: fix branch-naming.sh
2 parents 746b71f + 8bc6fcb commit 0034188

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

branch-naming.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
exit_status=0
44
currentbranch=$(git symbolic-ref --short HEAD)
55
dependabot="dependabot"
6-
merge-queue="gh-readonly-queue"
6+
mergequeue="gh-readonly-queue"
77
# NOTE: Branches created by Dependabot does not have any limit, according to
88
# https://github.com/dependabot/dependabot-core/issues/396, that's why we allow them
9-
if [ "$(expr length "$currentbranch")" -gt 70 ] && [[ ! "$currentbranch" =~ $dependabot ]] && [[ ! "$currentbranch" =~ merge-queue ]]
9+
if [ "$(expr length "$currentbranch")" -gt 70 ] && [[ ! "$currentbranch" =~ $dependabot ]] && [[ ! "$currentbranch" =~ $mergequeue ]]
1010
then
1111
exit_status=1
1212
echo "Branch name too long, should be less than 70 characters."

0 commit comments

Comments
 (0)