Comment WIP checks
This commit is contained in:
parent
8e1666b05a
commit
36e75b1b69
|
@ -24,6 +24,7 @@ body=$(echo $pr | jq '.body')
|
|||
|
||||
echo "Merging PR ${2}"
|
||||
|
||||
git branch -d gitea-${2}
|
||||
git checkout -b gitea-${2} v0.6
|
||||
git pull ${branch} || exit 1
|
||||
git push --set-upstream origin gitea-${2}
|
||||
|
@ -35,9 +36,23 @@ fi
|
|||
|
||||
head=$(echo ${3} | cut -d: -f1):gitea-${2}
|
||||
|
||||
# echo "-d {\"title\":${title},\"body\":${body},\"head\":\"${head}\",\"base\":\"${upstream}\"}"
|
||||
REPOAPIURL=https://api.github.com/repos/Bitmessage/PyBitmessage
|
||||
|
||||
curl -u ${3} -X POST \
|
||||
-H "Accept: application/vnd.github.v3+json" \
|
||||
https://api.github.com/repos/Bitmessage/PyBitmessage/pulls \
|
||||
-d "{\"title\":${title},\"body\":${body},\"head\":\"${head}\",\"base\":\"${upstream}\"}"
|
||||
pr=$(curl -s -u ${3} -X POST \
|
||||
-H "Accept: application/vnd.github.v3+json" ${REPOAPIURL}/pulls \
|
||||
-d "{\"title\":${title},\"body\":${body},\"head\":\"${head}\",\"base\":\"${upstream}\"}")
|
||||
|
||||
# commit=$(echo $pr | jq '.head.sha')
|
||||
# url=$(echo $pr | jq '.url')
|
||||
|
||||
# checks=$(
|
||||
# curl -s --request GET \
|
||||
# -H "Accept: application/vnd.github.v3+json" \
|
||||
# ${REPOAPIURL}/commits/${commit}/check-runs)
|
||||
|
||||
# sleep 10
|
||||
|
||||
# echo $checks | jq '(.check_runs | map(select(.conclusion == "success")) | length) == .total_count'
|
||||
|
||||
# curl -s -u ${3} -X POST \
|
||||
# -H "Accept: application/vnd.github.v3+json" $url -d '{"event":"APPROVE"}'
|
||||
|
|
Loading…
Reference in New Issue