File tree Expand file tree Collapse file tree 3 files changed +33
-3
lines changed
Expand file tree Collapse file tree 3 files changed +33
-3
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,22 @@ Pull Requests leverage [these](#custom-mime-types) custom mime types. You
88can read more about the use of mime types in the API
99[ here] ( /v3/mime/ ) .
1010
11+ ## Link Relations
12+
13+ Pull Requests have these possible link relations:
14+
15+ ` self `
16+ : The API location of this Pull Request.
17+
18+ ` html `
19+ : The HTML location of this Pull Request.
20+
21+ ` comments `
22+ : The API location of this Pull Request's Issue comments.
23+
24+ ` review_comments `
25+ : The API location of this Pull Request's Review comments.
26+
1127## List pull requests
1228
1329 GET /repos/:user/:repo/pulls
Original file line number Diff line number Diff line change 22title : Pull Request Comments | GitHub API
33---
44
5- # Pull Request Comments API
5+ # Pull Request Review Comments API
66
7- Pull Request Comments leverage [ these] ( #custom-mime-types ) custom mime
7+ Pull Request Review Comments are comments on a portion of the unified
8+ diff. These are separate from Commit Comments (which are applied
9+ directly to a commit, outside of the Pull Request view), and Issue
10+ Comments (which do not reference a portion of the unified diff).
11+
12+ Pull Request Review Comments leverage [ these] ( #custom-mime-types ) custom mime
813types. You can read more about the use of mime types in the API
914[ here] ( /v3/mime/ ) .
1015
Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ def json(key)
150150 }
151151 }
152152
153-
154153 PULL = {
155154 "url" => "https://api.github.com/octocat/Hello-World/pulls/1" ,
156155 "html_url" => "https://github.com/octocat/Hello-World/pulls/1" ,
@@ -165,6 +164,16 @@ def json(key)
165164 "updated_at" => "2011-01-26T19:01:12Z" ,
166165 "closed_at" => "2011-01-26T19:01:12Z" ,
167166 "merged_at" => "2011-01-26T19:01:12Z" ,
167+ "_links" => {
168+ "self" => { '_href' =>
169+ "https://api.github.com/octocat/Hello-World/pulls/1" } ,
170+ "html" => { '_href' =>
171+ "https://github.com/octocat/Hello-World/pull/1" } ,
172+ "comments" => { '_href' =>
173+ "https://api.github.com/octocat/Hello-World/issues/1/comments" } ,
174+ "review_comments" => { '_href' =>
175+ "https://api.github.com/octocat/Hello-World/pulls/1/comments" }
176+ }
168177 }
169178
170179 FULL_PULL = PULL . merge ( {
You can’t perform that action at this time.
0 commit comments