{"action":"created","comment":{"url":"https://api.github.com/repos/google/go-github/pulls/comments/92034462","pull_request_review_id":12543956,"id":92034462,"diff_hunk":"@@ -0,0 +1,143 @@\n+// Copyright 2013 The go-github AUTHORS. All rights reserved.\n+//\n+// Use of this source code is governed by a BSD-style\n+// license that can be found in the LICENSE file.\n+\n+package github\n+\n+import (\n+\t\"fmt\"\n+\t\"net/url\"\n+\t\"time\"\n+)\n+\n+// RepositoryCommit represents a commit in a repo.\n+// Note that it's wrapping a Commit, so author/committer information is in two places,\n+// but contain different details about them: in RepositoryCommit \"github details\", in Commit - \"git details\".\n+type RepositoryCommit struct {\n+\tSHA       *string  `json:\"sha,omitempty\"`\n+\tCommit    *Commit  `json:\"commit,omitempty\"`\n+\tAuthor    *User    `json:\"author,omitempty\"`\n+\tCommitter *User    `json:\"committer,omitempty\"`\n+\tParents   []Commit `json:\"parents,omitempty\"`\n+\tMessage   *string  `json:\"message,omitempty\"`","path":"github/repos_commits.go","position":23,"original_position":23,"commit_id":"501b66fdfc90c9bfdec2e7bf6ecbb2aa14782d29","original_commit_id":"501b66fdfc90c9bfdec2e7bf6ecbb2aa14782d29","user":{"login":"shurcooL","id":1924134,"avatar_url":"https://avatars.githubusercontent.com/u/1924134?v=3","gravatar_id":"","url":"https://api.github.com/users/shurcooL","html_url":"https://github.com/shurcooL","followers_url":"https://api.github.com/users/shurcooL/followers","following_url":"https://api.github.com/users/shurcooL/following{/other_user}","gists_url":"https://api.github.com/users/shurcooL/gists{/gist_id}","starred_url":"https://api.github.com/users/shurcooL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shurcooL/subscriptions","organizations_url":"https://api.github.com/users/shurcooL/orgs","repos_url":"https://api.github.com/users/shurcooL/repos","events_url":"https://api.github.com/users/shurcooL/events{/privacy}","received_events_url":"https://api.github.com/users/shurcooL/received_events","type":"User","site_admin":false},"body":"I suspect `Message` field was added here erroneously. It's should only be inside `Commit`, not `RepositoryCommit`.\r\n\r\nFrom what I can tell, it's not actually ever present in the GitHub API responses. Does anyone have counter-examples? If not, I'll make a PR to remove it.","created_at":"2016-12-12T20:37:21Z","updated_at":"2016-12-12T20:37:21Z","html_url":"https://github.com/google/go-github/pull/49#discussion_r92034462","pull_request_url":"https://api.github.com/repos/google/go-github/pulls/49","_links":{"self":{"href":"https://api.github.com/repos/google/go-github/pulls/comments/92034462"},"html":{"href":"https://github.com/google/go-github/pull/49#discussion_r92034462"},"pull_request":{"href":"https://api.github.com/repos/google/go-github/pulls/49"}}},"pull_request":{"url":"https://api.github.com/repos/google/go-github/pulls/49","id":7847058,"html_url":"https://github.com/google/go-github/pull/49","diff_url":"https://github.com/google/go-github/pull/49.diff","patch_url":"https://github.com/google/go-github/pull/49.patch","issue_url":"https://api.github.com/repos/google/go-github/issues/49","number":49,"state":"closed","locked":false,"title":"Repo commits","user":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"body":"The long awaited commit with `repo/commits` API.\nThe API is different than `git/commit` in having more detailed information about the commit itself - for example lists of files, and authors etc.\n\nThe tests are a bit verbose. I've tested against the example jsons from the github api page, but that saved me from overlooking a field or two when updating the structs. \n\nI've also moved this code to the new style that we've started using in the lib recently (pointers everywhere).\nI skipped the URL fields as we did before, though not sure if maybe for the \"compare commits\" case the URL may be helpful - they're for patches etc.\n\nLooking forward to your comments guys :)\n\nImplements one of the APIs mentioned in #37 \n","created_at":"2013-08-25T23:33:12Z","updated_at":"2016-12-12T20:37:21Z","closed_at":"2013-09-04T23:32:09Z","merged_at":null,"merge_commit_sha":"845500d937a6944f23f53d99117368bac6593106","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/go-github/pulls/49/commits","review_comments_url":"https://api.github.com/repos/google/go-github/pulls/49/comments","review_comment_url":"https://api.github.com/repos/google/go-github/pulls/comments{/number}","comments_url":"https://api.github.com/repos/google/go-github/issues/49/comments","statuses_url":"https://api.github.com/repos/google/go-github/statuses/501b66fdfc90c9bfdec2e7bf6ecbb2aa14782d29","head":{"label":"ktoso:repo-commits","ref":"repo-commits","sha":"501b66fdfc90c9bfdec2e7bf6ecbb2aa14782d29","user":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"repo":{"id":10421194,"name":"go-github","full_name":"ktoso/go-github","owner":{"login":"ktoso","id":120979,"avatar_url":"https://avatars.githubusercontent.com/u/120979?v=3","gravatar_id":"","url":"https://api.github.com/users/ktoso","html_url":"https://github.com/ktoso","followers_url":"https://api.github.com/users/ktoso/followers","following_url":"https://api.github.com/users/ktoso/following{/other_user}","gists_url":"https://api.github.com/users/ktoso/gists{/gist_id}","starred_url":"https://api.github.com/users/ktoso/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ktoso/subscriptions","organizations_url":"https://api.github.com/users/ktoso/orgs","repos_url":"https://api.github.com/users/ktoso/repos","events_url":"https://api.github.com/users/ktoso/events{/privacy}","received_events_url":"https://api.github.com/users/ktoso/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ktoso/go-github","description":"Go library for accessing the GitHub API","fork":true,"url":"https://api.github.com/repos/ktoso/go-github","forks_url":"https://api.github.com/repos/ktoso/go-github/forks","keys_url":"https://api.github.com/repos/ktoso/go-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ktoso/go-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ktoso/go-github/teams","hooks_url":"https://api.github.com/repos/ktoso/go-github/hooks","issue_events_url":"https://api.github.com/repos/ktoso/go-github/issues/events{/number}","events_url":"https://api.github.com/repos/ktoso/go-github/events","assignees_url":"https://api.github.com/repos/ktoso/go-github/assignees{/user}","branches_url":"https://api.github.com/repos/ktoso/go-github/branches{/branch}","tags_url":"https://api.github.com/repos/ktoso/go-github/tags","blobs_url":"https://api.github.com/repos/ktoso/go-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ktoso/go-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ktoso/go-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/ktoso/go-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ktoso/go-github/statuses/{sha}","languages_url":"https://api.github.com/repos/ktoso/go-github/languages","stargazers_url":"https://api.github.com/repos/ktoso/go-github/stargazers","contributors_url":"https://api.github.com/repos/ktoso/go-github/contributors","subscribers_url":"https://api.github.com/repos/ktoso/go-github/subscribers","subscription_url":"https://api.github.com/repos/ktoso/go-github/subscription","commits_url":"https://api.github.com/repos/ktoso/go-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/ktoso/go-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/ktoso/go-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/ktoso/go-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/ktoso/go-github/contents/{+path}","compare_url":"https://api.github.com/repos/ktoso/go-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ktoso/go-github/merges","archive_url":"https://api.github.com/repos/ktoso/go-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ktoso/go-github/downloads","issues_url":"https://api.github.com/repos/ktoso/go-github/issues{/number}","pulls_url":"https://api.github.com/repos/ktoso/go-github/pulls{/number}","milestones_url":"https://api.github.com/repos/ktoso/go-github/milestones{/number}","notifications_url":"https://api.github.com/repos/ktoso/go-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ktoso/go-github/labels{/name}","releases_url":"https://api.github.com/repos/ktoso/go-github/releases{/id}","deployments_url":"https://api.github.com/repos/ktoso/go-github/deployments","created_at":"2013-06-01T11:15:38Z","updated_at":"2013-09-05T20:07:12Z","pushed_at":"2013-09-05T20:07:11Z","git_url":"git://github.com/ktoso/go-github.git","ssh_url":"git@github.com:ktoso/go-github.git","clone_url":"https://github.com/ktoso/go-github.git","svn_url":"https://github.com/ktoso/go-github","homepage":null,"size":212,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"1d887f291bd21bd08f4dedb0849cf4d5f9580625","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":10270722,"name":"go-github","full_name":"google/go-github","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/go-github","description":"Go library for accessing the GitHub API","fork":false,"url":"https://api.github.com/repos/google/go-github","forks_url":"https://api.github.com/repos/google/go-github/forks","keys_url":"https://api.github.com/repos/google/go-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/go-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/go-github/teams","hooks_url":"https://api.github.com/repos/google/go-github/hooks","issue_events_url":"https://api.github.com/repos/google/go-github/issues/events{/number}","events_url":"https://api.github.com/repos/google/go-github/events","assignees_url":"https://api.github.com/repos/google/go-github/assignees{/user}","branches_url":"https://api.github.com/repos/google/go-github/branches{/branch}","tags_url":"https://api.github.com/repos/google/go-github/tags","blobs_url":"https://api.github.com/repos/google/go-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/go-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/go-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/go-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/go-github/statuses/{sha}","languages_url":"https://api.github.com/repos/google/go-github/languages","stargazers_url":"https://api.github.com/repos/google/go-github/stargazers","contributors_url":"https://api.github.com/repos/google/go-github/contributors","subscribers_url":"https://api.github.com/repos/google/go-github/subscribers","subscription_url":"https://api.github.com/repos/google/go-github/subscription","commits_url":"https://api.github.com/repos/google/go-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/go-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/go-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/go-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/google/go-github/contents/{+path}","compare_url":"https://api.github.com/repos/google/go-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/go-github/merges","archive_url":"https://api.github.com/repos/google/go-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/go-github/downloads","issues_url":"https://api.github.com/repos/google/go-github/issues{/number}","pulls_url":"https://api.github.com/repos/google/go-github/pulls{/number}","milestones_url":"https://api.github.com/repos/google/go-github/milestones{/number}","notifications_url":"https://api.github.com/repos/google/go-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/go-github/labels{/name}","releases_url":"https://api.github.com/repos/google/go-github/releases{/id}","deployments_url":"https://api.github.com/repos/google/go-github/deployments","created_at":"2013-05-24T16:42:58Z","updated_at":"2016-12-12T20:33:30Z","pushed_at":"2016-12-12T19:51:23Z","git_url":"git://github.com/google/go-github.git","ssh_url":"git@github.com:google/go-github.git","clone_url":"https://github.com/google/go-github.git","svn_url":"https://github.com/google/go-github","homepage":"http://godoc.org/github.com/google/go-github/github","size":1860,"stargazers_count":2100,"watchers_count":2100,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":471,"mirror_url":null,"open_issues_count":24,"forks":471,"open_issues":24,"watchers":2100,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/go-github/pulls/49"},"html":{"href":"https://github.com/google/go-github/pull/49"},"issue":{"href":"https://api.github.com/repos/google/go-github/issues/49"},"comments":{"href":"https://api.github.com/repos/google/go-github/issues/49/comments"},"review_comments":{"href":"https://api.github.com/repos/google/go-github/pulls/49/comments"},"review_comment":{"href":"https://api.github.com/repos/google/go-github/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/google/go-github/pulls/49/commits"},"statuses":{"href":"https://api.github.com/repos/google/go-github/statuses/501b66fdfc90c9bfdec2e7bf6ecbb2aa14782d29"}}}}
{"actor":{"display_login":"shurcooL"}}