Skip to content
Permalink
Browse files

Review WPT sync PRs automatically

  • Loading branch information...
CYBAI committed Apr 4, 2019
1 parent 5defd51 commit 69da3aee1980c6153e750efb8b5ac17a8c099e3e
Showing with 10 additions and 4 deletions.
  1. +10 −4 etc/ci/update-wpt-checkout
@@ -112,10 +112,16 @@ function unsafe_open_pull_request() {
EOF

# Open a pull request using the new branch.
curl -H "Authorization: token ${WPT_SYNC_TOKEN}" \
-H "Content-Type: application/json" \
--data @prdata.json \
https://api.github.com/repos/servo/servo/pulls || return 5
OPEN_PR_RESPONSE=$(curl -H "Authorization: token ${WPT_SYNC_TOKEN}" \
-H "Content-Type: application/json" \
--data @prdata.json \
https://api.github.com/repos/servo/servo/pulls) || return 5

echo "${OPEN_PR_RESPONSE}" | \
jq '.review_comments_url' | \
sed 's/pulls/issues/' | \
xargs curl -H "Authorization: token ${WPT_SYNC_TOKEN}" \
--data "{\"body\":\"@bors-servo r+\"}" || return 6
}

function pull_from_upstream() {

0 comments on commit 69da3ae

Please sign in to comment.
You can’t perform that action at this time.