Compare commits
1 Commits
18fbf900ed
...
514f6433b2
Author | SHA1 | Date |
---|---|---|
Lee Miller | 514f6433b2 |
|
@ -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"}'
|
||||
|
|
Loading…
Reference in New Issue