Skip to content

Commit 8cdad50

Browse files
committed
Merge pull request github#370 from gabrielweyer/pull-comment
Updated definition of pull comment
2 parents 18c8dc9 + 0f84887 commit 8cdad50

1 file changed

Lines changed: 15 additions & 10 deletions

File tree

lib/resources.rb

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -505,16 +505,21 @@ def text_html(response, status, head = {})
505505
"files" => [FILE],
506506
}
507507

508-
PULL_COMMENT = {
509-
"url" => "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
510-
"id" => 1,
511-
"body" => "Great stuff",
512-
"path" => "file1.txt",
513-
"position" => 4,
514-
"commit_id" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
515-
"user" => USER,
516-
"created_at" => "2011-04-14T16:00:49Z",
517-
"updated_at" => "2011-04-14T16:00:49Z",
508+
PULL_COMMENT = {
509+
"url" => "https://api.github.com/repos/octocat/Hello-World/pulls/comments/1",
510+
"id" => 1,
511+
"diff_hunk" => "@@ -16,33 +16,40 @@ public class Connection : IConnection...",
512+
"path" => "file1.txt",
513+
"position" => 1,
514+
"original_position" => 4,
515+
"commit_id" => "6dcb09b5b57875f334f61aebed695e2e4193db5e",
516+
"original_commit_id" => "9c48853fa3dc5c1c3d6f1f1cd1f2743e72652840",
517+
"user" => USER,
518+
"body" => "Great stuff",
519+
"created_at" => "2011-04-14T16:00:49Z",
520+
"updated_at" => "2011-04-14T16:00:49Z",
521+
"html_url" => "https://github.com/octocat/Hello-World/pull/1#discussion-diff-1",
522+
"pull_request_url" => "https://api.github.com/repos/octocat/Hello-World/pulls/1",
518523
"_links" => {
519524
"self" => {'href' =>
520525
"https://api.github.com/repos/octocat/Hello-World/pulls/comments/1"},

0 commit comments

Comments
 (0)