mirror of https://github.com/status-im/consul.git
Merge pull request #9130 from hashicorp/dnephin/ci-make-backport-easier
ci: Make backporting post-merge a bit easier
This commit is contained in:
commit
2ef2723507
|
@ -131,6 +131,16 @@ fi
|
||||||
# save PR number
|
# save PR number
|
||||||
pr_number=$(echo "$resp" | jq '.items[].number')
|
pr_number=$(echo "$resp" | jq '.items[].number')
|
||||||
|
|
||||||
|
# comment on the PR with the build number to make it easy to re-run the job when
|
||||||
|
# cherry-pick labels are added in the future
|
||||||
|
github_message=":cherries: Starting backport cherry picking.\n\nTo cherry-pick post-merge, add backport labels and re-run ${CIRCLE_BUILD_URL}."
|
||||||
|
curl -f -s -H "Authorization: token ${GITHUB_TOKEN}" \
|
||||||
|
-X POST \
|
||||||
|
-d "{ \"body\": \"${github_message}\"}" \
|
||||||
|
"https://api.github.com/repos/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}/issues/${pr_number}/comments"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# If the API returned a non-zero count, we have found a PR with that commit so we find
|
# If the API returned a non-zero count, we have found a PR with that commit so we find
|
||||||
# the labels from the PR
|
# the labels from the PR
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue