Skip to content

Commit 97247da

Browse files
committed
Correct html_url for Pull Request resource
1 parent 6cf03be commit 97247da

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/resources.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ def text_html(response, status, head = {})
351351

352352
PULL = {
353353
"url" => "https://api.github.com/octocat/Hello-World/pulls/1",
354-
"html_url" => "https://github.com/octocat/Hello-World/pulls/1",
354+
"html_url" => "https://github.com/octocat/Hello-World/pull/1",
355355
"diff_url" => "https://github.com/octocat/Hello-World/pulls/1.diff",
356356
"patch_url" => "https://github.com/octocat/Hello-World/pulls/1.patch",
357357
"issue_url" => "https://github.com/octocat/Hello-World/issue/1",
@@ -602,9 +602,9 @@ def text_html(response, status, head = {})
602602
"milestone" => MILESTONE,
603603
"comments" => 0,
604604
"pull_request" => {
605-
"html_url" => "https://github.com/octocat/Hello-World/issues/1347",
606-
"diff_url" => "https://github.com/octocat/Hello-World/issues/1347.diff",
607-
"patch_url" => "https://github.com/octocat/Hello-World/issues/1347.patch"
605+
"html_url" => "https://github.com/octocat/Hello-World/pull/1347",
606+
"diff_url" => "https://github.com/octocat/Hello-World/pull/1347.diff",
607+
"patch_url" => "https://github.com/octocat/Hello-World/pull/1347.patch"
608608
},
609609
"closed_at" => nil,
610610
"created_at" => "2011-04-22T13:33:48Z",

0 commit comments

Comments
 (0)