mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
Update python command for reading in pull.json
This commit is contained in:
parent
0f59a53ba6
commit
88ad9655aa
1 changed files with 2 additions and 2 deletions
|
|
@ -11,7 +11,7 @@ is_doc_or_tech_debt_pr(){
|
|||
echo "jq not found"
|
||||
return 1
|
||||
fi
|
||||
out=$(cat pull.json | python3 -m json.tool \
|
||||
out=$(python3 -m json.tool < pull.json \
|
||||
| jq '[.labels[].name == "docs" or .labels[].name == "tech-debt" or .labels[].name == "website"] | any')
|
||||
grep -q true <<< $out
|
||||
return $?
|
||||
|
|
@ -49,7 +49,7 @@ get_prs(){
|
|||
echo "Skipping PR ${PR_NUM}: labeled as tech debt, docs or website. (waiting a second so we don't get rate-limited...)"
|
||||
continue
|
||||
fi
|
||||
echo "$(cat pull.json | python3 -m json.tool | jq -r '.title') - [GH-${PR_NUM}](https://github.com/hashicorp/packer/pull/${PR_NUM})"
|
||||
echo "$(python3 -m json.tool < pull.json | jq -r '.title') - [GH-${PR_NUM}](https://github.com/hashicorp/packer/pull/${PR_NUM})"
|
||||
done
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue