curl --location --request PUT 'https://api.github.com/repos///pulls//update-branch' \
--header 'Content-Type: application/json' \
--data-raw '{
"expected_head_sha": "6dcb09b5b57875f334f61aebed695e2e4193db5e"
}'
{
"message": "Updating pull request branch.",
"url": "https://github.com/repos/octocat/Hello-World/pulls/53"
}
Authorization: Bearer ********************
422 Unprocessable Entity
status. You can use the "List commits" endpoint to find the most recent commit SHA. Default: SHA of the pull request's current HEAD ref.【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通