Skip to content

Commit e15affa

Browse files
committed
update pull request description
1 parent 481982a commit e15affa

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

content/v3/pulls.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,11 @@ Name | Description
2323
-----|-----------|
2424
`self`| The API location of this Pull Request.
2525
`html`| The HTML location of this Pull Request.
26-
`comments`| The API location of this Pull Request's Issue comments.
27-
`review_comments`| The API location of this Pull Request's Review comments.
28-
`statuses`| The API location of this Pull Request's commit statuses, which are the statuses of its `head` branch.
26+
`issue`| The API location of this Pull Request's [Issue](/v3/issues/).
27+
`comments`| The API location of this Pull Request's [Issue comments](/v3/issues/comments/).
28+
`review_comments`| The API location of this Pull Request's [Review comments](/v3/pulls/comments/).
29+
`commits`|The API location of this Pull Request's [commits](#list-commits-on-a-pull-request).
30+
`statuses`| The API location of this Pull Request's [commit statuses](/v3/repos/statuses/), which are the statuses of its `head` branch.
2931

3032
## List pull requests
3133

lib/resources.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,10 @@ def text_html(response, status, head = {})
392392
"html_url" => "https://github.com/octocat/Hello-World/pull/1",
393393
"diff_url" => "https://github.com/octocat/Hello-World/pulls/1.diff",
394394
"patch_url" => "https://github.com/octocat/Hello-World/pulls/1.patch",
395-
"issue_url" => "https://github.com/octocat/Hello-World/issue/1",
395+
"issue_url" => "https://api.github.com/repos/octocat/Hello-World/issues/1",
396+
"commits_url" => "https://api.github.com/repos/octocat/Hello-World/pulls/1/commits",
397+
"review_comments_url" => "https://api.github.com/repos/octocat/Hello-World/pulls/1/comments",
398+
"comments_url" => "https://api.github.com/repos/octocat/Hello-World/issues/1/comments",
396399
"statuses_url" => "https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e",
397400
"number" => 1,
398401
"state" => "open",
@@ -421,10 +424,14 @@ def text_html(response, status, head = {})
421424
"https://api.github.com/repos/octocat/Hello-World/pulls/1"},
422425
"html" => {'href' =>
423426
"https://github.com/octocat/Hello-World/pull/1"},
427+
"issue" => {'href' =>
428+
"https://api.github.com/repos/octocat/Hello-World/issues/1"},
424429
"comments" => {'href' =>
425430
"https://api.github.com/repos/octocat/Hello-World/issues/1/comments"},
426431
"review_comments" => {'href' =>
427432
"https://api.github.com/repos/octocat/Hello-World/pulls/1/comments"},
433+
"commits" => { 'href' =>
434+
"https://api.github.com/repos/octocat/Hello-World/pulls/1/commits"},
428435
"statuses" => {'href' =>
429436
"https://api.github.com/repos/octocat/Hello-World/statuses/6dcb09b5b57875f334f61aebed695e2e4193db5e"}
430437
},

0 commit comments

Comments
 (0)