Lines Matching +full:rev +full:- +full:parse
3 set -xe
14 COMMIT_QUEUE_LABEL='commit-queue'
15 COMMIT_QUEUE_FAILED_LABEL='commit-queue-failed'
34 curl -fsL --request "$method" \
35 --url "$url" \
36 --header "authorization: Bearer ${GITHUB_TOKEN}" \
37 --header 'content-type: application/json' "$@"
41 gitHubCurl "$(labelsUrl "${1}")" POST --data '{"labels": ["'"${COMMIT_QUEUE_FAILED_LABEL}"'"]}'
45 …jq -n --arg content "<details><summary>Commit Queue failed</summary><pre>$(cat output)</pre><a hre…
48 gitHubCurl "$(commentsUrl "${1}")" POST --data @output.json
54 git config --local user.email "github-bot@iojs.org"
55 git config --local user.name "Node.js GitHub Bot"
59 if gitHubCurl "$(labelsUrl "$pr")" GET | jq -e 'map(.name) | index("request-ci")'; then
65 …if ncu-ci url "https://github.com/${OWNER}/${REPOSITORY}/pull/${pr}" 2>&1 | grep "^Result *PENDING…
73 git node land --autorebase --yes "$pr" >output 2>&1 || echo "Failed to land #${pr}"
79 if ! grep -q '. Post "Landed in .*/pull/'"${pr}" output; then
81 # If `git node land --abort` fails, we're in unknown state. Better to stop
84 git node land --abort --yes
88 commits="$(git rev-parse $UPSTREAM/$DEFAULT_BRANCH)...$(git rev-parse HEAD)"
97 gitHubCurl "$(commentsUrl "$pr")" POST --data '{"body": "Landed in '"$commits"'"}'
99 gitHubCurl "$(issueUrl "$pr")" PATCH --data '{"state": "closed"}'