{"action":"created","comment":{"url":"https://api.github.com/repos/cozy/cozy-home/pulls/comments/23294148","id":23294148,"diff_hunk":"@@ -22,14 +22,33 @@ checkUpdate = (notifier, app) ->\n             log.raw err\n         else if setUpdate\n             log.info \"#{app.name} - update required.\"\n-            messageKey = 'update available notification'\n-            message = localization.t messageKey, appName: app.name\n-            notifier.createTemporary\n-                text: message\n-                resource: app: 'home'\n         else\n             log.info \"#{app.name} - no update required.\"\n \n+        shouldBeUpdated = not err? and setUpdate","path":"server/initializers/updates.coffee","position":27,"original_position":27,"commit_id":"064aeeac1f2a507d199b8688082fc8544612f163","original_commit_id":"53351f1fe043dd1f08124f675fdf3725a19c8516","user":{"login":"jsilvestre","id":568111,"avatar_url":"https://avatars.githubusercontent.com/u/568111?v=3","gravatar_id":"","url":"https://api.github.com/users/jsilvestre","html_url":"https://github.com/jsilvestre","followers_url":"https://api.github.com/users/jsilvestre/followers","following_url":"https://api.github.com/users/jsilvestre/following{/other_user}","gists_url":"https://api.github.com/users/jsilvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilvestre/subscriptions","organizations_url":"https://api.github.com/users/jsilvestre/orgs","repos_url":"https://api.github.com/users/jsilvestre/repos","events_url":"https://api.github.com/users/jsilvestre/events{/privacy}","received_events_url":"https://api.github.com/users/jsilvestre/received_events","type":"User","site_admin":false},"body":"Me too, I figured that since there are no \"error\" parameter in the callback, it looks more semantic.","created_at":"2015-01-21T11:59:13Z","updated_at":"2015-01-21T11:59:13Z","html_url":"https://github.com/cozy/cozy-home/pull/260#discussion_r23294148","pull_request_url":"https://api.github.com/repos/cozy/cozy-home/pulls/260","_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-home/pulls/comments/23294148"},"html":{"href":"https://github.com/cozy/cozy-home/pull/260#discussion_r23294148"},"pull_request":{"href":"https://api.github.com/repos/cozy/cozy-home/pulls/260"}}},"pull_request":{"url":"https://api.github.com/repos/cozy/cozy-home/pulls/260","id":27108577,"html_url":"https://github.com/cozy/cozy-home/pull/260","diff_url":"https://github.com/cozy/cozy-home/pull/260.diff","patch_url":"https://github.com/cozy/cozy-home/pull/260.patch","issue_url":"https://api.github.com/repos/cozy/cozy-home/issues/260","number":260,"state":"open","locked":false,"title":"Made update notifications trigger actions","user":{"login":"jsilvestre","id":568111,"avatar_url":"https://avatars.githubusercontent.com/u/568111?v=3","gravatar_id":"","url":"https://api.github.com/users/jsilvestre","html_url":"https://github.com/jsilvestre","followers_url":"https://api.github.com/users/jsilvestre/followers","following_url":"https://api.github.com/users/jsilvestre/following{/other_user}","gists_url":"https://api.github.com/users/jsilvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilvestre/subscriptions","organizations_url":"https://api.github.com/users/jsilvestre/orgs","repos_url":"https://api.github.com/users/jsilvestre/repos","events_url":"https://api.github.com/users/jsilvestre/events{/privacy}","received_events_url":"https://api.github.com/users/jsilvestre/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-01-09T15:56:22Z","updated_at":"2015-01-21T11:59:13Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9893dbc6720fa01ac4eade740ed86cf7ce2f6f20","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cozy/cozy-home/pulls/260/commits","review_comments_url":"https://api.github.com/repos/cozy/cozy-home/pulls/260/comments","review_comment_url":"https://api.github.com/repos/cozy/cozy-home/pulls/comments/{number}","comments_url":"https://api.github.com/repos/cozy/cozy-home/issues/260/comments","statuses_url":"https://api.github.com/repos/cozy/cozy-home/statuses/064aeeac1f2a507d199b8688082fc8544612f163","head":{"label":"jsilvestre:master","ref":"master","sha":"064aeeac1f2a507d199b8688082fc8544612f163","user":{"login":"jsilvestre","id":568111,"avatar_url":"https://avatars.githubusercontent.com/u/568111?v=3","gravatar_id":"","url":"https://api.github.com/users/jsilvestre","html_url":"https://github.com/jsilvestre","followers_url":"https://api.github.com/users/jsilvestre/followers","following_url":"https://api.github.com/users/jsilvestre/following{/other_user}","gists_url":"https://api.github.com/users/jsilvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilvestre/subscriptions","organizations_url":"https://api.github.com/users/jsilvestre/orgs","repos_url":"https://api.github.com/users/jsilvestre/repos","events_url":"https://api.github.com/users/jsilvestre/events{/privacy}","received_events_url":"https://api.github.com/users/jsilvestre/received_events","type":"User","site_admin":false},"repo":{"id":20555170,"name":"cozy-home","full_name":"jsilvestre/cozy-home","owner":{"login":"jsilvestre","id":568111,"avatar_url":"https://avatars.githubusercontent.com/u/568111?v=3","gravatar_id":"","url":"https://api.github.com/users/jsilvestre","html_url":"https://github.com/jsilvestre","followers_url":"https://api.github.com/users/jsilvestre/followers","following_url":"https://api.github.com/users/jsilvestre/following{/other_user}","gists_url":"https://api.github.com/users/jsilvestre/gists{/gist_id}","starred_url":"https://api.github.com/users/jsilvestre/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsilvestre/subscriptions","organizations_url":"https://api.github.com/users/jsilvestre/orgs","repos_url":"https://api.github.com/users/jsilvestre/repos","events_url":"https://api.github.com/users/jsilvestre/events{/privacy}","received_events_url":"https://api.github.com/users/jsilvestre/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jsilvestre/cozy-home","description":"Gateway to your Cozy applications","fork":true,"url":"https://api.github.com/repos/jsilvestre/cozy-home","forks_url":"https://api.github.com/repos/jsilvestre/cozy-home/forks","keys_url":"https://api.github.com/repos/jsilvestre/cozy-home/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jsilvestre/cozy-home/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jsilvestre/cozy-home/teams","hooks_url":"https://api.github.com/repos/jsilvestre/cozy-home/hooks","issue_events_url":"https://api.github.com/repos/jsilvestre/cozy-home/issues/events{/number}","events_url":"https://api.github.com/repos/jsilvestre/cozy-home/events","assignees_url":"https://api.github.com/repos/jsilvestre/cozy-home/assignees{/user}","branches_url":"https://api.github.com/repos/jsilvestre/cozy-home/branches{/branch}","tags_url":"https://api.github.com/repos/jsilvestre/cozy-home/tags","blobs_url":"https://api.github.com/repos/jsilvestre/cozy-home/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jsilvestre/cozy-home/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jsilvestre/cozy-home/git/refs{/sha}","trees_url":"https://api.github.com/repos/jsilvestre/cozy-home/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jsilvestre/cozy-home/statuses/{sha}","languages_url":"https://api.github.com/repos/jsilvestre/cozy-home/languages","stargazers_url":"https://api.github.com/repos/jsilvestre/cozy-home/stargazers","contributors_url":"https://api.github.com/repos/jsilvestre/cozy-home/contributors","subscribers_url":"https://api.github.com/repos/jsilvestre/cozy-home/subscribers","subscription_url":"https://api.github.com/repos/jsilvestre/cozy-home/subscription","commits_url":"https://api.github.com/repos/jsilvestre/cozy-home/commits{/sha}","git_commits_url":"https://api.github.com/repos/jsilvestre/cozy-home/git/commits{/sha}","comments_url":"https://api.github.com/repos/jsilvestre/cozy-home/comments{/number}","issue_comment_url":"https://api.github.com/repos/jsilvestre/cozy-home/issues/comments/{number}","contents_url":"https://api.github.com/repos/jsilvestre/cozy-home/contents/{+path}","compare_url":"https://api.github.com/repos/jsilvestre/cozy-home/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jsilvestre/cozy-home/merges","archive_url":"https://api.github.com/repos/jsilvestre/cozy-home/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jsilvestre/cozy-home/downloads","issues_url":"https://api.github.com/repos/jsilvestre/cozy-home/issues{/number}","pulls_url":"https://api.github.com/repos/jsilvestre/cozy-home/pulls{/number}","milestones_url":"https://api.github.com/repos/jsilvestre/cozy-home/milestones{/number}","notifications_url":"https://api.github.com/repos/jsilvestre/cozy-home/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jsilvestre/cozy-home/labels{/name}","releases_url":"https://api.github.com/repos/jsilvestre/cozy-home/releases{/id}","created_at":"2014-06-06T07:32:14Z","updated_at":"2015-01-21T09:26:49Z","pushed_at":"2015-01-21T09:26:47Z","git_url":"git://github.com/jsilvestre/cozy-home.git","ssh_url":"git@github.com:jsilvestre/cozy-home.git","clone_url":"https://github.com/jsilvestre/cozy-home.git","svn_url":"https://github.com/jsilvestre/cozy-home","homepage":"https://demo.cozycloud.cc/","size":10231,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"cozy:master","ref":"master","sha":"71652c6caf6382f0d835caf8ecb479a8ac46ef53","user":{"login":"cozy","id":7690525,"avatar_url":"https://avatars.githubusercontent.com/u/7690525?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"repo":{"id":3807749,"name":"cozy-home","full_name":"cozy/cozy-home","owner":{"login":"cozy","id":7690525,"avatar_url":"https://avatars.githubusercontent.com/u/7690525?v=3","gravatar_id":"","url":"https://api.github.com/users/cozy","html_url":"https://github.com/cozy","followers_url":"https://api.github.com/users/cozy/followers","following_url":"https://api.github.com/users/cozy/following{/other_user}","gists_url":"https://api.github.com/users/cozy/gists{/gist_id}","starred_url":"https://api.github.com/users/cozy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cozy/subscriptions","organizations_url":"https://api.github.com/users/cozy/orgs","repos_url":"https://api.github.com/users/cozy/repos","events_url":"https://api.github.com/users/cozy/events{/privacy}","received_events_url":"https://api.github.com/users/cozy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cozy/cozy-home","description":"Gateway to your Cozy applications","fork":false,"url":"https://api.github.com/repos/cozy/cozy-home","forks_url":"https://api.github.com/repos/cozy/cozy-home/forks","keys_url":"https://api.github.com/repos/cozy/cozy-home/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cozy/cozy-home/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cozy/cozy-home/teams","hooks_url":"https://api.github.com/repos/cozy/cozy-home/hooks","issue_events_url":"https://api.github.com/repos/cozy/cozy-home/issues/events{/number}","events_url":"https://api.github.com/repos/cozy/cozy-home/events","assignees_url":"https://api.github.com/repos/cozy/cozy-home/assignees{/user}","branches_url":"https://api.github.com/repos/cozy/cozy-home/branches{/branch}","tags_url":"https://api.github.com/repos/cozy/cozy-home/tags","blobs_url":"https://api.github.com/repos/cozy/cozy-home/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cozy/cozy-home/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cozy/cozy-home/git/refs{/sha}","trees_url":"https://api.github.com/repos/cozy/cozy-home/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cozy/cozy-home/statuses/{sha}","languages_url":"https://api.github.com/repos/cozy/cozy-home/languages","stargazers_url":"https://api.github.com/repos/cozy/cozy-home/stargazers","contributors_url":"https://api.github.com/repos/cozy/cozy-home/contributors","subscribers_url":"https://api.github.com/repos/cozy/cozy-home/subscribers","subscription_url":"https://api.github.com/repos/cozy/cozy-home/subscription","commits_url":"https://api.github.com/repos/cozy/cozy-home/commits{/sha}","git_commits_url":"https://api.github.com/repos/cozy/cozy-home/git/commits{/sha}","comments_url":"https://api.github.com/repos/cozy/cozy-home/comments{/number}","issue_comment_url":"https://api.github.com/repos/cozy/cozy-home/issues/comments/{number}","contents_url":"https://api.github.com/repos/cozy/cozy-home/contents/{+path}","compare_url":"https://api.github.com/repos/cozy/cozy-home/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cozy/cozy-home/merges","archive_url":"https://api.github.com/repos/cozy/cozy-home/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cozy/cozy-home/downloads","issues_url":"https://api.github.com/repos/cozy/cozy-home/issues{/number}","pulls_url":"https://api.github.com/repos/cozy/cozy-home/pulls{/number}","milestones_url":"https://api.github.com/repos/cozy/cozy-home/milestones{/number}","notifications_url":"https://api.github.com/repos/cozy/cozy-home/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cozy/cozy-home/labels{/name}","releases_url":"https://api.github.com/repos/cozy/cozy-home/releases{/id}","created_at":"2012-03-23T11:40:03Z","updated_at":"2015-01-19T01:00:21Z","pushed_at":"2015-01-09T00:10:41Z","git_url":"git://github.com/cozy/cozy-home.git","ssh_url":"git@github.com:cozy/cozy-home.git","clone_url":"https://github.com/cozy/cozy-home.git","svn_url":"https://github.com/cozy/cozy-home","homepage":"https://demo.cozycloud.cc/","size":12005,"stargazers_count":51,"watchers_count":51,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":25,"mirror_url":null,"open_issues_count":18,"forks":25,"open_issues":18,"watchers":51,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cozy/cozy-home/pulls/260"},"html":{"href":"https://github.com/cozy/cozy-home/pull/260"},"issue":{"href":"https://api.github.com/repos/cozy/cozy-home/issues/260"},"comments":{"href":"https://api.github.com/repos/cozy/cozy-home/issues/260/comments"},"review_comments":{"href":"https://api.github.com/repos/cozy/cozy-home/pulls/260/comments"},"review_comment":{"href":"https://api.github.com/repos/cozy/cozy-home/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/cozy/cozy-home/pulls/260/commits"},"statuses":{"href":"https://api.github.com/repos/cozy/cozy-home/statuses/064aeeac1f2a507d199b8688082fc8544612f163"}}}}