{"action":"created","comment":{"url":"https://api.github.com/repos/google/go-github/pulls/comments/86078419","pull_request_review_id":6754023,"id":86078419,"diff_hunk":"@@ -190,6 +190,38 @@ type IssueCommentEvent struct {\n \tSender  *User       `json:\"sender,omitempty\"`\n }\n \n+// Triggered when a repository's label is created, edited, or deleted.\n+// The Webhook event name is \"label\"\n+//\n+// GitHub docs: https://developer.github.com/v3/activity/events/types/#labelevent\n+type LabelEvent struct {\n+\t//Action is the action that was performed. Possible values are:\n+\t// \"created\", \"edited\", \"deleted\"\n+\tAction *string `json:\"action,omitempty\"`\n+\tLabel  *Label  `json:\"label,omitempty\"`\n+\n+\t// The following fields are only populated by Webhook events.","path":"github/event_types.go","position":14,"original_position":14,"commit_id":"b9a41c1e4120598ab372ae58c5632c139e5c9572","original_commit_id":"b9a41c1e4120598ab372ae58c5632c139e5c9572","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":"Isn't this entire struct only for Webhook events, or are the other fields above used elsewhere somehow?","created_at":"2016-11-02T06:11:47Z","updated_at":"2016-11-02T06:12:27Z","html_url":"https://github.com/google/go-github/pull/463#discussion_r86078419","pull_request_url":"https://api.github.com/repos/google/go-github/pulls/463","_links":{"self":{"href":"https://api.github.com/repos/google/go-github/pulls/comments/86078419"},"html":{"href":"https://github.com/google/go-github/pull/463#discussion_r86078419"},"pull_request":{"href":"https://api.github.com/repos/google/go-github/pulls/463"}}},"pull_request":{"url":"https://api.github.com/repos/google/go-github/pulls/463","id":91909864,"html_url":"https://github.com/google/go-github/pull/463","diff_url":"https://github.com/google/go-github/pull/463.diff","patch_url":"https://github.com/google/go-github/pull/463.patch","issue_url":"https://api.github.com/repos/google/go-github/issues/463","number":463,"state":"open","locked":false,"title":"Add new webhooks for Labels and Milestones","user":{"login":"lucasalcantara","id":13009018,"avatar_url":"https://avatars.githubusercontent.com/u/13009018?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasalcantara","html_url":"https://github.com/lucasalcantara","followers_url":"https://api.github.com/users/lucasalcantara/followers","following_url":"https://api.github.com/users/lucasalcantara/following{/other_user}","gists_url":"https://api.github.com/users/lucasalcantara/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasalcantara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasalcantara/subscriptions","organizations_url":"https://api.github.com/users/lucasalcantara/orgs","repos_url":"https://api.github.com/users/lucasalcantara/repos","events_url":"https://api.github.com/users/lucasalcantara/events{/privacy}","received_events_url":"https://api.github.com/users/lucasalcantara/received_events","type":"User","site_admin":false},"body":"Fixed #460 \r\nDocumented:\r\nhttps://developer.github.com/v3/activity/events/types/#labelevent\r\nhttps://developer.github.com/v3/activity/events/types/#milestoneevent\r\n\r\n/cc @willnorris @gmlewis for review","created_at":"2016-11-02T05:05:42Z","updated_at":"2016-11-02T06:12:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c98b2b2c7d6b592d7421b5206a5b5230539854fe","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/google/go-github/pulls/463/commits","review_comments_url":"https://api.github.com/repos/google/go-github/pulls/463/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/463/comments","statuses_url":"https://api.github.com/repos/google/go-github/statuses/b9a41c1e4120598ab372ae58c5632c139e5c9572","head":{"label":"lucasalcantara:issue_460","ref":"issue_460","sha":"b9a41c1e4120598ab372ae58c5632c139e5c9572","user":{"login":"lucasalcantara","id":13009018,"avatar_url":"https://avatars.githubusercontent.com/u/13009018?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasalcantara","html_url":"https://github.com/lucasalcantara","followers_url":"https://api.github.com/users/lucasalcantara/followers","following_url":"https://api.github.com/users/lucasalcantara/following{/other_user}","gists_url":"https://api.github.com/users/lucasalcantara/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasalcantara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasalcantara/subscriptions","organizations_url":"https://api.github.com/users/lucasalcantara/orgs","repos_url":"https://api.github.com/users/lucasalcantara/repos","events_url":"https://api.github.com/users/lucasalcantara/events{/privacy}","received_events_url":"https://api.github.com/users/lucasalcantara/received_events","type":"User","site_admin":false},"repo":{"id":72592096,"name":"go-github","full_name":"lucasalcantara/go-github","owner":{"login":"lucasalcantara","id":13009018,"avatar_url":"https://avatars.githubusercontent.com/u/13009018?v=3","gravatar_id":"","url":"https://api.github.com/users/lucasalcantara","html_url":"https://github.com/lucasalcantara","followers_url":"https://api.github.com/users/lucasalcantara/followers","following_url":"https://api.github.com/users/lucasalcantara/following{/other_user}","gists_url":"https://api.github.com/users/lucasalcantara/gists{/gist_id}","starred_url":"https://api.github.com/users/lucasalcantara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucasalcantara/subscriptions","organizations_url":"https://api.github.com/users/lucasalcantara/orgs","repos_url":"https://api.github.com/users/lucasalcantara/repos","events_url":"https://api.github.com/users/lucasalcantara/events{/privacy}","received_events_url":"https://api.github.com/users/lucasalcantara/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lucasalcantara/go-github","description":"Go library for accessing the GitHub API","fork":true,"url":"https://api.github.com/repos/lucasalcantara/go-github","forks_url":"https://api.github.com/repos/lucasalcantara/go-github/forks","keys_url":"https://api.github.com/repos/lucasalcantara/go-github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lucasalcantara/go-github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lucasalcantara/go-github/teams","hooks_url":"https://api.github.com/repos/lucasalcantara/go-github/hooks","issue_events_url":"https://api.github.com/repos/lucasalcantara/go-github/issues/events{/number}","events_url":"https://api.github.com/repos/lucasalcantara/go-github/events","assignees_url":"https://api.github.com/repos/lucasalcantara/go-github/assignees{/user}","branches_url":"https://api.github.com/repos/lucasalcantara/go-github/branches{/branch}","tags_url":"https://api.github.com/repos/lucasalcantara/go-github/tags","blobs_url":"https://api.github.com/repos/lucasalcantara/go-github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lucasalcantara/go-github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lucasalcantara/go-github/git/refs{/sha}","trees_url":"https://api.github.com/repos/lucasalcantara/go-github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lucasalcantara/go-github/statuses/{sha}","languages_url":"https://api.github.com/repos/lucasalcantara/go-github/languages","stargazers_url":"https://api.github.com/repos/lucasalcantara/go-github/stargazers","contributors_url":"https://api.github.com/repos/lucasalcantara/go-github/contributors","subscribers_url":"https://api.github.com/repos/lucasalcantara/go-github/subscribers","subscription_url":"https://api.github.com/repos/lucasalcantara/go-github/subscription","commits_url":"https://api.github.com/repos/lucasalcantara/go-github/commits{/sha}","git_commits_url":"https://api.github.com/repos/lucasalcantara/go-github/git/commits{/sha}","comments_url":"https://api.github.com/repos/lucasalcantara/go-github/comments{/number}","issue_comment_url":"https://api.github.com/repos/lucasalcantara/go-github/issues/comments{/number}","contents_url":"https://api.github.com/repos/lucasalcantara/go-github/contents/{+path}","compare_url":"https://api.github.com/repos/lucasalcantara/go-github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lucasalcantara/go-github/merges","archive_url":"https://api.github.com/repos/lucasalcantara/go-github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lucasalcantara/go-github/downloads","issues_url":"https://api.github.com/repos/lucasalcantara/go-github/issues{/number}","pulls_url":"https://api.github.com/repos/lucasalcantara/go-github/pulls{/number}","milestones_url":"https://api.github.com/repos/lucasalcantara/go-github/milestones{/number}","notifications_url":"https://api.github.com/repos/lucasalcantara/go-github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lucasalcantara/go-github/labels{/name}","releases_url":"https://api.github.com/repos/lucasalcantara/go-github/releases{/id}","deployments_url":"https://api.github.com/repos/lucasalcantara/go-github/deployments","created_at":"2016-11-02T01:28:43Z","updated_at":"2016-11-02T01:28:44Z","pushed_at":"2016-11-02T05:00:34Z","git_url":"git://github.com/lucasalcantara/go-github.git","ssh_url":"git@github.com:lucasalcantara/go-github.git","clone_url":"https://github.com/lucasalcantara/go-github.git","svn_url":"https://github.com/lucasalcantara/go-github","homepage":"http://godoc.org/github.com/google/go-github/github","size":1103,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"f7fcf6f52ff94adf1cc0ded41e7768d2ad729972","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-11-02T03:47:50Z","pushed_at":"2016-11-02T05:05:42Z","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":1716,"stargazers_count":2015,"watchers_count":2015,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":438,"mirror_url":null,"open_issues_count":35,"forks":438,"open_issues":35,"watchers":2015,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/go-github/pulls/463"},"html":{"href":"https://github.com/google/go-github/pull/463"},"issue":{"href":"https://api.github.com/repos/google/go-github/issues/463"},"comments":{"href":"https://api.github.com/repos/google/go-github/issues/463/comments"},"review_comments":{"href":"https://api.github.com/repos/google/go-github/pulls/463/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/463/commits"},"statuses":{"href":"https://api.github.com/repos/google/go-github/statuses/b9a41c1e4120598ab372ae58c5632c139e5c9572"}}}}
{"actor":{"display_login":"shurcooL"}}