{"action":"created","comment":{"url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments/152858975","pull_request_review_id":78785757,"id":152858975,"diff_hunk":"@@ -33,12 +32,12 @@ defmodule CodeCorps.GitHub.Event.PullRequest do\n     end\n   end\n \n-  @spec validate_payload(map) :: {:ok, :valid}\n-                               | {:error, :unexpected_payload}\n+  @spec validate_payload(map) :: {:ok, :valid} | {:error, :unexpected_payload}","path":"lib/code_corps/github/event/pull_request/pull_request.ex","position":25,"original_position":25,"commit_id":"69af5fe3020d63c436b4ecdb738d28f641dbcc67","original_commit_id":"69af5fe3020d63c436b4ecdb738d28f641dbcc67","user":{"login":"joshsmith","id":321667,"avatar_url":"https://avatars3.githubusercontent.com/u/321667?v=4","gravatar_id":"","url":"https://api.github.com/users/joshsmith","html_url":"https://github.com/joshsmith","followers_url":"https://api.github.com/users/joshsmith/followers","following_url":"https://api.github.com/users/joshsmith/following{/other_user}","gists_url":"https://api.github.com/users/joshsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/joshsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshsmith/subscriptions","organizations_url":"https://api.github.com/users/joshsmith/orgs","repos_url":"https://api.github.com/users/joshsmith/repos","events_url":"https://api.github.com/users/joshsmith/events{/privacy}","received_events_url":"https://api.github.com/users/joshsmith/received_events","type":"User","site_admin":false},"body":"I think the old spec is maybe how the formatter is doing it now?","created_at":"2017-11-23T18:39:04Z","updated_at":"2017-11-23T18:39:25Z","html_url":"https://github.com/code-corps/code-corps-api/pull/1237#discussion_r152858975","pull_request_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/1237","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments/152858975"},"html":{"href":"https://github.com/code-corps/code-corps-api/pull/1237#discussion_r152858975"},"pull_request":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/1237"}}},"pull_request":{"url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/1237","id":154281415,"html_url":"https://github.com/code-corps/code-corps-api/pull/1237","diff_url":"https://github.com/code-corps/code-corps-api/pull/1237.diff","patch_url":"https://github.com/code-corps/code-corps-api/pull/1237.patch","issue_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/1237","number":1237,"state":"open","locked":false,"title":"Dialyzer Fixes","user":{"login":"asummers","id":831648,"avatar_url":"https://avatars1.githubusercontent.com/u/831648?v=4","gravatar_id":"","url":"https://api.github.com/users/asummers","html_url":"https://github.com/asummers","followers_url":"https://api.github.com/users/asummers/followers","following_url":"https://api.github.com/users/asummers/following{/other_user}","gists_url":"https://api.github.com/users/asummers/gists{/gist_id}","starred_url":"https://api.github.com/users/asummers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asummers/subscriptions","organizations_url":"https://api.github.com/users/asummers/orgs","repos_url":"https://api.github.com/users/asummers/repos","events_url":"https://api.github.com/users/asummers/events{/privacy}","received_events_url":"https://api.github.com/users/asummers/received_events","type":"User","site_admin":false},"body":"Resolved about 10 dialyzer errors, and converted case with true/false to if/else. \r\n\r\nDiscussion: the event handlers seem to all be doing the same high level logic. Perhaps it might be better to expose a `validator/0` that returns a validator module, and move the with/else logic to the caller. Haven't gone through all of them yet, but I could see that being advantageous.","created_at":"2017-11-23T00:32:19Z","updated_at":"2017-11-23T18:39:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"828bd5aad1c5147f58b86d02c76e20b2a758dfb7","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/1237/commits","review_comments_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/1237/comments","review_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments{/number}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/1237/comments","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/69af5fe3020d63c436b4ecdb738d28f641dbcc67","head":{"label":"code-corps:fix-dialyzer-1","ref":"fix-dialyzer-1","sha":"69af5fe3020d63c436b4ecdb738d28f641dbcc67","user":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars0.githubusercontent.com/u/12991115?v=4","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"repo":{"id":63497734,"name":"code-corps-api","full_name":"code-corps/code-corps-api","owner":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars0.githubusercontent.com/u/12991115?v=4","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-corps/code-corps-api","description":"Elixir/Phoenix API for Code Corps.","fork":false,"url":"https://api.github.com/repos/code-corps/code-corps-api","forks_url":"https://api.github.com/repos/code-corps/code-corps-api/forks","keys_url":"https://api.github.com/repos/code-corps/code-corps-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-corps/code-corps-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-corps/code-corps-api/teams","hooks_url":"https://api.github.com/repos/code-corps/code-corps-api/hooks","issue_events_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/events{/number}","events_url":"https://api.github.com/repos/code-corps/code-corps-api/events","assignees_url":"https://api.github.com/repos/code-corps/code-corps-api/assignees{/user}","branches_url":"https://api.github.com/repos/code-corps/code-corps-api/branches{/branch}","tags_url":"https://api.github.com/repos/code-corps/code-corps-api/tags","blobs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-corps/code-corps-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-corps/code-corps-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/{sha}","languages_url":"https://api.github.com/repos/code-corps/code-corps-api/languages","stargazers_url":"https://api.github.com/repos/code-corps/code-corps-api/stargazers","contributors_url":"https://api.github.com/repos/code-corps/code-corps-api/contributors","subscribers_url":"https://api.github.com/repos/code-corps/code-corps-api/subscribers","subscription_url":"https://api.github.com/repos/code-corps/code-corps-api/subscription","commits_url":"https://api.github.com/repos/code-corps/code-corps-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-corps/code-corps-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-corps/code-corps-api/contents/{+path}","compare_url":"https://api.github.com/repos/code-corps/code-corps-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-corps/code-corps-api/merges","archive_url":"https://api.github.com/repos/code-corps/code-corps-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-corps/code-corps-api/downloads","issues_url":"https://api.github.com/repos/code-corps/code-corps-api/issues{/number}","pulls_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls{/number}","milestones_url":"https://api.github.com/repos/code-corps/code-corps-api/milestones{/number}","notifications_url":"https://api.github.com/repos/code-corps/code-corps-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-corps/code-corps-api/labels{/name}","releases_url":"https://api.github.com/repos/code-corps/code-corps-api/releases{/id}","deployments_url":"https://api.github.com/repos/code-corps/code-corps-api/deployments","created_at":"2016-07-16T18:49:25Z","updated_at":"2017-11-20T09:52:10Z","pushed_at":"2017-11-23T08:43:13Z","git_url":"git://github.com/code-corps/code-corps-api.git","ssh_url":"git@github.com:code-corps/code-corps-api.git","clone_url":"https://github.com/code-corps/code-corps-api.git","svn_url":"https://github.com/code-corps/code-corps-api","homepage":"https://www.codecorps.org","size":2749,"stargazers_count":182,"watchers_count":182,"language":"Elixir","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"archived":false,"open_issues_count":133,"forks":78,"open_issues":133,"watchers":182,"default_branch":"develop"}},"base":{"label":"code-corps:develop","ref":"develop","sha":"d721dc746ae9dd635c2cccf46a8d666d50dc31fe","user":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars0.githubusercontent.com/u/12991115?v=4","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"repo":{"id":63497734,"name":"code-corps-api","full_name":"code-corps/code-corps-api","owner":{"login":"code-corps","id":12991115,"avatar_url":"https://avatars0.githubusercontent.com/u/12991115?v=4","gravatar_id":"","url":"https://api.github.com/users/code-corps","html_url":"https://github.com/code-corps","followers_url":"https://api.github.com/users/code-corps/followers","following_url":"https://api.github.com/users/code-corps/following{/other_user}","gists_url":"https://api.github.com/users/code-corps/gists{/gist_id}","starred_url":"https://api.github.com/users/code-corps/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/code-corps/subscriptions","organizations_url":"https://api.github.com/users/code-corps/orgs","repos_url":"https://api.github.com/users/code-corps/repos","events_url":"https://api.github.com/users/code-corps/events{/privacy}","received_events_url":"https://api.github.com/users/code-corps/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/code-corps/code-corps-api","description":"Elixir/Phoenix API for Code Corps.","fork":false,"url":"https://api.github.com/repos/code-corps/code-corps-api","forks_url":"https://api.github.com/repos/code-corps/code-corps-api/forks","keys_url":"https://api.github.com/repos/code-corps/code-corps-api/keys{/key_id}","collaborators_url":"https://api.github.com/repos/code-corps/code-corps-api/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/code-corps/code-corps-api/teams","hooks_url":"https://api.github.com/repos/code-corps/code-corps-api/hooks","issue_events_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/events{/number}","events_url":"https://api.github.com/repos/code-corps/code-corps-api/events","assignees_url":"https://api.github.com/repos/code-corps/code-corps-api/assignees{/user}","branches_url":"https://api.github.com/repos/code-corps/code-corps-api/branches{/branch}","tags_url":"https://api.github.com/repos/code-corps/code-corps-api/tags","blobs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/code-corps/code-corps-api/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/code-corps/code-corps-api/git/refs{/sha}","trees_url":"https://api.github.com/repos/code-corps/code-corps-api/git/trees{/sha}","statuses_url":"https://api.github.com/repos/code-corps/code-corps-api/statuses/{sha}","languages_url":"https://api.github.com/repos/code-corps/code-corps-api/languages","stargazers_url":"https://api.github.com/repos/code-corps/code-corps-api/stargazers","contributors_url":"https://api.github.com/repos/code-corps/code-corps-api/contributors","subscribers_url":"https://api.github.com/repos/code-corps/code-corps-api/subscribers","subscription_url":"https://api.github.com/repos/code-corps/code-corps-api/subscription","commits_url":"https://api.github.com/repos/code-corps/code-corps-api/commits{/sha}","git_commits_url":"https://api.github.com/repos/code-corps/code-corps-api/git/commits{/sha}","comments_url":"https://api.github.com/repos/code-corps/code-corps-api/comments{/number}","issue_comment_url":"https://api.github.com/repos/code-corps/code-corps-api/issues/comments{/number}","contents_url":"https://api.github.com/repos/code-corps/code-corps-api/contents/{+path}","compare_url":"https://api.github.com/repos/code-corps/code-corps-api/compare/{base}...{head}","merges_url":"https://api.github.com/repos/code-corps/code-corps-api/merges","archive_url":"https://api.github.com/repos/code-corps/code-corps-api/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/code-corps/code-corps-api/downloads","issues_url":"https://api.github.com/repos/code-corps/code-corps-api/issues{/number}","pulls_url":"https://api.github.com/repos/code-corps/code-corps-api/pulls{/number}","milestones_url":"https://api.github.com/repos/code-corps/code-corps-api/milestones{/number}","notifications_url":"https://api.github.com/repos/code-corps/code-corps-api/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/code-corps/code-corps-api/labels{/name}","releases_url":"https://api.github.com/repos/code-corps/code-corps-api/releases{/id}","deployments_url":"https://api.github.com/repos/code-corps/code-corps-api/deployments","created_at":"2016-07-16T18:49:25Z","updated_at":"2017-11-20T09:52:10Z","pushed_at":"2017-11-23T08:43:13Z","git_url":"git://github.com/code-corps/code-corps-api.git","ssh_url":"git@github.com:code-corps/code-corps-api.git","clone_url":"https://github.com/code-corps/code-corps-api.git","svn_url":"https://github.com/code-corps/code-corps-api","homepage":"https://www.codecorps.org","size":2749,"stargazers_count":182,"watchers_count":182,"language":"Elixir","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":78,"mirror_url":null,"archived":false,"open_issues_count":133,"forks":78,"open_issues":133,"watchers":182,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/1237"},"html":{"href":"https://github.com/code-corps/code-corps-api/pull/1237"},"issue":{"href":"https://api.github.com/repos/code-corps/code-corps-api/issues/1237"},"comments":{"href":"https://api.github.com/repos/code-corps/code-corps-api/issues/1237/comments"},"review_comments":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/1237/comments"},"review_comment":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/code-corps/code-corps-api/pulls/1237/commits"},"statuses":{"href":"https://api.github.com/repos/code-corps/code-corps-api/statuses/69af5fe3020d63c436b4ecdb738d28f641dbcc67"}},"author_association":"NONE"}}
{"actor":{"display_login":"joshsmith"}}