{"action":"created","comment":{"url":"https://api.github.com/repos/Shopify/shipit-engine/pulls/comments/33502780","id":33502780,"diff_hunk":"@@ -5,12 +5,15 @@ class @Notifications\n     error: '<%= image_path \"deploy_error.jpg\" %>'\n \n   @init: (outputStream) ->\n-    outputStream.addEventListener('status', new this().statusUpdated)\n+    if repoName = $('[data-repo-full-name]').attr('data-repo-full-name')\n+      outputStream.addEventListener('status', new this(repoName).statusUpdated)\n+\n+  constructor: (@repoName) ->\n \n   statusUpdated: (task) =>\n     return if task.status in ['pending', 'running']\n     return unless $.notifyCheck() == $.NOTIFY_ALLOWED\n-    $.notify(@url(task), @title(task), @message(task))\n+    $.notify(@url(task), repoName, @message(task))","path":"app/assets/javascripts/task/notifications.js.coffee.erb","position":14,"original_position":14,"commit_id":"2c904b4b8372e21103e05b4c4a3ddf24886f15ee","original_commit_id":"2c904b4b8372e21103e05b4c4a3ddf24886f15ee","user":{"login":"davidcornu","id":325821,"avatar_url":"https://avatars.githubusercontent.com/u/325821?v=3","gravatar_id":"","url":"https://api.github.com/users/davidcornu","html_url":"https://github.com/davidcornu","followers_url":"https://api.github.com/users/davidcornu/followers","following_url":"https://api.github.com/users/davidcornu/following{/other_user}","gists_url":"https://api.github.com/users/davidcornu/gists{/gist_id}","starred_url":"https://api.github.com/users/davidcornu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidcornu/subscriptions","organizations_url":"https://api.github.com/users/davidcornu/orgs","repos_url":"https://api.github.com/users/davidcornu/repos","events_url":"https://api.github.com/users/davidcornu/events{/privacy}","received_events_url":"https://api.github.com/users/davidcornu/received_events","type":"User","site_admin":false},"body":"`@repoName`?","created_at":"2015-06-29T19:34:21Z","updated_at":"2015-06-29T19:34:21Z","html_url":"https://github.com/Shopify/shipit-engine/pull/429#discussion_r33502780","pull_request_url":"https://api.github.com/repos/Shopify/shipit-engine/pulls/429","_links":{"self":{"href":"https://api.github.com/repos/Shopify/shipit-engine/pulls/comments/33502780"},"html":{"href":"https://github.com/Shopify/shipit-engine/pull/429#discussion_r33502780"},"pull_request":{"href":"https://api.github.com/repos/Shopify/shipit-engine/pulls/429"}}},"pull_request":{"url":"https://api.github.com/repos/Shopify/shipit-engine/pulls/429","id":37807279,"html_url":"https://github.com/Shopify/shipit-engine/pull/429","diff_url":"https://github.com/Shopify/shipit-engine/pull/429.diff","patch_url":"https://github.com/Shopify/shipit-engine/pull/429.patch","issue_url":"https://api.github.com/repos/Shopify/shipit-engine/issues/429","number":429,"state":"open","locked":false,"title":"Dynamic confirm step","user":{"login":"byroot","id":44640,"avatar_url":"https://avatars.githubusercontent.com/u/44640?v=3","gravatar_id":"","url":"https://api.github.com/users/byroot","html_url":"https://github.com/byroot","followers_url":"https://api.github.com/users/byroot/followers","following_url":"https://api.github.com/users/byroot/following{/other_user}","gists_url":"https://api.github.com/users/byroot/gists{/gist_id}","starred_url":"https://api.github.com/users/byroot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/byroot/subscriptions","organizations_url":"https://api.github.com/users/byroot/orgs","repos_url":"https://api.github.com/users/byroot/repos","events_url":"https://api.github.com/users/byroot/events{/privacy}","received_events_url":"https://api.github.com/users/byroot/received_events","type":"User","site_admin":false},"body":"Fixes: https://github.com/Shopify/shipit-engine/issues/426\r\n\r\nThis is still an heavy work in progress, but I think I solved the architectural issues. I'll continue the work on this tomorrow.\r\n\r\n@wvanbergen @dalehamel FYI.","created_at":"2015-06-16T15:23:46Z","updated_at":"2015-06-29T19:34:21Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e9826da3f03d09bfe97fa67d98aa34c9f6c129e4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shopify/shipit-engine/pulls/429/commits","review_comments_url":"https://api.github.com/repos/Shopify/shipit-engine/pulls/429/comments","review_comment_url":"https://api.github.com/repos/Shopify/shipit-engine/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shopify/shipit-engine/issues/429/comments","statuses_url":"https://api.github.com/repos/Shopify/shipit-engine/statuses/2c904b4b8372e21103e05b4c4a3ddf24886f15ee","head":{"label":"Shopify:review-checks","ref":"review-checks","sha":"2c904b4b8372e21103e05b4c4a3ddf24886f15ee","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":17228890,"name":"shipit-engine","full_name":"Shopify/shipit-engine","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/shipit-engine","description":"Deployment coordination","fork":false,"url":"https://api.github.com/repos/Shopify/shipit-engine","forks_url":"https://api.github.com/repos/Shopify/shipit-engine/forks","keys_url":"https://api.github.com/repos/Shopify/shipit-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/shipit-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/shipit-engine/teams","hooks_url":"https://api.github.com/repos/Shopify/shipit-engine/hooks","issue_events_url":"https://api.github.com/repos/Shopify/shipit-engine/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/shipit-engine/events","assignees_url":"https://api.github.com/repos/Shopify/shipit-engine/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/shipit-engine/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/shipit-engine/tags","blobs_url":"https://api.github.com/repos/Shopify/shipit-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/shipit-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/shipit-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/shipit-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/shipit-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/shipit-engine/languages","stargazers_url":"https://api.github.com/repos/Shopify/shipit-engine/stargazers","contributors_url":"https://api.github.com/repos/Shopify/shipit-engine/contributors","subscribers_url":"https://api.github.com/repos/Shopify/shipit-engine/subscribers","subscription_url":"https://api.github.com/repos/Shopify/shipit-engine/subscription","commits_url":"https://api.github.com/repos/Shopify/shipit-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/shipit-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/shipit-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/shipit-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/shipit-engine/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/shipit-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/shipit-engine/merges","archive_url":"https://api.github.com/repos/Shopify/shipit-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/shipit-engine/downloads","issues_url":"https://api.github.com/repos/Shopify/shipit-engine/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/shipit-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/shipit-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/shipit-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/shipit-engine/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/shipit-engine/releases{/id}","created_at":"2014-02-26T22:59:57Z","updated_at":"2015-06-29T15:45:26Z","pushed_at":"2015-06-29T19:29:52Z","git_url":"git://github.com/Shopify/shipit-engine.git","ssh_url":"git@github.com:Shopify/shipit-engine.git","clone_url":"https://github.com/Shopify/shipit-engine.git","svn_url":"https://github.com/Shopify/shipit-engine","homepage":"https://www.shopify.com/technology/34281221-introducing-shipit","size":7240,"stargazers_count":207,"watchers_count":207,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":29,"forks":6,"open_issues":29,"watchers":207,"default_branch":"master"}},"base":{"label":"Shopify:master","ref":"master","sha":"0815aa634b10d045a47b808c600214cc933f55c2","user":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"repo":{"id":17228890,"name":"shipit-engine","full_name":"Shopify/shipit-engine","owner":{"login":"Shopify","id":8085,"avatar_url":"https://avatars.githubusercontent.com/u/8085?v=3","gravatar_id":"","url":"https://api.github.com/users/Shopify","html_url":"https://github.com/Shopify","followers_url":"https://api.github.com/users/Shopify/followers","following_url":"https://api.github.com/users/Shopify/following{/other_user}","gists_url":"https://api.github.com/users/Shopify/gists{/gist_id}","starred_url":"https://api.github.com/users/Shopify/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shopify/subscriptions","organizations_url":"https://api.github.com/users/Shopify/orgs","repos_url":"https://api.github.com/users/Shopify/repos","events_url":"https://api.github.com/users/Shopify/events{/privacy}","received_events_url":"https://api.github.com/users/Shopify/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Shopify/shipit-engine","description":"Deployment coordination","fork":false,"url":"https://api.github.com/repos/Shopify/shipit-engine","forks_url":"https://api.github.com/repos/Shopify/shipit-engine/forks","keys_url":"https://api.github.com/repos/Shopify/shipit-engine/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shopify/shipit-engine/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shopify/shipit-engine/teams","hooks_url":"https://api.github.com/repos/Shopify/shipit-engine/hooks","issue_events_url":"https://api.github.com/repos/Shopify/shipit-engine/issues/events{/number}","events_url":"https://api.github.com/repos/Shopify/shipit-engine/events","assignees_url":"https://api.github.com/repos/Shopify/shipit-engine/assignees{/user}","branches_url":"https://api.github.com/repos/Shopify/shipit-engine/branches{/branch}","tags_url":"https://api.github.com/repos/Shopify/shipit-engine/tags","blobs_url":"https://api.github.com/repos/Shopify/shipit-engine/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shopify/shipit-engine/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shopify/shipit-engine/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shopify/shipit-engine/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shopify/shipit-engine/statuses/{sha}","languages_url":"https://api.github.com/repos/Shopify/shipit-engine/languages","stargazers_url":"https://api.github.com/repos/Shopify/shipit-engine/stargazers","contributors_url":"https://api.github.com/repos/Shopify/shipit-engine/contributors","subscribers_url":"https://api.github.com/repos/Shopify/shipit-engine/subscribers","subscription_url":"https://api.github.com/repos/Shopify/shipit-engine/subscription","commits_url":"https://api.github.com/repos/Shopify/shipit-engine/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shopify/shipit-engine/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shopify/shipit-engine/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shopify/shipit-engine/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shopify/shipit-engine/contents/{+path}","compare_url":"https://api.github.com/repos/Shopify/shipit-engine/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shopify/shipit-engine/merges","archive_url":"https://api.github.com/repos/Shopify/shipit-engine/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shopify/shipit-engine/downloads","issues_url":"https://api.github.com/repos/Shopify/shipit-engine/issues{/number}","pulls_url":"https://api.github.com/repos/Shopify/shipit-engine/pulls{/number}","milestones_url":"https://api.github.com/repos/Shopify/shipit-engine/milestones{/number}","notifications_url":"https://api.github.com/repos/Shopify/shipit-engine/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shopify/shipit-engine/labels{/name}","releases_url":"https://api.github.com/repos/Shopify/shipit-engine/releases{/id}","created_at":"2014-02-26T22:59:57Z","updated_at":"2015-06-29T15:45:26Z","pushed_at":"2015-06-29T19:29:52Z","git_url":"git://github.com/Shopify/shipit-engine.git","ssh_url":"git@github.com:Shopify/shipit-engine.git","clone_url":"https://github.com/Shopify/shipit-engine.git","svn_url":"https://github.com/Shopify/shipit-engine","homepage":"https://www.shopify.com/technology/34281221-introducing-shipit","size":7240,"stargazers_count":207,"watchers_count":207,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":6,"mirror_url":null,"open_issues_count":29,"forks":6,"open_issues":29,"watchers":207,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shopify/shipit-engine/pulls/429"},"html":{"href":"https://github.com/Shopify/shipit-engine/pull/429"},"issue":{"href":"https://api.github.com/repos/Shopify/shipit-engine/issues/429"},"comments":{"href":"https://api.github.com/repos/Shopify/shipit-engine/issues/429/comments"},"review_comments":{"href":"https://api.github.com/repos/Shopify/shipit-engine/pulls/429/comments"},"review_comment":{"href":"https://api.github.com/repos/Shopify/shipit-engine/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shopify/shipit-engine/pulls/429/commits"},"statuses":{"href":"https://api.github.com/repos/Shopify/shipit-engine/statuses/2c904b4b8372e21103e05b4c4a3ddf24886f15ee"}}}}