Skip to content

Commit

Permalink
Merge pull request #8932 from planetscale/ensure-release-labels-are-set
Browse files Browse the repository at this point in the history
Checking if pull requests have a release notes label
  • Loading branch information
deepthi authored Oct 8, 2021
2 parents fad95bf + a581324 commit 8d6e89b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/pr-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,8 @@ jobs:
echo "Expecting PR to have label 'Type: ...'"
exit 1
fi
if ! cat ${LABELS_JSON} | jq -r '.[].name ' | grep 'release notes' | wc -l | grep -q 1 ; then
echo "Expecting PR to have only one of the following labels: 'release notes', 'release notes none', 'release notes (needs details)'."
exit 1
fi
exit 0

0 comments on commit 8d6e89b

Please sign in to comment.