Skip to content

Commit 4642048

Browse files
committed
document review_comment link relation
1 parent e35968d commit 4642048

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

content/v3/pulls.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ Name | Description
2626
`issue`| The API location of this Pull Request's [Issue](/v3/issues/).
2727
`comments`| The API location of this Pull Request's [Issue comments](/v3/issues/comments/).
2828
`review_comments`| The API location of this Pull Request's [Review comments](/v3/pulls/comments/).
29+
`review_comment`| The [URL template](/v3/#hypermedia) to construct the API location for a [Review comment](/v3/pulls/comments/) in this Pull Request's repository.
2930
`commits`|The API location of this Pull Request's [commits](#list-commits-on-a-pull-request).
3031
`statuses`| The API location of this Pull Request's [commit statuses](/v3/repos/statuses/), which are the statuses of its `head` branch.
3132

lib/resources.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,7 @@ def text_html(response, status, head = {})
395395
"issue_url" => "https://api.github.com/repos/octocat/Hello-World/issues/1",
396396
"commits_url" => "https://api.github.com/repos/octocat/Hello-World/pulls/1/commits",
397397
"review_comments_url" => "https://api.github.com/repos/octocat/Hello-World/pulls/1/comments",
398+
"review_comment_url" => "https://api.github.com/repos/octocat/Hello-World/pulls/comments/{number}",
398399
"comments_url" => "https://api.github.com/repos/octocat/Hello-World/issues/1/comments",
399400
"statuses_url" => "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
400401
"number" => 1,
@@ -430,6 +431,8 @@ def text_html(response, status, head = {})
430431
"https://api.github.com/repos/octocat/Hello-World/issues/1/comments"},
431432
"review_comments" => {'href' =>
432433
"https://api.github.com/repos/octocat/Hello-World/pulls/1/comments"},
434+
"review_comment" => {'href' =>
435+
"https://api.github.com/repos/octocat/Hello-World/pulls/comments/{number}"},
433436
"commits" => { 'href' =>
434437
"https://api.github.com/repos/octocat/Hello-World/pulls/1/commits"},
435438
"statuses" => {'href' =>

0 commit comments

Comments
 (0)