{"action":"created","comment":{"url":"https://api.github.com/repos/huboard/huboard-web/pulls/comments/61455591","id":61455591,"diff_hunk":"@@ -1,11 +1,18 @@\n module Api\n   class IssuesLabelIssueJob < IssueEventJob\n-    include IsPublishable\n     timestamp ->(params) { params[:issue]['updated_at'] }\n     action \"issue_labeled\"\n+    cache_key ->(message) {\n+      label_name = message[:payload][:label] ? message[:payload][:label]['name'] : \"\"\n+\n+      \"#{message[:meta][:action]}.#{message[:meta][:user][\"login\"]}.#{message[:meta][:identifier]}.#{message[:meta][:timestamp]}.#{ label_name }\"","path":"app/jobs/api/issues_label_issue_job.rb","position":9,"original_position":9,"commit_id":"5bb29d72506ff3b43bb46cced7ec4c9fe809f857","original_commit_id":"5bb29d72506ff3b43bb46cced7ec4c9fe809f857","user":{"login":"drusellers","id":63355,"avatar_url":"https://avatars.githubusercontent.com/u/63355?v=3","gravatar_id":"","url":"https://api.github.com/users/drusellers","html_url":"https://github.com/drusellers","followers_url":"https://api.github.com/users/drusellers/followers","following_url":"https://api.github.com/users/drusellers/following{/other_user}","gists_url":"https://api.github.com/users/drusellers/gists{/gist_id}","starred_url":"https://api.github.com/users/drusellers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drusellers/subscriptions","organizations_url":"https://api.github.com/users/drusellers/orgs","repos_url":"https://api.github.com/users/drusellers/repos","events_url":"https://api.github.com/users/drusellers/events{/privacy}","received_events_url":"https://api.github.com/users/drusellers/received_events","type":"User","site_admin":false},"body":"This looks duplicated. Leverage a class method so that we don't screw this up?","created_at":"2016-04-28T16:08:22Z","updated_at":"2016-04-28T16:08:22Z","html_url":"https://github.com/huboard/huboard-web/pull/255#discussion_r61455591","pull_request_url":"https://api.github.com/repos/huboard/huboard-web/pulls/255","_links":{"self":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/comments/61455591"},"html":{"href":"https://github.com/huboard/huboard-web/pull/255#discussion_r61455591"},"pull_request":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/255"}}},"pull_request":{"url":"https://api.github.com/repos/huboard/huboard-web/pulls/255","id":64398688,"html_url":"https://github.com/huboard/huboard-web/pull/255","diff_url":"https://github.com/huboard/huboard-web/pull/255.diff","patch_url":"https://github.com/huboard/huboard-web/pull/255.patch","issue_url":"https://api.github.com/repos/huboard/huboard-web/issues/255","number":255,"state":"open","locked":false,"title":"Implements pull_request web hook to health checks and client side events","user":{"login":"rauhryan","id":68954,"avatar_url":"https://avatars.githubusercontent.com/u/68954?v=3","gravatar_id":"","url":"https://api.github.com/users/rauhryan","html_url":"https://github.com/rauhryan","followers_url":"https://api.github.com/users/rauhryan/followers","following_url":"https://api.github.com/users/rauhryan/following{/other_user}","gists_url":"https://api.github.com/users/rauhryan/gists{/gist_id}","starred_url":"https://api.github.com/users/rauhryan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rauhryan/subscriptions","organizations_url":"https://api.github.com/users/rauhryan/orgs","repos_url":"https://api.github.com/users/rauhryan/repos","events_url":"https://api.github.com/users/rauhryan/events{/privacy}","received_events_url":"https://api.github.com/users/rauhryan/received_events","type":"User","site_admin":false},"body":"converts PR into an issue payload and sends up the\r\nevent as an issue event. \r\n\r\nSeems to work \r\n\r\nCloses #231\r\nRelated to huboard/huboard#598\r\n\r\n<!---\r\n@huboard:{\"milestone_order\":63.75}\r\n-->\r\n","created_at":"2016-03-29T00:49:22Z","updated_at":"2016-04-28T16:08:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0b0b5905f65b81893fc5b0cd8a36cd2627d9ff45","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/huboard/huboard-web/pulls/255/commits","review_comments_url":"https://api.github.com/repos/huboard/huboard-web/pulls/255/comments","review_comment_url":"https://api.github.com/repos/huboard/huboard-web/pulls/comments{/number}","comments_url":"https://api.github.com/repos/huboard/huboard-web/issues/255/comments","statuses_url":"https://api.github.com/repos/huboard/huboard-web/statuses/5bb29d72506ff3b43bb46cced7ec4c9fe809f857","head":{"label":"huboard:rauhryan/pr-close-to-final-column","ref":"rauhryan/pr-close-to-final-column","sha":"5bb29d72506ff3b43bb46cced7ec4c9fe809f857","user":{"login":"huboard","id":1236155,"avatar_url":"https://avatars.githubusercontent.com/u/1236155?v=3","gravatar_id":"","url":"https://api.github.com/users/huboard","html_url":"https://github.com/huboard","followers_url":"https://api.github.com/users/huboard/followers","following_url":"https://api.github.com/users/huboard/following{/other_user}","gists_url":"https://api.github.com/users/huboard/gists{/gist_id}","starred_url":"https://api.github.com/users/huboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huboard/subscriptions","organizations_url":"https://api.github.com/users/huboard/orgs","repos_url":"https://api.github.com/users/huboard/repos","events_url":"https://api.github.com/users/huboard/events{/privacy}","received_events_url":"https://api.github.com/users/huboard/received_events","type":"Organization","site_admin":false},"repo":{"id":29268631,"name":"huboard-web","full_name":"huboard/huboard-web","owner":{"login":"huboard","id":1236155,"avatar_url":"https://avatars.githubusercontent.com/u/1236155?v=3","gravatar_id":"","url":"https://api.github.com/users/huboard","html_url":"https://github.com/huboard","followers_url":"https://api.github.com/users/huboard/followers","following_url":"https://api.github.com/users/huboard/following{/other_user}","gists_url":"https://api.github.com/users/huboard/gists{/gist_id}","starred_url":"https://api.github.com/users/huboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huboard/subscriptions","organizations_url":"https://api.github.com/users/huboard/orgs","repos_url":"https://api.github.com/users/huboard/repos","events_url":"https://api.github.com/users/huboard/events{/privacy}","received_events_url":"https://api.github.com/users/huboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/huboard/huboard-web","description":"GitHub issues made awesome","fork":false,"url":"https://api.github.com/repos/huboard/huboard-web","forks_url":"https://api.github.com/repos/huboard/huboard-web/forks","keys_url":"https://api.github.com/repos/huboard/huboard-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huboard/huboard-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huboard/huboard-web/teams","hooks_url":"https://api.github.com/repos/huboard/huboard-web/hooks","issue_events_url":"https://api.github.com/repos/huboard/huboard-web/issues/events{/number}","events_url":"https://api.github.com/repos/huboard/huboard-web/events","assignees_url":"https://api.github.com/repos/huboard/huboard-web/assignees{/user}","branches_url":"https://api.github.com/repos/huboard/huboard-web/branches{/branch}","tags_url":"https://api.github.com/repos/huboard/huboard-web/tags","blobs_url":"https://api.github.com/repos/huboard/huboard-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huboard/huboard-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huboard/huboard-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/huboard/huboard-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huboard/huboard-web/statuses/{sha}","languages_url":"https://api.github.com/repos/huboard/huboard-web/languages","stargazers_url":"https://api.github.com/repos/huboard/huboard-web/stargazers","contributors_url":"https://api.github.com/repos/huboard/huboard-web/contributors","subscribers_url":"https://api.github.com/repos/huboard/huboard-web/subscribers","subscription_url":"https://api.github.com/repos/huboard/huboard-web/subscription","commits_url":"https://api.github.com/repos/huboard/huboard-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/huboard/huboard-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/huboard/huboard-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/huboard/huboard-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/huboard/huboard-web/contents/{+path}","compare_url":"https://api.github.com/repos/huboard/huboard-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huboard/huboard-web/merges","archive_url":"https://api.github.com/repos/huboard/huboard-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huboard/huboard-web/downloads","issues_url":"https://api.github.com/repos/huboard/huboard-web/issues{/number}","pulls_url":"https://api.github.com/repos/huboard/huboard-web/pulls{/number}","milestones_url":"https://api.github.com/repos/huboard/huboard-web/milestones{/number}","notifications_url":"https://api.github.com/repos/huboard/huboard-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huboard/huboard-web/labels{/name}","releases_url":"https://api.github.com/repos/huboard/huboard-web/releases{/id}","deployments_url":"https://api.github.com/repos/huboard/huboard-web/deployments","created_at":"2015-01-14T22:17:00Z","updated_at":"2016-04-09T02:06:49Z","pushed_at":"2016-04-28T15:58:43Z","git_url":"git://github.com/huboard/huboard-web.git","ssh_url":"git@github.com:huboard/huboard-web.git","clone_url":"https://github.com/huboard/huboard-web.git","svn_url":"https://github.com/huboard/huboard-web","homepage":"https://huboard.com","size":23984,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":36,"forks":19,"open_issues":36,"watchers":29,"default_branch":"master"}},"base":{"label":"huboard:master","ref":"master","sha":"8749941acafb54ab45df976557beb0aec3dc5778","user":{"login":"huboard","id":1236155,"avatar_url":"https://avatars.githubusercontent.com/u/1236155?v=3","gravatar_id":"","url":"https://api.github.com/users/huboard","html_url":"https://github.com/huboard","followers_url":"https://api.github.com/users/huboard/followers","following_url":"https://api.github.com/users/huboard/following{/other_user}","gists_url":"https://api.github.com/users/huboard/gists{/gist_id}","starred_url":"https://api.github.com/users/huboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huboard/subscriptions","organizations_url":"https://api.github.com/users/huboard/orgs","repos_url":"https://api.github.com/users/huboard/repos","events_url":"https://api.github.com/users/huboard/events{/privacy}","received_events_url":"https://api.github.com/users/huboard/received_events","type":"Organization","site_admin":false},"repo":{"id":29268631,"name":"huboard-web","full_name":"huboard/huboard-web","owner":{"login":"huboard","id":1236155,"avatar_url":"https://avatars.githubusercontent.com/u/1236155?v=3","gravatar_id":"","url":"https://api.github.com/users/huboard","html_url":"https://github.com/huboard","followers_url":"https://api.github.com/users/huboard/followers","following_url":"https://api.github.com/users/huboard/following{/other_user}","gists_url":"https://api.github.com/users/huboard/gists{/gist_id}","starred_url":"https://api.github.com/users/huboard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huboard/subscriptions","organizations_url":"https://api.github.com/users/huboard/orgs","repos_url":"https://api.github.com/users/huboard/repos","events_url":"https://api.github.com/users/huboard/events{/privacy}","received_events_url":"https://api.github.com/users/huboard/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/huboard/huboard-web","description":"GitHub issues made awesome","fork":false,"url":"https://api.github.com/repos/huboard/huboard-web","forks_url":"https://api.github.com/repos/huboard/huboard-web/forks","keys_url":"https://api.github.com/repos/huboard/huboard-web/keys{/key_id}","collaborators_url":"https://api.github.com/repos/huboard/huboard-web/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/huboard/huboard-web/teams","hooks_url":"https://api.github.com/repos/huboard/huboard-web/hooks","issue_events_url":"https://api.github.com/repos/huboard/huboard-web/issues/events{/number}","events_url":"https://api.github.com/repos/huboard/huboard-web/events","assignees_url":"https://api.github.com/repos/huboard/huboard-web/assignees{/user}","branches_url":"https://api.github.com/repos/huboard/huboard-web/branches{/branch}","tags_url":"https://api.github.com/repos/huboard/huboard-web/tags","blobs_url":"https://api.github.com/repos/huboard/huboard-web/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/huboard/huboard-web/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/huboard/huboard-web/git/refs{/sha}","trees_url":"https://api.github.com/repos/huboard/huboard-web/git/trees{/sha}","statuses_url":"https://api.github.com/repos/huboard/huboard-web/statuses/{sha}","languages_url":"https://api.github.com/repos/huboard/huboard-web/languages","stargazers_url":"https://api.github.com/repos/huboard/huboard-web/stargazers","contributors_url":"https://api.github.com/repos/huboard/huboard-web/contributors","subscribers_url":"https://api.github.com/repos/huboard/huboard-web/subscribers","subscription_url":"https://api.github.com/repos/huboard/huboard-web/subscription","commits_url":"https://api.github.com/repos/huboard/huboard-web/commits{/sha}","git_commits_url":"https://api.github.com/repos/huboard/huboard-web/git/commits{/sha}","comments_url":"https://api.github.com/repos/huboard/huboard-web/comments{/number}","issue_comment_url":"https://api.github.com/repos/huboard/huboard-web/issues/comments{/number}","contents_url":"https://api.github.com/repos/huboard/huboard-web/contents/{+path}","compare_url":"https://api.github.com/repos/huboard/huboard-web/compare/{base}...{head}","merges_url":"https://api.github.com/repos/huboard/huboard-web/merges","archive_url":"https://api.github.com/repos/huboard/huboard-web/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/huboard/huboard-web/downloads","issues_url":"https://api.github.com/repos/huboard/huboard-web/issues{/number}","pulls_url":"https://api.github.com/repos/huboard/huboard-web/pulls{/number}","milestones_url":"https://api.github.com/repos/huboard/huboard-web/milestones{/number}","notifications_url":"https://api.github.com/repos/huboard/huboard-web/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/huboard/huboard-web/labels{/name}","releases_url":"https://api.github.com/repos/huboard/huboard-web/releases{/id}","deployments_url":"https://api.github.com/repos/huboard/huboard-web/deployments","created_at":"2015-01-14T22:17:00Z","updated_at":"2016-04-09T02:06:49Z","pushed_at":"2016-04-28T15:58:43Z","git_url":"git://github.com/huboard/huboard-web.git","ssh_url":"git@github.com:huboard/huboard-web.git","clone_url":"https://github.com/huboard/huboard-web.git","svn_url":"https://github.com/huboard/huboard-web","homepage":"https://huboard.com","size":23984,"stargazers_count":29,"watchers_count":29,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":36,"forks":19,"open_issues":36,"watchers":29,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/255"},"html":{"href":"https://github.com/huboard/huboard-web/pull/255"},"issue":{"href":"https://api.github.com/repos/huboard/huboard-web/issues/255"},"comments":{"href":"https://api.github.com/repos/huboard/huboard-web/issues/255/comments"},"review_comments":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/255/comments"},"review_comment":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/huboard/huboard-web/pulls/255/commits"},"statuses":{"href":"https://api.github.com/repos/huboard/huboard-web/statuses/5bb29d72506ff3b43bb46cced7ec4c9fe809f857"}}}}