{"action":"opened","number":5,"pull_request":{"url":"https://api.github.com/repos/arthurnn/policial.io/pulls/5","id":32332529,"html_url":"https://github.com/arthurnn/policial.io/pull/5","diff_url":"https://github.com/arthurnn/policial.io/pull/5.diff","patch_url":"https://github.com/arthurnn/policial.io/pull/5.patch","issue_url":"https://api.github.com/repos/arthurnn/policial.io/issues/5","number":5,"state":"open","locked":false,"title":"Only investigate suspicious events","user":{"login":"volmer","id":301187,"avatar_url":"https://avatars.githubusercontent.com/u/301187?v=3","gravatar_id":"","url":"https://api.github.com/users/volmer","html_url":"https://github.com/volmer","followers_url":"https://api.github.com/users/volmer/followers","following_url":"https://api.github.com/users/volmer/following{/other_user}","gists_url":"https://api.github.com/users/volmer/gists{/gist_id}","starred_url":"https://api.github.com/users/volmer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/volmer/subscriptions","organizations_url":"https://api.github.com/users/volmer/orgs","repos_url":"https://api.github.com/users/volmer/repos","events_url":"https://api.github.com/users/volmer/events{/privacy}","received_events_url":"https://api.github.com/users/volmer/received_events","type":"User","site_admin":false},"body":"In #3 I forgot to add the `.should_investigate?` guard clause. It makes sure that we only create builds and queue investigations for `open` and `synchronize` events.","created_at":"2015-03-31T15:16:30Z","updated_at":"2015-03-31T15:16:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/arthurnn/policial.io/pulls/5/commits","review_comments_url":"https://api.github.com/repos/arthurnn/policial.io/pulls/5/comments","review_comment_url":"https://api.github.com/repos/arthurnn/policial.io/pulls/comments{/number}","comments_url":"https://api.github.com/repos/arthurnn/policial.io/issues/5/comments","statuses_url":"https://api.github.com/repos/arthurnn/policial.io/statuses/ad8b31edf0fd7407c2ccc8d6e2f774190b62ed19","head":{"label":"arthurnn:should-investigate","ref":"should-investigate","sha":"ad8b31edf0fd7407c2ccc8d6e2f774190b62ed19","user":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":false},"repo":{"id":32352455,"name":"policial.io","full_name":"arthurnn/policial.io","owner":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arthurnn/policial.io","description":":cop:","fork":false,"url":"https://api.github.com/repos/arthurnn/policial.io","forks_url":"https://api.github.com/repos/arthurnn/policial.io/forks","keys_url":"https://api.github.com/repos/arthurnn/policial.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arthurnn/policial.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arthurnn/policial.io/teams","hooks_url":"https://api.github.com/repos/arthurnn/policial.io/hooks","issue_events_url":"https://api.github.com/repos/arthurnn/policial.io/issues/events{/number}","events_url":"https://api.github.com/repos/arthurnn/policial.io/events","assignees_url":"https://api.github.com/repos/arthurnn/policial.io/assignees{/user}","branches_url":"https://api.github.com/repos/arthurnn/policial.io/branches{/branch}","tags_url":"https://api.github.com/repos/arthurnn/policial.io/tags","blobs_url":"https://api.github.com/repos/arthurnn/policial.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arthurnn/policial.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arthurnn/policial.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/arthurnn/policial.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arthurnn/policial.io/statuses/{sha}","languages_url":"https://api.github.com/repos/arthurnn/policial.io/languages","stargazers_url":"https://api.github.com/repos/arthurnn/policial.io/stargazers","contributors_url":"https://api.github.com/repos/arthurnn/policial.io/contributors","subscribers_url":"https://api.github.com/repos/arthurnn/policial.io/subscribers","subscription_url":"https://api.github.com/repos/arthurnn/policial.io/subscription","commits_url":"https://api.github.com/repos/arthurnn/policial.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/arthurnn/policial.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/arthurnn/policial.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/arthurnn/policial.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/arthurnn/policial.io/contents/{+path}","compare_url":"https://api.github.com/repos/arthurnn/policial.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arthurnn/policial.io/merges","archive_url":"https://api.github.com/repos/arthurnn/policial.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arthurnn/policial.io/downloads","issues_url":"https://api.github.com/repos/arthurnn/policial.io/issues{/number}","pulls_url":"https://api.github.com/repos/arthurnn/policial.io/pulls{/number}","milestones_url":"https://api.github.com/repos/arthurnn/policial.io/milestones{/number}","notifications_url":"https://api.github.com/repos/arthurnn/policial.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arthurnn/policial.io/labels{/name}","releases_url":"https://api.github.com/repos/arthurnn/policial.io/releases{/id}","created_at":"2015-03-16T20:55:52Z","updated_at":"2015-03-31T13:56:35Z","pushed_at":"2015-03-31T15:16:30Z","git_url":"git://github.com/arthurnn/policial.io.git","ssh_url":"git@github.com:arthurnn/policial.io.git","clone_url":"https://github.com/arthurnn/policial.io.git","svn_url":"https://github.com/arthurnn/policial.io","homepage":"","size":156,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"base":{"label":"arthurnn:master","ref":"master","sha":"51026ddaa3d1fd720925b35ceca0c4235af33e9d","user":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":false},"repo":{"id":32352455,"name":"policial.io","full_name":"arthurnn/policial.io","owner":{"login":"arthurnn","id":833383,"avatar_url":"https://avatars.githubusercontent.com/u/833383?v=3","gravatar_id":"","url":"https://api.github.com/users/arthurnn","html_url":"https://github.com/arthurnn","followers_url":"https://api.github.com/users/arthurnn/followers","following_url":"https://api.github.com/users/arthurnn/following{/other_user}","gists_url":"https://api.github.com/users/arthurnn/gists{/gist_id}","starred_url":"https://api.github.com/users/arthurnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arthurnn/subscriptions","organizations_url":"https://api.github.com/users/arthurnn/orgs","repos_url":"https://api.github.com/users/arthurnn/repos","events_url":"https://api.github.com/users/arthurnn/events{/privacy}","received_events_url":"https://api.github.com/users/arthurnn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/arthurnn/policial.io","description":":cop:","fork":false,"url":"https://api.github.com/repos/arthurnn/policial.io","forks_url":"https://api.github.com/repos/arthurnn/policial.io/forks","keys_url":"https://api.github.com/repos/arthurnn/policial.io/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arthurnn/policial.io/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arthurnn/policial.io/teams","hooks_url":"https://api.github.com/repos/arthurnn/policial.io/hooks","issue_events_url":"https://api.github.com/repos/arthurnn/policial.io/issues/events{/number}","events_url":"https://api.github.com/repos/arthurnn/policial.io/events","assignees_url":"https://api.github.com/repos/arthurnn/policial.io/assignees{/user}","branches_url":"https://api.github.com/repos/arthurnn/policial.io/branches{/branch}","tags_url":"https://api.github.com/repos/arthurnn/policial.io/tags","blobs_url":"https://api.github.com/repos/arthurnn/policial.io/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arthurnn/policial.io/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arthurnn/policial.io/git/refs{/sha}","trees_url":"https://api.github.com/repos/arthurnn/policial.io/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arthurnn/policial.io/statuses/{sha}","languages_url":"https://api.github.com/repos/arthurnn/policial.io/languages","stargazers_url":"https://api.github.com/repos/arthurnn/policial.io/stargazers","contributors_url":"https://api.github.com/repos/arthurnn/policial.io/contributors","subscribers_url":"https://api.github.com/repos/arthurnn/policial.io/subscribers","subscription_url":"https://api.github.com/repos/arthurnn/policial.io/subscription","commits_url":"https://api.github.com/repos/arthurnn/policial.io/commits{/sha}","git_commits_url":"https://api.github.com/repos/arthurnn/policial.io/git/commits{/sha}","comments_url":"https://api.github.com/repos/arthurnn/policial.io/comments{/number}","issue_comment_url":"https://api.github.com/repos/arthurnn/policial.io/issues/comments{/number}","contents_url":"https://api.github.com/repos/arthurnn/policial.io/contents/{+path}","compare_url":"https://api.github.com/repos/arthurnn/policial.io/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arthurnn/policial.io/merges","archive_url":"https://api.github.com/repos/arthurnn/policial.io/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arthurnn/policial.io/downloads","issues_url":"https://api.github.com/repos/arthurnn/policial.io/issues{/number}","pulls_url":"https://api.github.com/repos/arthurnn/policial.io/pulls{/number}","milestones_url":"https://api.github.com/repos/arthurnn/policial.io/milestones{/number}","notifications_url":"https://api.github.com/repos/arthurnn/policial.io/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arthurnn/policial.io/labels{/name}","releases_url":"https://api.github.com/repos/arthurnn/policial.io/releases{/id}","created_at":"2015-03-16T20:55:52Z","updated_at":"2015-03-31T13:56:35Z","pushed_at":"2015-03-31T15:16:30Z","git_url":"git://github.com/arthurnn/policial.io.git","ssh_url":"git@github.com:arthurnn/policial.io.git","clone_url":"https://github.com/arthurnn/policial.io.git","svn_url":"https://github.com/arthurnn/policial.io","homepage":"","size":156,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/arthurnn/policial.io/pulls/5"},"html":{"href":"https://github.com/arthurnn/policial.io/pull/5"},"issue":{"href":"https://api.github.com/repos/arthurnn/policial.io/issues/5"},"comments":{"href":"https://api.github.com/repos/arthurnn/policial.io/issues/5/comments"},"review_comments":{"href":"https://api.github.com/repos/arthurnn/policial.io/pulls/5/comments"},"review_comment":{"href":"https://api.github.com/repos/arthurnn/policial.io/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/arthurnn/policial.io/pulls/5/commits"},"statuses":{"href":"https://api.github.com/repos/arthurnn/policial.io/statuses/ad8b31edf0fd7407c2ccc8d6e2f774190b62ed19"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":22,"deletions":3,"changed_files":2}}