{"action":"created","comment":{"url":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/comments/31004614","id":31004614,"diff_hunk":"@@ -71,20 +68,23 @@ def retry_task(force=false)\n     # setting this causes this post commit callback to send out the message\n     self.process_task = true\n \n-    task_log = task_logs.create(status: RETRYING, message: \"retrying task: status: #{status}, force: #{force}\", logged_at: Time.now)\n+    task_log = task_logs.create(status: RETRYING, message: \"retrying task: status: #{status}, force: #{force}\", logged_at: Time.now, info: {})\n     self.retrying!\n     task_log\n   end\n \n   def handle_status_changes\n-    return if previous_status.to_s == status.to_s\n+    logger.debug \"task: publish_messages: status: #{status}\"\n+\n+    return unless previous_changes['status']\n \n+    previous_status = previous_changes['status'].try(:first)","path":"app/models/task.rb","position":44,"original_position":44,"commit_id":"d373946896a5c92ec6fad6ea377c846223554921","original_commit_id":"d373946896a5c92ec6fad6ea377c846223554921","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Prefer double-quoted strings unless you need single quotes to avoid extra backslashes for escaping.","created_at":"2015-05-26T04:53:05Z","updated_at":"2015-05-26T04:53:05Z","html_url":"https://github.com/PRX/fixer.prx.org/pull/26#discussion_r31004614","pull_request_url":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/26","_links":{"self":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/comments/31004614"},"html":{"href":"https://github.com/PRX/fixer.prx.org/pull/26#discussion_r31004614"},"pull_request":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/26"}}},"pull_request":{"url":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/26","id":36169568,"html_url":"https://github.com/PRX/fixer.prx.org/pull/26","diff_url":"https://github.com/PRX/fixer.prx.org/pull/26.diff","patch_url":"https://github.com/PRX/fixer.prx.org/pull/26.patch","issue_url":"https://api.github.com/repos/PRX/fixer.prx.org/issues/26","number":26,"state":"open","locked":false,"title":"moar tests","user":{"login":"kookster","id":46439,"avatar_url":"https://avatars.githubusercontent.com/u/46439?v=3","gravatar_id":"","url":"https://api.github.com/users/kookster","html_url":"https://github.com/kookster","followers_url":"https://api.github.com/users/kookster/followers","following_url":"https://api.github.com/users/kookster/following{/other_user}","gists_url":"https://api.github.com/users/kookster/gists{/gist_id}","starred_url":"https://api.github.com/users/kookster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kookster/subscriptions","organizations_url":"https://api.github.com/users/kookster/orgs","repos_url":"https://api.github.com/users/kookster/repos","events_url":"https://api.github.com/users/kookster/events{/privacy}","received_events_url":"https://api.github.com/users/kookster/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-26T04:52:51Z","updated_at":"2015-05-26T04:53:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e3d535ef16a3c55dfb1c4fdcbc1fb6c5c0a55b4d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/26/commits","review_comments_url":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/26/comments","review_comment_url":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PRX/fixer.prx.org/issues/26/comments","statuses_url":"https://api.github.com/repos/PRX/fixer.prx.org/statuses/d373946896a5c92ec6fad6ea377c846223554921","head":{"label":"PRX:fix/moar_tests","ref":"fix/moar_tests","sha":"d373946896a5c92ec6fad6ea377c846223554921","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":29747841,"name":"fixer.prx.org","full_name":"PRX/fixer.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/fixer.prx.org","description":"Media processing application.","fork":false,"url":"https://api.github.com/repos/PRX/fixer.prx.org","forks_url":"https://api.github.com/repos/PRX/fixer.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/fixer.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/fixer.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/fixer.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/fixer.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/fixer.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/fixer.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/fixer.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/fixer.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/fixer.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/fixer.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/fixer.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/fixer.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/fixer.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/fixer.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/fixer.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/fixer.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/fixer.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/fixer.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/fixer.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/fixer.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/fixer.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/fixer.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/fixer.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/fixer.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/fixer.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/fixer.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/fixer.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/fixer.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/fixer.prx.org/releases{/id}","created_at":"2015-01-23T18:58:41Z","updated_at":"2015-05-07T18:30:50Z","pushed_at":"2015-05-26T04:52:52Z","git_url":"git://github.com/PRX/fixer.prx.org.git","ssh_url":"git@github.com:PRX/fixer.prx.org.git","clone_url":"https://github.com/PRX/fixer.prx.org.git","svn_url":"https://github.com/PRX/fixer.prx.org","homepage":"","size":10967,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"base":{"label":"PRX:master","ref":"master","sha":"8f407c6d509285ba7ced5374899ee066e74b7e2a","user":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"repo":{"id":29747841,"name":"fixer.prx.org","full_name":"PRX/fixer.prx.org","owner":{"login":"PRX","id":160453,"avatar_url":"https://avatars.githubusercontent.com/u/160453?v=3","gravatar_id":"","url":"https://api.github.com/users/PRX","html_url":"https://github.com/PRX","followers_url":"https://api.github.com/users/PRX/followers","following_url":"https://api.github.com/users/PRX/following{/other_user}","gists_url":"https://api.github.com/users/PRX/gists{/gist_id}","starred_url":"https://api.github.com/users/PRX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PRX/subscriptions","organizations_url":"https://api.github.com/users/PRX/orgs","repos_url":"https://api.github.com/users/PRX/repos","events_url":"https://api.github.com/users/PRX/events{/privacy}","received_events_url":"https://api.github.com/users/PRX/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PRX/fixer.prx.org","description":"Media processing application.","fork":false,"url":"https://api.github.com/repos/PRX/fixer.prx.org","forks_url":"https://api.github.com/repos/PRX/fixer.prx.org/forks","keys_url":"https://api.github.com/repos/PRX/fixer.prx.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PRX/fixer.prx.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PRX/fixer.prx.org/teams","hooks_url":"https://api.github.com/repos/PRX/fixer.prx.org/hooks","issue_events_url":"https://api.github.com/repos/PRX/fixer.prx.org/issues/events{/number}","events_url":"https://api.github.com/repos/PRX/fixer.prx.org/events","assignees_url":"https://api.github.com/repos/PRX/fixer.prx.org/assignees{/user}","branches_url":"https://api.github.com/repos/PRX/fixer.prx.org/branches{/branch}","tags_url":"https://api.github.com/repos/PRX/fixer.prx.org/tags","blobs_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PRX/fixer.prx.org/statuses/{sha}","languages_url":"https://api.github.com/repos/PRX/fixer.prx.org/languages","stargazers_url":"https://api.github.com/repos/PRX/fixer.prx.org/stargazers","contributors_url":"https://api.github.com/repos/PRX/fixer.prx.org/contributors","subscribers_url":"https://api.github.com/repos/PRX/fixer.prx.org/subscribers","subscription_url":"https://api.github.com/repos/PRX/fixer.prx.org/subscription","commits_url":"https://api.github.com/repos/PRX/fixer.prx.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/PRX/fixer.prx.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/PRX/fixer.prx.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/PRX/fixer.prx.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/PRX/fixer.prx.org/contents/{+path}","compare_url":"https://api.github.com/repos/PRX/fixer.prx.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PRX/fixer.prx.org/merges","archive_url":"https://api.github.com/repos/PRX/fixer.prx.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PRX/fixer.prx.org/downloads","issues_url":"https://api.github.com/repos/PRX/fixer.prx.org/issues{/number}","pulls_url":"https://api.github.com/repos/PRX/fixer.prx.org/pulls{/number}","milestones_url":"https://api.github.com/repos/PRX/fixer.prx.org/milestones{/number}","notifications_url":"https://api.github.com/repos/PRX/fixer.prx.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PRX/fixer.prx.org/labels{/name}","releases_url":"https://api.github.com/repos/PRX/fixer.prx.org/releases{/id}","created_at":"2015-01-23T18:58:41Z","updated_at":"2015-05-07T18:30:50Z","pushed_at":"2015-05-26T04:52:52Z","git_url":"git://github.com/PRX/fixer.prx.org.git","ssh_url":"git@github.com:PRX/fixer.prx.org.git","clone_url":"https://github.com/PRX/fixer.prx.org.git","svn_url":"https://github.com/PRX/fixer.prx.org","homepage":"","size":10967,"stargazers_count":1,"watchers_count":1,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":12,"forks":1,"open_issues":12,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/26"},"html":{"href":"https://github.com/PRX/fixer.prx.org/pull/26"},"issue":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/issues/26"},"comments":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/issues/26/comments"},"review_comments":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/26/comments"},"review_comment":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/pulls/26/commits"},"statuses":{"href":"https://api.github.com/repos/PRX/fixer.prx.org/statuses/d373946896a5c92ec6fad6ea377c846223554921"}}}}