curl --location --request PUT 'https://api.github.com/repos///pulls//reviews//dismissals' \
--header 'Content-Type: application/json' \
--data-raw '{
"event": "\"APPROVE\"",
"message": "string"
}'
{
"_links": {
"html": {
"href": "string"
},
"pull_request": {
"href": "string"
}
},
"author_association": "OWNER",
"body": "This looks great.",
"body_html": "string",
"body_text": "string",
"commit_id": "54bb654c9e6025347f57900a4a5c2313a96b8035",
"html_url": "https://github.com/octocat/Hello-World/pull/12#pullrequestreview-80",
"id": 42,
"node_id": "MDE3OlB1bGxSZXF1ZXN0UmV2aWV3ODA=",
"pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/12",
"state": "CHANGES_REQUESTED",
"submitted_at": "2019-08-24T14:15:22Z",
"user": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"followers_url": "https://api.github.com/users/octocat/followers",
"following_url": "https://api.github.com/users/octocat/following{/other_user}",
"gists_url": "https://api.github.com/users/octocat/gists{/gist_id}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
}
}
Authorization: Bearer ********************
【GitHub】API开发者 微信交流群
用微信扫右侧二维码,加入【GitHub】API开发者 交流群,互助沟通