{"action":"created","comment":{"url":"https://api.github.com/repos/MediaMath/grim/pulls/comments/32422134","id":32422134,"diff_hunk":"@@ -118,7 +119,11 @@ func (i *Instance) BuildNextInGrimQueue(logger *log.Logger) error {\n \t\t\treturn grimErrorf(\"error extracting hook from message: %v\", err)\n \t\t}\n \n-\t\tif !(hook.EventName == \"push\" || hook.EventName == \"pull_request\" && (hook.Action == \"opened\" || hook.Action == \"reopened\" || hook.Action == \"synchronize\")) {\n+\t\tif !repoIsAlive(hook) {","path":"grim.go","position":13,"original_position":13,"commit_id":"9abd8be7a5db51f7e1acc68db137b5dac4cebcd8","original_commit_id":"9abd8be7a5db51f7e1acc68db137b5dac4cebcd8","user":{"login":"bluebytes60","id":8658075,"avatar_url":"https://avatars.githubusercontent.com/u/8658075?v=3","gravatar_id":"","url":"https://api.github.com/users/bluebytes60","html_url":"https://github.com/bluebytes60","followers_url":"https://api.github.com/users/bluebytes60/followers","following_url":"https://api.github.com/users/bluebytes60/following{/other_user}","gists_url":"https://api.github.com/users/bluebytes60/gists{/gist_id}","starred_url":"https://api.github.com/users/bluebytes60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluebytes60/subscriptions","organizations_url":"https://api.github.com/users/bluebytes60/orgs","repos_url":"https://api.github.com/users/bluebytes60/repos","events_url":"https://api.github.com/users/bluebytes60/events{/privacy}","received_events_url":"https://api.github.com/users/bluebytes60/received_events","type":"User","site_admin":false},"body":"oops, For this part, I forget to delete the old code in second branch...","created_at":"2015-06-15T13:59:35Z","updated_at":"2015-06-15T13:59:35Z","html_url":"https://github.com/MediaMath/grim/pull/68#discussion_r32422134","pull_request_url":"https://api.github.com/repos/MediaMath/grim/pulls/68","_links":{"self":{"href":"https://api.github.com/repos/MediaMath/grim/pulls/comments/32422134"},"html":{"href":"https://github.com/MediaMath/grim/pull/68#discussion_r32422134"},"pull_request":{"href":"https://api.github.com/repos/MediaMath/grim/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/MediaMath/grim/pulls/68","id":37618704,"html_url":"https://github.com/MediaMath/grim/pull/68","diff_url":"https://github.com/MediaMath/grim/pull/68.diff","patch_url":"https://github.com/MediaMath/grim/pull/68.patch","issue_url":"https://api.github.com/repos/MediaMath/grim/issues/68","number":68,"state":"open","locked":false,"title":"Ignore unnecessary build when delete a branch ","user":{"login":"bluebytes60","id":8658075,"avatar_url":"https://avatars.githubusercontent.com/u/8658075?v=3","gravatar_id":"","url":"https://api.github.com/users/bluebytes60","html_url":"https://github.com/bluebytes60","followers_url":"https://api.github.com/users/bluebytes60/followers","following_url":"https://api.github.com/users/bluebytes60/following{/other_user}","gists_url":"https://api.github.com/users/bluebytes60/gists{/gist_id}","starred_url":"https://api.github.com/users/bluebytes60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluebytes60/subscriptions","organizations_url":"https://api.github.com/users/bluebytes60/orgs","repos_url":"https://api.github.com/users/bluebytes60/repos","events_url":"https://api.github.com/users/bluebytes60/events{/privacy}","received_events_url":"https://api.github.com/users/bluebytes60/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-13T03:55:43Z","updated_at":"2015-06-15T13:59:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b72867f3f26bba588afafcb44f5e8a1a14c89190","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/MediaMath/grim/pulls/68/commits","review_comments_url":"https://api.github.com/repos/MediaMath/grim/pulls/68/comments","review_comment_url":"https://api.github.com/repos/MediaMath/grim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MediaMath/grim/issues/68/comments","statuses_url":"https://api.github.com/repos/MediaMath/grim/statuses/9abd8be7a5db51f7e1acc68db137b5dac4cebcd8","head":{"label":"bluebytes60:master","ref":"master","sha":"9abd8be7a5db51f7e1acc68db137b5dac4cebcd8","user":{"login":"bluebytes60","id":8658075,"avatar_url":"https://avatars.githubusercontent.com/u/8658075?v=3","gravatar_id":"","url":"https://api.github.com/users/bluebytes60","html_url":"https://github.com/bluebytes60","followers_url":"https://api.github.com/users/bluebytes60/followers","following_url":"https://api.github.com/users/bluebytes60/following{/other_user}","gists_url":"https://api.github.com/users/bluebytes60/gists{/gist_id}","starred_url":"https://api.github.com/users/bluebytes60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluebytes60/subscriptions","organizations_url":"https://api.github.com/users/bluebytes60/orgs","repos_url":"https://api.github.com/users/bluebytes60/repos","events_url":"https://api.github.com/users/bluebytes60/events{/privacy}","received_events_url":"https://api.github.com/users/bluebytes60/received_events","type":"User","site_admin":false},"repo":{"id":37076335,"name":"grim","full_name":"bluebytes60/grim","owner":{"login":"bluebytes60","id":8658075,"avatar_url":"https://avatars.githubusercontent.com/u/8658075?v=3","gravatar_id":"","url":"https://api.github.com/users/bluebytes60","html_url":"https://github.com/bluebytes60","followers_url":"https://api.github.com/users/bluebytes60/followers","following_url":"https://api.github.com/users/bluebytes60/following{/other_user}","gists_url":"https://api.github.com/users/bluebytes60/gists{/gist_id}","starred_url":"https://api.github.com/users/bluebytes60/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bluebytes60/subscriptions","organizations_url":"https://api.github.com/users/bluebytes60/orgs","repos_url":"https://api.github.com/users/bluebytes60/repos","events_url":"https://api.github.com/users/bluebytes60/events{/privacy}","received_events_url":"https://api.github.com/users/bluebytes60/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bluebytes60/grim","description":"a dead simple build server","fork":true,"url":"https://api.github.com/repos/bluebytes60/grim","forks_url":"https://api.github.com/repos/bluebytes60/grim/forks","keys_url":"https://api.github.com/repos/bluebytes60/grim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bluebytes60/grim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bluebytes60/grim/teams","hooks_url":"https://api.github.com/repos/bluebytes60/grim/hooks","issue_events_url":"https://api.github.com/repos/bluebytes60/grim/issues/events{/number}","events_url":"https://api.github.com/repos/bluebytes60/grim/events","assignees_url":"https://api.github.com/repos/bluebytes60/grim/assignees{/user}","branches_url":"https://api.github.com/repos/bluebytes60/grim/branches{/branch}","tags_url":"https://api.github.com/repos/bluebytes60/grim/tags","blobs_url":"https://api.github.com/repos/bluebytes60/grim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bluebytes60/grim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bluebytes60/grim/git/refs{/sha}","trees_url":"https://api.github.com/repos/bluebytes60/grim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bluebytes60/grim/statuses/{sha}","languages_url":"https://api.github.com/repos/bluebytes60/grim/languages","stargazers_url":"https://api.github.com/repos/bluebytes60/grim/stargazers","contributors_url":"https://api.github.com/repos/bluebytes60/grim/contributors","subscribers_url":"https://api.github.com/repos/bluebytes60/grim/subscribers","subscription_url":"https://api.github.com/repos/bluebytes60/grim/subscription","commits_url":"https://api.github.com/repos/bluebytes60/grim/commits{/sha}","git_commits_url":"https://api.github.com/repos/bluebytes60/grim/git/commits{/sha}","comments_url":"https://api.github.com/repos/bluebytes60/grim/comments{/number}","issue_comment_url":"https://api.github.com/repos/bluebytes60/grim/issues/comments{/number}","contents_url":"https://api.github.com/repos/bluebytes60/grim/contents/{+path}","compare_url":"https://api.github.com/repos/bluebytes60/grim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bluebytes60/grim/merges","archive_url":"https://api.github.com/repos/bluebytes60/grim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bluebytes60/grim/downloads","issues_url":"https://api.github.com/repos/bluebytes60/grim/issues{/number}","pulls_url":"https://api.github.com/repos/bluebytes60/grim/pulls{/number}","milestones_url":"https://api.github.com/repos/bluebytes60/grim/milestones{/number}","notifications_url":"https://api.github.com/repos/bluebytes60/grim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bluebytes60/grim/labels{/name}","releases_url":"https://api.github.com/repos/bluebytes60/grim/releases{/id}","created_at":"2015-06-08T15:44:39Z","updated_at":"2015-06-08T15:44:39Z","pushed_at":"2015-06-15T13:49:25Z","git_url":"git://github.com/bluebytes60/grim.git","ssh_url":"git@github.com:bluebytes60/grim.git","clone_url":"https://github.com/bluebytes60/grim.git","svn_url":"https://github.com/bluebytes60/grim","homepage":"","size":358,"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":"MediaMath:master","ref":"master","sha":"18d27e71fa5669ab1a7f9d72f791c0f2c1600a09","user":{"login":"MediaMath","id":2982134,"avatar_url":"https://avatars.githubusercontent.com/u/2982134?v=3","gravatar_id":"","url":"https://api.github.com/users/MediaMath","html_url":"https://github.com/MediaMath","followers_url":"https://api.github.com/users/MediaMath/followers","following_url":"https://api.github.com/users/MediaMath/following{/other_user}","gists_url":"https://api.github.com/users/MediaMath/gists{/gist_id}","starred_url":"https://api.github.com/users/MediaMath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MediaMath/subscriptions","organizations_url":"https://api.github.com/users/MediaMath/orgs","repos_url":"https://api.github.com/users/MediaMath/repos","events_url":"https://api.github.com/users/MediaMath/events{/privacy}","received_events_url":"https://api.github.com/users/MediaMath/received_events","type":"Organization","site_admin":false},"repo":{"id":35443467,"name":"grim","full_name":"MediaMath/grim","owner":{"login":"MediaMath","id":2982134,"avatar_url":"https://avatars.githubusercontent.com/u/2982134?v=3","gravatar_id":"","url":"https://api.github.com/users/MediaMath","html_url":"https://github.com/MediaMath","followers_url":"https://api.github.com/users/MediaMath/followers","following_url":"https://api.github.com/users/MediaMath/following{/other_user}","gists_url":"https://api.github.com/users/MediaMath/gists{/gist_id}","starred_url":"https://api.github.com/users/MediaMath/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MediaMath/subscriptions","organizations_url":"https://api.github.com/users/MediaMath/orgs","repos_url":"https://api.github.com/users/MediaMath/repos","events_url":"https://api.github.com/users/MediaMath/events{/privacy}","received_events_url":"https://api.github.com/users/MediaMath/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MediaMath/grim","description":"a dead simple build server","fork":false,"url":"https://api.github.com/repos/MediaMath/grim","forks_url":"https://api.github.com/repos/MediaMath/grim/forks","keys_url":"https://api.github.com/repos/MediaMath/grim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MediaMath/grim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MediaMath/grim/teams","hooks_url":"https://api.github.com/repos/MediaMath/grim/hooks","issue_events_url":"https://api.github.com/repos/MediaMath/grim/issues/events{/number}","events_url":"https://api.github.com/repos/MediaMath/grim/events","assignees_url":"https://api.github.com/repos/MediaMath/grim/assignees{/user}","branches_url":"https://api.github.com/repos/MediaMath/grim/branches{/branch}","tags_url":"https://api.github.com/repos/MediaMath/grim/tags","blobs_url":"https://api.github.com/repos/MediaMath/grim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MediaMath/grim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MediaMath/grim/git/refs{/sha}","trees_url":"https://api.github.com/repos/MediaMath/grim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MediaMath/grim/statuses/{sha}","languages_url":"https://api.github.com/repos/MediaMath/grim/languages","stargazers_url":"https://api.github.com/repos/MediaMath/grim/stargazers","contributors_url":"https://api.github.com/repos/MediaMath/grim/contributors","subscribers_url":"https://api.github.com/repos/MediaMath/grim/subscribers","subscription_url":"https://api.github.com/repos/MediaMath/grim/subscription","commits_url":"https://api.github.com/repos/MediaMath/grim/commits{/sha}","git_commits_url":"https://api.github.com/repos/MediaMath/grim/git/commits{/sha}","comments_url":"https://api.github.com/repos/MediaMath/grim/comments{/number}","issue_comment_url":"https://api.github.com/repos/MediaMath/grim/issues/comments{/number}","contents_url":"https://api.github.com/repos/MediaMath/grim/contents/{+path}","compare_url":"https://api.github.com/repos/MediaMath/grim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MediaMath/grim/merges","archive_url":"https://api.github.com/repos/MediaMath/grim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MediaMath/grim/downloads","issues_url":"https://api.github.com/repos/MediaMath/grim/issues{/number}","pulls_url":"https://api.github.com/repos/MediaMath/grim/pulls{/number}","milestones_url":"https://api.github.com/repos/MediaMath/grim/milestones{/number}","notifications_url":"https://api.github.com/repos/MediaMath/grim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MediaMath/grim/labels{/name}","releases_url":"https://api.github.com/repos/MediaMath/grim/releases{/id}","created_at":"2015-05-11T18:55:15Z","updated_at":"2015-06-14T02:20:12Z","pushed_at":"2015-06-15T13:49:25Z","git_url":"git://github.com/MediaMath/grim.git","ssh_url":"git@github.com:MediaMath/grim.git","clone_url":"https://github.com/MediaMath/grim.git","svn_url":"https://github.com/MediaMath/grim","homepage":"","size":679,"stargazers_count":12,"watchers_count":12,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":13,"forks":5,"open_issues":13,"watchers":12,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MediaMath/grim/pulls/68"},"html":{"href":"https://github.com/MediaMath/grim/pull/68"},"issue":{"href":"https://api.github.com/repos/MediaMath/grim/issues/68"},"comments":{"href":"https://api.github.com/repos/MediaMath/grim/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/MediaMath/grim/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/MediaMath/grim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MediaMath/grim/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/MediaMath/grim/statuses/9abd8be7a5db51f7e1acc68db137b5dac4cebcd8"}}}}