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 199
199
TARGET_REPO=$( jq -r ' .base.repo.name' $PR_URL_CONTENTS )
200
200
RTM_LABEL=$( jq -r ' .labels[] | select(.name == "approval: ready to merge") | .name' $PR_URL_CONTENTS )
201
201
URGENT_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 )
202
203
203
204
if [ " $TARGET_REPO " != " openssl" ]
204
205
then
@@ -207,9 +208,12 @@ elif [ -z "$RTM_LABEL" -a -z "$URGENT_LABEL" ]
207
208
then
208
209
>&2 echo " This PR has neither the ready to merge or urgent label set, can't merge"
209
210
exit 1
211
+ elif [ -n " $HOLD_LABEL " ]
212
+ then
213
+ >&2 echo " This PR has hold label, can't merge"
214
+ exit 1
210
215
fi
211
216
212
-
213
217
ORIG_REF=` git rev-parse --abbrev-ref HEAD` # usually this will be 'master'
214
218
STASH_OUT=` git stash`
215
219
WORK=" copy-of-${WHO} -${BRANCH} "
You can’t perform that action at this time.
0 commit comments