Skip to content

Commit

Permalink
only check BackportReason label if Backport to: is set
Browse files Browse the repository at this point in the history
Signed-off-by: deepthi <[email protected]>
  • Loading branch information
deepthi committed Dec 13, 2023
1 parent 9afeba7 commit 2bf36e1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/check_label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ jobs:
exit 1
fi
if cat ${LABELS_JSON} | jq -r '.[].name ' | grep -q 'NeedsBackportReason' ; then
echo "Expecting PR to not have the NeedsBackportReason label; please add your justification to the PR description and remove the label."
exit 1
if cat ${LABELS_JSON} | jq -r '.[].name ' | grep -q 'Backport to:'; then
echo "Expecting PR to not have the NeedsBackportReason label; please add your justification to the PR description and remove the label."
exit 1
fi
fi
Expand Down

0 comments on commit 2bf36e1

Please sign in to comment.