scripts/prepare_changelog: Update jq filter to ignore tech-debt labelled pull-requests

This commit is contained in:
Wilken Rivera 2020-02-11 16:19:16 -05:00
parent 2d0c796837
commit 19e7114301
1 changed files with 2 additions and 1 deletions

View File

@ -12,7 +12,8 @@ is_doc_pr(){
return 1
fi
PR_NUM=$1
out=$(curl -fsS "https://api.github.com/repos/hashicorp/packer/issues/${PR_NUM}" | jq '[.labels[].name == "docs"] | any')
out=$(curl -fsS "https://api.github.com/repos/hashicorp/packer/issues/${PR_NUM}" \
| jq '[.labels[].name == "docs" or .labels[].name == "tech-debt"] | any')
exy="$?"
if [ $exy -ne 0 ]; then
echo "bad response from github"