Compare commits

..

4 Commits

Author SHA1 Message Date
Lee Miller 18fbf900ed
Finalize with check-runs only 2022-05-27 04:25:17 +03:00
Lee Miller 36e75b1b69
Comment WIP checks 2022-05-25 02:51:10 +03:00
Lee Miller 8e1666b05a
Fix errors:
- propose only open PRs from gitea
  - use ssh_url - both repos should have ssh urls
  - exit if pull failed
2022-05-19 02:19:12 +03:00
Lee Miller 3127fa2e4c
Start writing the script for merging a gitea PR 2022-04-23 02:47:09 +03:00
1 changed files with 2 additions and 5 deletions

View File

@ -54,11 +54,6 @@ 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" \
@ -83,6 +78,8 @@ 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"}'