Skip to content

Commit 746b71f

Browse files
authored
Merge pull request #54 from Kpler/chore/allow_mq_branch_name
chore: allow merge queue branch names
2 parents 3dca25e + 4daa469 commit 746b71f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

branch-naming.sh

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

0 commit comments

Comments
 (0)