{"action":"created","comment":{"url":"https://api.github.com/repos/DomPhysis/automation/pulls/comments/51782491","id":51782491,"diff_hunk":"@@ -0,0 +1,60 @@\n+angular.module( 'pushNotificationModule', [] ).service(\n+'pushNotificationService',\n+[ function() {\n+\tfunction setServiceWorker() {\n+\t\tvar OneSignal = OneSignal || [];\n+\t\tvar APP_ID = 'c6528eb8-bdee-48e2-baf2-5394c4b5b3b1';\n+\t\tvar APP_SUBSCRIPTION = {\n+\t\t\tappId : APP_ID\n+\t\t};\n+\n+\t\tOneSignal.push( [ 'init', getAppSubscription ] );\n+\t\tvar consoleStrValue = '';\n+\n+\t\tfunction getAppSubscription() {\n+\t\t\tif (isDevHost())\n+\t\t\t\tAPP_SUBSCRIPTION.subdomainName = 'contaazul-app11';\n+\t\t\treturn APP_SUBSCRIPTION;\n+\t\t}\n+\n+\t\tfunction isDevHost() {\n+\t\t\treturn window.location.host !== 'app.contaazul.com';\n+\t\t}\n+\n+\t\tfunction registerForPush() {\n+\t\t\tOneSignal.push( [ 'registerForPushNotifications' ] );\n+\t\t}\n+\n+\t\tOneSignal.push( [ 'addListenerForNotificationOpened', function(data) {\n+\t\t\tconsole.log( 'Received ONE\t_SIGNAL_NOTIFICATION_OPENED:' );\n+\t\t\tconsole.log( data );\n+\n+\t\t\tconsoleStrValue += 'Received ONE_SIGNAL_NOTIFICATION_OPENED:\\n\\n' + JSON.stringify( data );","path":"ca-file.js","position":32,"original_position":32,"commit_id":"129672bc8ad55c19e364196ffdd7154f7091e9e4","original_commit_id":"129672bc8ad55c19e364196ffdd7154f7091e9e4","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":"Line is too long.","created_at":"2016-02-03T20:32:19Z","updated_at":"2016-02-03T20:32:19Z","html_url":"https://github.com/DomPhysis/automation/pull/16#discussion_r51782491","pull_request_url":"https://api.github.com/repos/DomPhysis/automation/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/DomPhysis/automation/pulls/comments/51782491"},"html":{"href":"https://github.com/DomPhysis/automation/pull/16#discussion_r51782491"},"pull_request":{"href":"https://api.github.com/repos/DomPhysis/automation/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/DomPhysis/automation/pulls/16","id":56601874,"html_url":"https://github.com/DomPhysis/automation/pull/16","diff_url":"https://github.com/DomPhysis/automation/pull/16.diff","patch_url":"https://github.com/DomPhysis/automation/pull/16.patch","issue_url":"https://api.github.com/repos/DomPhysis/automation/issues/16","number":16,"state":"open","locked":false,"title":"Teste Houndci não precisa de CR","user":{"login":"negherbon","id":5859119,"avatar_url":"https://avatars.githubusercontent.com/u/5859119?v=3","gravatar_id":"","url":"https://api.github.com/users/negherbon","html_url":"https://github.com/negherbon","followers_url":"https://api.github.com/users/negherbon/followers","following_url":"https://api.github.com/users/negherbon/following{/other_user}","gists_url":"https://api.github.com/users/negherbon/gists{/gist_id}","starred_url":"https://api.github.com/users/negherbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negherbon/subscriptions","organizations_url":"https://api.github.com/users/negherbon/orgs","repos_url":"https://api.github.com/users/negherbon/repos","events_url":"https://api.github.com/users/negherbon/events{/privacy}","received_events_url":"https://api.github.com/users/negherbon/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-01-20T12:34:05Z","updated_at":"2016-02-03T20:32:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"553f93894e12719704d88427795bfd7014d69772","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/DomPhysis/automation/pulls/16/commits","review_comments_url":"https://api.github.com/repos/DomPhysis/automation/pulls/16/comments","review_comment_url":"https://api.github.com/repos/DomPhysis/automation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DomPhysis/automation/issues/16/comments","statuses_url":"https://api.github.com/repos/DomPhysis/automation/statuses/129672bc8ad55c19e364196ffdd7154f7091e9e4","head":{"label":"negherbon:houndci-test","ref":"houndci-test","sha":"129672bc8ad55c19e364196ffdd7154f7091e9e4","user":{"login":"negherbon","id":5859119,"avatar_url":"https://avatars.githubusercontent.com/u/5859119?v=3","gravatar_id":"","url":"https://api.github.com/users/negherbon","html_url":"https://github.com/negherbon","followers_url":"https://api.github.com/users/negherbon/followers","following_url":"https://api.github.com/users/negherbon/following{/other_user}","gists_url":"https://api.github.com/users/negherbon/gists{/gist_id}","starred_url":"https://api.github.com/users/negherbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negherbon/subscriptions","organizations_url":"https://api.github.com/users/negherbon/orgs","repos_url":"https://api.github.com/users/negherbon/repos","events_url":"https://api.github.com/users/negherbon/events{/privacy}","received_events_url":"https://api.github.com/users/negherbon/received_events","type":"User","site_admin":false},"repo":{"id":38822347,"name":"automation","full_name":"negherbon/automation","owner":{"login":"negherbon","id":5859119,"avatar_url":"https://avatars.githubusercontent.com/u/5859119?v=3","gravatar_id":"","url":"https://api.github.com/users/negherbon","html_url":"https://github.com/negherbon","followers_url":"https://api.github.com/users/negherbon/followers","following_url":"https://api.github.com/users/negherbon/following{/other_user}","gists_url":"https://api.github.com/users/negherbon/gists{/gist_id}","starred_url":"https://api.github.com/users/negherbon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/negherbon/subscriptions","organizations_url":"https://api.github.com/users/negherbon/orgs","repos_url":"https://api.github.com/users/negherbon/repos","events_url":"https://api.github.com/users/negherbon/events{/privacy}","received_events_url":"https://api.github.com/users/negherbon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/negherbon/automation","description":"Front-end toolkit","fork":true,"url":"https://api.github.com/repos/negherbon/automation","forks_url":"https://api.github.com/repos/negherbon/automation/forks","keys_url":"https://api.github.com/repos/negherbon/automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/negherbon/automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/negherbon/automation/teams","hooks_url":"https://api.github.com/repos/negherbon/automation/hooks","issue_events_url":"https://api.github.com/repos/negherbon/automation/issues/events{/number}","events_url":"https://api.github.com/repos/negherbon/automation/events","assignees_url":"https://api.github.com/repos/negherbon/automation/assignees{/user}","branches_url":"https://api.github.com/repos/negherbon/automation/branches{/branch}","tags_url":"https://api.github.com/repos/negherbon/automation/tags","blobs_url":"https://api.github.com/repos/negherbon/automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/negherbon/automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/negherbon/automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/negherbon/automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/negherbon/automation/statuses/{sha}","languages_url":"https://api.github.com/repos/negherbon/automation/languages","stargazers_url":"https://api.github.com/repos/negherbon/automation/stargazers","contributors_url":"https://api.github.com/repos/negherbon/automation/contributors","subscribers_url":"https://api.github.com/repos/negherbon/automation/subscribers","subscription_url":"https://api.github.com/repos/negherbon/automation/subscription","commits_url":"https://api.github.com/repos/negherbon/automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/negherbon/automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/negherbon/automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/negherbon/automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/negherbon/automation/contents/{+path}","compare_url":"https://api.github.com/repos/negherbon/automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/negherbon/automation/merges","archive_url":"https://api.github.com/repos/negherbon/automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/negherbon/automation/downloads","issues_url":"https://api.github.com/repos/negherbon/automation/issues{/number}","pulls_url":"https://api.github.com/repos/negherbon/automation/pulls{/number}","milestones_url":"https://api.github.com/repos/negherbon/automation/milestones{/number}","notifications_url":"https://api.github.com/repos/negherbon/automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/negherbon/automation/labels{/name}","releases_url":"https://api.github.com/repos/negherbon/automation/releases{/id}","deployments_url":"https://api.github.com/repos/negherbon/automation/deployments","created_at":"2015-07-09T13:34:01Z","updated_at":"2016-01-13T11:42:16Z","pushed_at":"2016-02-03T20:31:30Z","git_url":"git://github.com/negherbon/automation.git","ssh_url":"git@github.com:negherbon/automation.git","clone_url":"https://github.com/negherbon/automation.git","svn_url":"https://github.com/negherbon/automation","homepage":null,"size":27,"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":"DomPhysis:master","ref":"master","sha":"8d73100fafc5b39421c3880a0d6e6a0d45bb714a","user":{"login":"DomPhysis","id":7001214,"avatar_url":"https://avatars.githubusercontent.com/u/7001214?v=3","gravatar_id":"","url":"https://api.github.com/users/DomPhysis","html_url":"https://github.com/DomPhysis","followers_url":"https://api.github.com/users/DomPhysis/followers","following_url":"https://api.github.com/users/DomPhysis/following{/other_user}","gists_url":"https://api.github.com/users/DomPhysis/gists{/gist_id}","starred_url":"https://api.github.com/users/DomPhysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomPhysis/subscriptions","organizations_url":"https://api.github.com/users/DomPhysis/orgs","repos_url":"https://api.github.com/users/DomPhysis/repos","events_url":"https://api.github.com/users/DomPhysis/events{/privacy}","received_events_url":"https://api.github.com/users/DomPhysis/received_events","type":"Organization","site_admin":false},"repo":{"id":37285555,"name":"automation","full_name":"DomPhysis/automation","owner":{"login":"DomPhysis","id":7001214,"avatar_url":"https://avatars.githubusercontent.com/u/7001214?v=3","gravatar_id":"","url":"https://api.github.com/users/DomPhysis","html_url":"https://github.com/DomPhysis","followers_url":"https://api.github.com/users/DomPhysis/followers","following_url":"https://api.github.com/users/DomPhysis/following{/other_user}","gists_url":"https://api.github.com/users/DomPhysis/gists{/gist_id}","starred_url":"https://api.github.com/users/DomPhysis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DomPhysis/subscriptions","organizations_url":"https://api.github.com/users/DomPhysis/orgs","repos_url":"https://api.github.com/users/DomPhysis/repos","events_url":"https://api.github.com/users/DomPhysis/events{/privacy}","received_events_url":"https://api.github.com/users/DomPhysis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/DomPhysis/automation","description":"Front-end toolkit","fork":false,"url":"https://api.github.com/repos/DomPhysis/automation","forks_url":"https://api.github.com/repos/DomPhysis/automation/forks","keys_url":"https://api.github.com/repos/DomPhysis/automation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DomPhysis/automation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DomPhysis/automation/teams","hooks_url":"https://api.github.com/repos/DomPhysis/automation/hooks","issue_events_url":"https://api.github.com/repos/DomPhysis/automation/issues/events{/number}","events_url":"https://api.github.com/repos/DomPhysis/automation/events","assignees_url":"https://api.github.com/repos/DomPhysis/automation/assignees{/user}","branches_url":"https://api.github.com/repos/DomPhysis/automation/branches{/branch}","tags_url":"https://api.github.com/repos/DomPhysis/automation/tags","blobs_url":"https://api.github.com/repos/DomPhysis/automation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DomPhysis/automation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DomPhysis/automation/git/refs{/sha}","trees_url":"https://api.github.com/repos/DomPhysis/automation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DomPhysis/automation/statuses/{sha}","languages_url":"https://api.github.com/repos/DomPhysis/automation/languages","stargazers_url":"https://api.github.com/repos/DomPhysis/automation/stargazers","contributors_url":"https://api.github.com/repos/DomPhysis/automation/contributors","subscribers_url":"https://api.github.com/repos/DomPhysis/automation/subscribers","subscription_url":"https://api.github.com/repos/DomPhysis/automation/subscription","commits_url":"https://api.github.com/repos/DomPhysis/automation/commits{/sha}","git_commits_url":"https://api.github.com/repos/DomPhysis/automation/git/commits{/sha}","comments_url":"https://api.github.com/repos/DomPhysis/automation/comments{/number}","issue_comment_url":"https://api.github.com/repos/DomPhysis/automation/issues/comments{/number}","contents_url":"https://api.github.com/repos/DomPhysis/automation/contents/{+path}","compare_url":"https://api.github.com/repos/DomPhysis/automation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DomPhysis/automation/merges","archive_url":"https://api.github.com/repos/DomPhysis/automation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DomPhysis/automation/downloads","issues_url":"https://api.github.com/repos/DomPhysis/automation/issues{/number}","pulls_url":"https://api.github.com/repos/DomPhysis/automation/pulls{/number}","milestones_url":"https://api.github.com/repos/DomPhysis/automation/milestones{/number}","notifications_url":"https://api.github.com/repos/DomPhysis/automation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DomPhysis/automation/labels{/name}","releases_url":"https://api.github.com/repos/DomPhysis/automation/releases{/id}","deployments_url":"https://api.github.com/repos/DomPhysis/automation/deployments","created_at":"2015-06-11T20:51:58Z","updated_at":"2016-01-11T18:28:45Z","pushed_at":"2016-02-03T20:31:30Z","git_url":"git://github.com/DomPhysis/automation.git","ssh_url":"git@github.com:DomPhysis/automation.git","clone_url":"https://github.com/DomPhysis/automation.git","svn_url":"https://github.com/DomPhysis/automation","homepage":null,"size":26,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":5,"forks":5,"open_issues":5,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DomPhysis/automation/pulls/16"},"html":{"href":"https://github.com/DomPhysis/automation/pull/16"},"issue":{"href":"https://api.github.com/repos/DomPhysis/automation/issues/16"},"comments":{"href":"https://api.github.com/repos/DomPhysis/automation/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/DomPhysis/automation/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/DomPhysis/automation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DomPhysis/automation/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/DomPhysis/automation/statuses/129672bc8ad55c19e364196ffdd7154f7091e9e4"}}}}