{"action":"created","comment":{"url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/comments/34345975","id":34345975,"diff_hunk":"@@ -1,6 +1,11 @@\n (function () {\n \t'use strict';\n \n+\tfunction createNotificationId() {\n+\t\tvar id = Math.floor(Math.random() * 9007199254740992) + 1;","path":"extension/main.js","position":5,"original_position":5,"commit_id":"bda8a65d9e0393e1d80991f5fca268806e0627b5","original_commit_id":"bda8a65d9e0393e1d80991f5fca268806e0627b5","user":{"login":"inikulin","id":453071,"avatar_url":"https://avatars.githubusercontent.com/u/453071?v=3","gravatar_id":"","url":"https://api.github.com/users/inikulin","html_url":"https://github.com/inikulin","followers_url":"https://api.github.com/users/inikulin/followers","following_url":"https://api.github.com/users/inikulin/following{/other_user}","gists_url":"https://api.github.com/users/inikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/inikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inikulin/subscriptions","organizations_url":"https://api.github.com/users/inikulin/orgs","repos_url":"https://api.github.com/users/inikulin/repos","events_url":"https://api.github.com/users/inikulin/events{/privacy}","received_events_url":"https://api.github.com/users/inikulin/received_events","type":"User","site_admin":false},"body":"It's not clear from the docs if notification ID should be unique. Therefore I just took this snippet from the example in docs.","created_at":"2015-07-10T11:12:33Z","updated_at":"2015-07-10T11:12:33Z","html_url":"https://github.com/sindresorhus/github-notifier-chrome/pull/25#discussion_r34345975","pull_request_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/comments/34345975"},"html":{"href":"https://github.com/sindresorhus/github-notifier-chrome/pull/25#discussion_r34345975"},"pull_request":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/25","id":39369179,"html_url":"https://github.com/sindresorhus/github-notifier-chrome/pull/25","diff_url":"https://github.com/sindresorhus/github-notifier-chrome/pull/25.diff","patch_url":"https://github.com/sindresorhus/github-notifier-chrome/pull/25.patch","issue_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/issues/25","number":25,"state":"open","locked":false,"title":"Desktop notifications (fixes #12)","user":{"login":"inikulin","id":453071,"avatar_url":"https://avatars.githubusercontent.com/u/453071?v=3","gravatar_id":"","url":"https://api.github.com/users/inikulin","html_url":"https://github.com/inikulin","followers_url":"https://api.github.com/users/inikulin/followers","following_url":"https://api.github.com/users/inikulin/following{/other_user}","gists_url":"https://api.github.com/users/inikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/inikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inikulin/subscriptions","organizations_url":"https://api.github.com/users/inikulin/orgs","repos_url":"https://api.github.com/users/inikulin/repos","events_url":"https://api.github.com/users/inikulin/events{/privacy}","received_events_url":"https://api.github.com/users/inikulin/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-07-07T13:23:51Z","updated_at":"2015-07-10T11:12:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"649a11e1ff0ae9f7ad4754c47dc1d4b3c684ed43","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/25/commits","review_comments_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/25/comments","review_comment_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/issues/25/comments","statuses_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/statuses/bda8a65d9e0393e1d80991f5fca268806e0627b5","head":{"label":"inikulin:master","ref":"master","sha":"bda8a65d9e0393e1d80991f5fca268806e0627b5","user":{"login":"inikulin","id":453071,"avatar_url":"https://avatars.githubusercontent.com/u/453071?v=3","gravatar_id":"","url":"https://api.github.com/users/inikulin","html_url":"https://github.com/inikulin","followers_url":"https://api.github.com/users/inikulin/followers","following_url":"https://api.github.com/users/inikulin/following{/other_user}","gists_url":"https://api.github.com/users/inikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/inikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inikulin/subscriptions","organizations_url":"https://api.github.com/users/inikulin/orgs","repos_url":"https://api.github.com/users/inikulin/repos","events_url":"https://api.github.com/users/inikulin/events{/privacy}","received_events_url":"https://api.github.com/users/inikulin/received_events","type":"User","site_admin":false},"repo":{"id":38685918,"name":"github-notifier-chrome","full_name":"inikulin/github-notifier-chrome","owner":{"login":"inikulin","id":453071,"avatar_url":"https://avatars.githubusercontent.com/u/453071?v=3","gravatar_id":"","url":"https://api.github.com/users/inikulin","html_url":"https://github.com/inikulin","followers_url":"https://api.github.com/users/inikulin/followers","following_url":"https://api.github.com/users/inikulin/following{/other_user}","gists_url":"https://api.github.com/users/inikulin/gists{/gist_id}","starred_url":"https://api.github.com/users/inikulin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/inikulin/subscriptions","organizations_url":"https://api.github.com/users/inikulin/orgs","repos_url":"https://api.github.com/users/inikulin/repos","events_url":"https://api.github.com/users/inikulin/events{/privacy}","received_events_url":"https://api.github.com/users/inikulin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/inikulin/github-notifier-chrome","description":"Chrome/Opera extension - Displays your GitHub notifications unread count","fork":true,"url":"https://api.github.com/repos/inikulin/github-notifier-chrome","forks_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/forks","keys_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/teams","hooks_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/hooks","issue_events_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/issues/events{/number}","events_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/events","assignees_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/assignees{/user}","branches_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/branches{/branch}","tags_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/tags","blobs_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/git/refs{/sha}","trees_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/statuses/{sha}","languages_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/languages","stargazers_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/stargazers","contributors_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/contributors","subscribers_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/subscribers","subscription_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/subscription","commits_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/commits{/sha}","git_commits_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/git/commits{/sha}","comments_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/comments{/number}","issue_comment_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/issues/comments{/number}","contents_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/contents/{+path}","compare_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/merges","archive_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/downloads","issues_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/issues{/number}","pulls_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/pulls{/number}","milestones_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/milestones{/number}","notifications_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/labels{/name}","releases_url":"https://api.github.com/repos/inikulin/github-notifier-chrome/releases{/id}","created_at":"2015-07-07T12:23:49Z","updated_at":"2015-07-07T12:23:50Z","pushed_at":"2015-07-07T13:30:33Z","git_url":"git://github.com/inikulin/github-notifier-chrome.git","ssh_url":"git@github.com:inikulin/github-notifier-chrome.git","clone_url":"https://github.com/inikulin/github-notifier-chrome.git","svn_url":"https://github.com/inikulin/github-notifier-chrome","homepage":"","size":1167,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"sindresorhus:master","ref":"master","sha":"253143c55cc6ede452c92a5f24e3a623714ac3cb","user":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"repo":{"id":18894771,"name":"github-notifier-chrome","full_name":"sindresorhus/github-notifier-chrome","owner":{"login":"sindresorhus","id":170270,"avatar_url":"https://avatars.githubusercontent.com/u/170270?v=3","gravatar_id":"","url":"https://api.github.com/users/sindresorhus","html_url":"https://github.com/sindresorhus","followers_url":"https://api.github.com/users/sindresorhus/followers","following_url":"https://api.github.com/users/sindresorhus/following{/other_user}","gists_url":"https://api.github.com/users/sindresorhus/gists{/gist_id}","starred_url":"https://api.github.com/users/sindresorhus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sindresorhus/subscriptions","organizations_url":"https://api.github.com/users/sindresorhus/orgs","repos_url":"https://api.github.com/users/sindresorhus/repos","events_url":"https://api.github.com/users/sindresorhus/events{/privacy}","received_events_url":"https://api.github.com/users/sindresorhus/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sindresorhus/github-notifier-chrome","description":"Chrome/Opera extension - Displays your GitHub notifications unread count","fork":false,"url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome","forks_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/forks","keys_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/teams","hooks_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/hooks","issue_events_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/issues/events{/number}","events_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/events","assignees_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/assignees{/user}","branches_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/branches{/branch}","tags_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/tags","blobs_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/git/refs{/sha}","trees_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/statuses/{sha}","languages_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/languages","stargazers_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/stargazers","contributors_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/contributors","subscribers_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/subscribers","subscription_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/subscription","commits_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/commits{/sha}","git_commits_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/git/commits{/sha}","comments_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/comments{/number}","issue_comment_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/issues/comments{/number}","contents_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/contents/{+path}","compare_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/merges","archive_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/downloads","issues_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/issues{/number}","pulls_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls{/number}","milestones_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/milestones{/number}","notifications_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/labels{/name}","releases_url":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/releases{/id}","created_at":"2014-04-17T21:59:59Z","updated_at":"2015-07-09T05:41:18Z","pushed_at":"2015-07-08T05:13:49Z","git_url":"git://github.com/sindresorhus/github-notifier-chrome.git","ssh_url":"git@github.com:sindresorhus/github-notifier-chrome.git","clone_url":"https://github.com/sindresorhus/github-notifier-chrome.git","svn_url":"https://github.com/sindresorhus/github-notifier-chrome","homepage":"","size":1537,"stargazers_count":131,"watchers_count":131,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":18,"mirror_url":null,"open_issues_count":6,"forks":18,"open_issues":6,"watchers":131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/25"},"html":{"href":"https://github.com/sindresorhus/github-notifier-chrome/pull/25"},"issue":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/issues/25"},"comments":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/sindresorhus/github-notifier-chrome/statuses/bda8a65d9e0393e1d80991f5fca268806e0627b5"}}}}