mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-05-30 08:11:03 +00:00
fix check polkadot companion status check (#6688)
This commit is contained in:
committed by
GitHub
parent
42eb3f0695
commit
7e72a658c7
@@ -82,12 +82,14 @@ curl -H "${github_header}" -sS -o companion_pr_reviews.json \
|
|||||||
${github_api_polkadot_pull_url}/${pr_companion}/reviews
|
${github_api_polkadot_pull_url}/${pr_companion}/reviews
|
||||||
|
|
||||||
# If there are any 'CHANGES_REQUESTED' reviews for the *current* review
|
# If there are any 'CHANGES_REQUESTED' reviews for the *current* review
|
||||||
|
jq -r -e '.[] | select(.state == "CHANGES_REQUESTED").commit_id' \
|
||||||
|
< companion_pr_reviews.json > companion_pr_reviews_current.json
|
||||||
while IFS= read -r line; do
|
while IFS= read -r line; do
|
||||||
if [ "$line" = "$pr_head_sha" ]; then
|
if [ "$line" = "$pr_head_sha" ]; then
|
||||||
boldprint "polkadot pr #${pr_companion} has CHANGES_REQUESTED for the latest commit"
|
boldprint "polkadot pr #${pr_companion} has CHANGES_REQUESTED for the latest commit"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
done <<< $(jq -r -e '.[] | select(.state == "CHANGES_REQUESTED").commit_id' < companion_pr_reviews.json)
|
done < companion_pr_reviews_current.json
|
||||||
|
|
||||||
# Then we check for at least 1 APPROVED
|
# Then we check for at least 1 APPROVED
|
||||||
if [ -z "$(jq -r -e '.[].state | select(. == "APPROVED")' < companion_pr_reviews.json)" ]; then
|
if [ -z "$(jq -r -e '.[].state | select(. == "APPROVED")' < companion_pr_reviews.json)" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user