GitHub PullRequestEvent at 2014-08-15 06:03:17
Repository: github
Actor: nataren
Payload: {"action":"closed","number":73,"pull_request":{"url":"https://api.github.com/repos/jwiegley/github/pulls/73","id":19829114,"html_url":"https://github.com/jwiegley/github/pull/73","diff_url":"https://github.com/jwiegley/github/pull/73.diff","patch_url":"https://github.com/jwiegley/github/pull/73.patch","issue_url":"https://api.github.com/repos/jwiegley/github/issues/73","number":73,"state":"closed","locked":false,"title":"Use variant type to represent webhook events.","user":{"login":"nataren","id":40917,"avatar_url":"https://avatars.githubusercontent.com/u/40917?v=2","gravatar_id":"e5363f7320b1c3f8cb7cb770f9658c40","url":"https://api.github.com/users/nataren","html_url":"https://github.com/nataren","followers_url":"https://api.github.com/users/nataren/followers","following_url":"https://api.github.com/users/nataren/following{/other_user}","gists_url":"https://api.github.com/users/nataren/gists{/gist_id}","starred_url":"https://api.github.com/users/nataren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataren/subscriptions","organizations_url":"https://api.github.com/users/nataren/orgs","repos_url":"https://api.github.com/users/nataren/repos","events_url":"https://api.github.com/users/nataren/events{/privacy}","received_events_url":"https://api.github.com/users/nataren/received_events","type":"User","site_admin":false},"body":"I made the mistake of using String to represent the webhook events when a nice variant type is the perfect match. I am fixing my bad decision. It makes it more discoverable imho.\r\n\r\nThe docs about the different webhook events is available here: https://developer.github.com/webhooks/#events\r\n\r\n@maxpow4h what do you think?","created_at":"2014-08-15T04:26:05Z","updated_at":"2014-08-15T06:03:16Z","closed_at":"2014-08-15T06:03:16Z","merged_at":"2014-08-15T06:03:16Z","merge_commit_sha":"6206fbc35f23b8b0ddb77832e82f3ea4d140c4d0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jwiegley/github/pulls/73/commits","review_comments_url":"https://api.github.com/repos/jwiegley/github/pulls/73/comments","review_comment_url":"https://api.github.com/repos/jwiegley/github/pulls/comments/{number}","comments_url":"https://api.github.com/repos/jwiegley/github/issues/73/comments","statuses_url":"https://api.github.com/repos/jwiegley/github/statuses/eb1b61ce1722488d3c451744b9332d4543455d54","head":{"label":"nataren:webhook_event_as_variant_type","ref":"webhook_event_as_variant_type","sha":"eb1b61ce1722488d3c451744b9332d4543455d54","user":{"login":"nataren","id":40917,"avatar_url":"https://avatars.githubusercontent.com/u/40917?v=2","gravatar_id":"e5363f7320b1c3f8cb7cb770f9658c40","url":"https://api.github.com/users/nataren","html_url":"https://github.com/nataren","followers_url":"https://api.github.com/users/nataren/followers","following_url":"https://api.github.com/users/nataren/following{/other_user}","gists_url":"https://api.github.com/users/nataren/gists{/gist_id}","starred_url":"https://api.github.com/users/nataren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataren/subscriptions","organizations_url":"https://api.github.com/users/nataren/orgs","repos_url":"https://api.github.com/users/nataren/repos","events_url":"https://api.github.com/users/nataren/events{/privacy}","received_events_url":"https://api.github.com/users/nataren/received_events","type":"User","site_admin":false},"repo":{"id":15196985,"name":"github","full_name":"nataren/github","owner":{"login":"nataren","id":40917,"avatar_url":"https://avatars.githubusercontent.com/u/40917?v=2","gravatar_id":"e5363f7320b1c3f8cb7cb770f9658c40","url":"https://api.github.com/users/nataren","html_url":"https://github.com/nataren","followers_url":"https://api.github.com/users/nataren/followers","following_url":"https://api.github.com/users/nataren/following{/other_user}","gists_url":"https://api.github.com/users/nataren/gists{/gist_id}","starred_url":"https://api.github.com/users/nataren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataren/subscriptions","organizations_url":"https://api.github.com/users/nataren/orgs","repos_url":"https://api.github.com/users/nataren/repos","events_url":"https://api.github.com/users/nataren/events{/privacy}","received_events_url":"https://api.github.com/users/nataren/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/nataren/github","description":"The github API for Haskell","fork":true,"url":"https://api.github.com/repos/nataren/github","forks_url":"https://api.github.com/repos/nataren/github/forks","keys_url":"https://api.github.com/repos/nataren/github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nataren/github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nataren/github/teams","hooks_url":"https://api.github.com/repos/nataren/github/hooks","issue_events_url":"https://api.github.com/repos/nataren/github/issues/events{/number}","events_url":"https://api.github.com/repos/nataren/github/events","assignees_url":"https://api.github.com/repos/nataren/github/assignees{/user}","branches_url":"https://api.github.com/repos/nataren/github/branches{/branch}","tags_url":"https://api.github.com/repos/nataren/github/tags","blobs_url":"https://api.github.com/repos/nataren/github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nataren/github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nataren/github/git/refs{/sha}","trees_url":"https://api.github.com/repos/nataren/github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nataren/github/statuses/{sha}","languages_url":"https://api.github.com/repos/nataren/github/languages","stargazers_url":"https://api.github.com/repos/nataren/github/stargazers","contributors_url":"https://api.github.com/repos/nataren/github/contributors","subscribers_url":"https://api.github.com/repos/nataren/github/subscribers","subscription_url":"https://api.github.com/repos/nataren/github/subscription","commits_url":"https://api.github.com/repos/nataren/github/commits{/sha}","git_commits_url":"https://api.github.com/repos/nataren/github/git/commits{/sha}","comments_url":"https://api.github.com/repos/nataren/github/comments{/number}","issue_comment_url":"https://api.github.com/repos/nataren/github/issues/comments/{number}","contents_url":"https://api.github.com/repos/nataren/github/contents/{+path}","compare_url":"https://api.github.com/repos/nataren/github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nataren/github/merges","archive_url":"https://api.github.com/repos/nataren/github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nataren/github/downloads","issues_url":"https://api.github.com/repos/nataren/github/issues{/number}","pulls_url":"https://api.github.com/repos/nataren/github/pulls{/number}","milestones_url":"https://api.github.com/repos/nataren/github/milestones{/number}","notifications_url":"https://api.github.com/repos/nataren/github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nataren/github/labels{/name}","releases_url":"https://api.github.com/repos/nataren/github/releases{/id}","created_at":"2013-12-15T03:10:54Z","updated_at":"2014-06-28T06:47:14Z","pushed_at":"2014-08-15T04:20:45Z","git_url":"git://github.com/nataren/github.git","ssh_url":"git@github.com:nataren/github.git","clone_url":"https://github.com/nataren/github.git","svn_url":"https://github.com/nataren/github","homepage":"","size":690,"stargazers_count":0,"watchers_count":0,"language":"Haskell","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jwiegley:master","ref":"master","sha":"b402a3f26ff8cf662d64b330993e7e9aa1452199","user":{"login":"jwiegley","id":8460,"avatar_url":"https://avatars.githubusercontent.com/u/8460?v=2","gravatar_id":"910fdec093deffebb92d7db019b5996a","url":"https://api.github.com/users/jwiegley","html_url":"https://github.com/jwiegley","followers_url":"https://api.github.com/users/jwiegley/followers","following_url":"https://api.github.com/users/jwiegley/following{/other_user}","gists_url":"https://api.github.com/users/jwiegley/gists{/gist_id}","starred_url":"https://api.github.com/users/jwiegley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwiegley/subscriptions","organizations_url":"https://api.github.com/users/jwiegley/orgs","repos_url":"https://api.github.com/users/jwiegley/repos","events_url":"https://api.github.com/users/jwiegley/events{/privacy}","received_events_url":"https://api.github.com/users/jwiegley/received_events","type":"User","site_admin":false},"repo":{"id":2677437,"name":"github","full_name":"jwiegley/github","owner":{"login":"jwiegley","id":8460,"avatar_url":"https://avatars.githubusercontent.com/u/8460?v=2","gravatar_id":"910fdec093deffebb92d7db019b5996a","url":"https://api.github.com/users/jwiegley","html_url":"https://github.com/jwiegley","followers_url":"https://api.github.com/users/jwiegley/followers","following_url":"https://api.github.com/users/jwiegley/following{/other_user}","gists_url":"https://api.github.com/users/jwiegley/gists{/gist_id}","starred_url":"https://api.github.com/users/jwiegley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jwiegley/subscriptions","organizations_url":"https://api.github.com/users/jwiegley/orgs","repos_url":"https://api.github.com/users/jwiegley/repos","events_url":"https://api.github.com/users/jwiegley/events{/privacy}","received_events_url":"https://api.github.com/users/jwiegley/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jwiegley/github","description":"The github API for Haskell","fork":false,"url":"https://api.github.com/repos/jwiegley/github","forks_url":"https://api.github.com/repos/jwiegley/github/forks","keys_url":"https://api.github.com/repos/jwiegley/github/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jwiegley/github/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jwiegley/github/teams","hooks_url":"https://api.github.com/repos/jwiegley/github/hooks","issue_events_url":"https://api.github.com/repos/jwiegley/github/issues/events{/number}","events_url":"https://api.github.com/repos/jwiegley/github/events","assignees_url":"https://api.github.com/repos/jwiegley/github/assignees{/user}","branches_url":"https://api.github.com/repos/jwiegley/github/branches{/branch}","tags_url":"https://api.github.com/repos/jwiegley/github/tags","blobs_url":"https://api.github.com/repos/jwiegley/github/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jwiegley/github/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jwiegley/github/git/refs{/sha}","trees_url":"https://api.github.com/repos/jwiegley/github/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jwiegley/github/statuses/{sha}","languages_url":"https://api.github.com/repos/jwiegley/github/languages","stargazers_url":"https://api.github.com/repos/jwiegley/github/stargazers","contributors_url":"https://api.github.com/repos/jwiegley/github/contributors","subscribers_url":"https://api.github.com/repos/jwiegley/github/subscribers","subscription_url":"https://api.github.com/repos/jwiegley/github/subscription","commits_url":"https://api.github.com/repos/jwiegley/github/commits{/sha}","git_commits_url":"https://api.github.com/repos/jwiegley/github/git/commits{/sha}","comments_url":"https://api.github.com/repos/jwiegley/github/comments{/number}","issue_comment_url":"https://api.github.com/repos/jwiegley/github/issues/comments/{number}","contents_url":"https://api.github.com/repos/jwiegley/github/contents/{+path}","compare_url":"https://api.github.com/repos/jwiegley/github/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jwiegley/github/merges","archive_url":"https://api.github.com/repos/jwiegley/github/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jwiegley/github/downloads","issues_url":"https://api.github.com/repos/jwiegley/github/issues{/number}","pulls_url":"https://api.github.com/repos/jwiegley/github/pulls{/number}","milestones_url":"https://api.github.com/repos/jwiegley/github/milestones{/number}","notifications_url":"https://api.github.com/repos/jwiegley/github/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jwiegley/github/labels{/name}","releases_url":"https://api.github.com/repos/jwiegley/github/releases{/id}","created_at":"2011-10-30T22:38:34Z","updated_at":"2014-08-03T23:42:42Z","pushed_at":"2014-08-15T06:03:17Z","git_url":"git://github.com/jwiegley/github.git","ssh_url":"git@github.com:jwiegley/github.git","clone_url":"https://github.com/jwiegley/github.git","svn_url":"https://github.com/jwiegley/github","homepage":"","size":913,"stargazers_count":81,"watchers_count":81,"language":"Haskell","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":34,"mirror_url":null,"open_issues_count":7,"forks":34,"open_issues":7,"watchers":81,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jwiegley/github/pulls/73"},"html":{"href":"https://github.com/jwiegley/github/pull/73"},"issue":{"href":"https://api.github.com/repos/jwiegley/github/issues/73"},"comments":{"href":"https://api.github.com/repos/jwiegley/github/issues/73/comments"},"review_comments":{"href":"https://api.github.com/repos/jwiegley/github/pulls/73/comments"},"review_comment":{"href":"https://api.github.com/repos/jwiegley/github/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/jwiegley/github/pulls/73/commits"},"statuses":{"href":"https://api.github.com/repos/jwiegley/github/statuses/eb1b61ce1722488d3c451744b9332d4543455d54"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"nataren","id":40917,"avatar_url":"https://avatars.githubusercontent.com/u/40917?v=2","gravatar_id":"e5363f7320b1c3f8cb7cb770f9658c40","url":"https://api.github.com/users/nataren","html_url":"https://github.com/nataren","followers_url":"https://api.github.com/users/nataren/followers","following_url":"https://api.github.com/users/nataren/following{/other_user}","gists_url":"https://api.github.com/users/nataren/gists{/gist_id}","starred_url":"https://api.github.com/users/nataren/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nataren/subscriptions","organizations_url":"https://api.github.com/users/nataren/orgs","repos_url":"https://api.github.com/users/nataren/repos","events_url":"https://api.github.com/users/nataren/events{/privacy}","received_events_url":"https://api.github.com/users/nataren/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":1,"additions":77,"deletions":9,"changed_files":5}}