File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 199199TARGET_REPO=$( jq -r ' .base.repo.name' $PR_URL_CONTENTS )
200200RTM_LABEL=$( jq -r ' .labels[] | select(.name == "approval: ready to merge") | .name' $PR_URL_CONTENTS )
201201URGENT_LABEL=$( jq -r ' .labels[] | select(.name == "severity: urgent") | .name' $PR_URL_CONTENTS )
202+ HOLD_LABEL=$( jq -r ' .labels[] | select(.name|test("hold*")) | .name' $PR_URL_CONTENTS )
202203
203204if [ " $TARGET_REPO " != " openssl" ]
204205then
@@ -207,9 +208,12 @@ elif [ -z "$RTM_LABEL" -a -z "$URGENT_LABEL" ]
207208then
208209 >&2 echo " This PR has neither the ready to merge or urgent label set, can't merge"
209210 exit 1
211+ elif [ -n " $HOLD_LABEL " ]
212+ then
213+ >&2 echo " This PR has hold label, can't merge"
214+ exit 1
210215fi
211216
212-
213217ORIG_REF=` git rev-parse --abbrev-ref HEAD` # usually this will be 'master'
214218STASH_OUT=` git stash`
215219WORK=" copy-of-${WHO} -${BRANCH} "
You can’t perform that action at this time.
0 commit comments