mirror of
https://github.com/servo/servo.git
synced 2025-07-12 09:53:40 +01:00
Auto merge of #23162 - CYBAI:wpt-auto-reviewed, r=jdm
Review WPT sync PRs automatically --- - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23113 - [x] These changes do not require tests because it's about infrastructure <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/23162) <!-- Reviewable:end -->
This commit is contained in:
commit
b557c4c0b3
1 changed files with 10 additions and 4 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue