Compare commits

..

1 Commits

1 changed files with 5 additions and 2 deletions

View File

@ -54,6 +54,11 @@ url=$(echo $pr | jq '.url' | tr -d '"')
# Return non-zero status if have a check with conclusion other than "success"
pr_status () {
# Need Instead compare
# required:
# curl -s -X GET $branch | jq '.protection.required_status_checks.contexts'
# done:
# curl -s -X GET ${REPOAPIURL}/commits/${commit}/status
checks=$(
curl -s -X GET \
-H "Accept: application/vnd.github.v3+json" \
@ -78,8 +83,6 @@ for tick in {1..30}; do
done
# curl -s -X GET ${REPOAPIURL}/commits/${commit}/status
# curl -s -u ${3} -X POST \
# -H "Accept: application/vnd.github.v3+json" $url/reviews \
# -d '{"event":"APPROVE"}'