curl --location --request GET 'https://api.github.com/repos///pulls//reviews//comments'
[
{
"_links": {
"html": {
"href": "string"
},
"pull_request": {
"href": "string"
},
"self": {
"href": "string"
}
},
"author_association": "OWNER",
"body": "Great stuff",
"body_html": "string",
"body_text": "string",
"commit_id": "6dcb09b5b57875f334f61aebed695e2e4193db5e",
"created_at": "2011-04-14T16:00:49Z",
"diff_hunk": "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
"html_url": "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
"id": 10,
"in_reply_to_id": 8,
"line": 2,
"node_id": "MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDEw",
"original_commit_id": "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
"original_line": 2,
"original_position": 4,
"original_start_line": 2,
"path": "file1.txt",
"position": 1,
"pull_request_review_id": 42,
"pull_request_url": "https://api.github.com/repos/octocat/Hello-World/pulls/1",
"side": "RIGHT",
"start_line": 2,
"start_side": "RIGHT",
"updated_at": "2011-04-14T16:00:49Z",
"url": "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
"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开发者 交流群,互助沟通