We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3dca25e + 4daa469 commit 746b71fCopy full SHA for 746b71f
1 file changed
branch-naming.sh
@@ -3,9 +3,10 @@
3
exit_status=0
4
currentbranch=$(git symbolic-ref --short HEAD)
5
dependabot="dependabot"
6
+merge-queue="gh-readonly-queue"
7
# NOTE: Branches created by Dependabot does not have any limit, according to
8
# https://github.com/dependabot/dependabot-core/issues/396, that's why we allow them
-if [ "$(expr length "$currentbranch")" -gt 70 ] && [[ ! "$currentbranch" =~ $dependabot ]]
9
+if [ "$(expr length "$currentbranch")" -gt 70 ] && [[ ! "$currentbranch" =~ $dependabot ]] && [[ ! "$currentbranch" =~ merge-queue ]]
10
then
11
exit_status=1
12
echo "Branch name too long, should be less than 70 characters."
0 commit comments