{"action":"closed","number":121,"pull_request":{"url":"https://api.github.com/repos/mozilla/srihash.org/pulls/121","id":66196002,"html_url":"https://github.com/mozilla/srihash.org/pull/121","diff_url":"https://github.com/mozilla/srihash.org/pull/121.diff","patch_url":"https://github.com/mozilla/srihash.org/pull/121.patch","issue_url":"https://api.github.com/repos/mozilla/srihash.org/issues/121","number":121,"state":"closed","locked":false,"title":"Detect if the browser supports integrity via JavaScript.","user":{"login":"XhmikosR","id":349621,"avatar_url":"https://avatars.githubusercontent.com/u/349621?v=3","gravatar_id":"","url":"https://api.github.com/users/XhmikosR","html_url":"https://github.com/XhmikosR","followers_url":"https://api.github.com/users/XhmikosR/followers","following_url":"https://api.github.com/users/XhmikosR/following{/other_user}","gists_url":"https://api.github.com/users/XhmikosR/gists{/gist_id}","starred_url":"https://api.github.com/users/XhmikosR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XhmikosR/subscriptions","organizations_url":"https://api.github.com/users/XhmikosR/orgs","repos_url":"https://api.github.com/users/XhmikosR/repos","events_url":"https://api.github.com/users/XhmikosR/events{/privacy}","received_events_url":"https://api.github.com/users/XhmikosR/received_events","type":"User","site_admin":false},"body":"Some notes.\r\n\r\n1. This will obviously fail when JavaScript is disabled. Nothing will be shown in that case since the div is empty.\r\n2. `addEventListener` is IE9+. But it seems other browsers aren't supported so I just went with less code.\r\n3. Alternatively we could have the fail badge in index.html and replace its classes. Or the other way around.\r\n\r\nLet me know your thoughts. I feel this way results in much cleaner code.","created_at":"2016-04-12T17:26:08Z","updated_at":"2016-04-18T21:58:15Z","closed_at":"2016-04-18T21:58:15Z","merged_at":null,"merge_commit_sha":"5f10909c77c15f90b0b6bd690923ea614a4e662d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/mozilla/srihash.org/pulls/121/commits","review_comments_url":"https://api.github.com/repos/mozilla/srihash.org/pulls/121/comments","review_comment_url":"https://api.github.com/repos/mozilla/srihash.org/pulls/comments{/number}","comments_url":"https://api.github.com/repos/mozilla/srihash.org/issues/121/comments","statuses_url":"https://api.github.com/repos/mozilla/srihash.org/statuses/5431ce1727dc16c29904b204f010ce8975855f1b","head":{"label":"XhmikosR:detect-integrity","ref":"detect-integrity","sha":"5431ce1727dc16c29904b204f010ce8975855f1b","user":{"login":"XhmikosR","id":349621,"avatar_url":"https://avatars.githubusercontent.com/u/349621?v=3","gravatar_id":"","url":"https://api.github.com/users/XhmikosR","html_url":"https://github.com/XhmikosR","followers_url":"https://api.github.com/users/XhmikosR/followers","following_url":"https://api.github.com/users/XhmikosR/following{/other_user}","gists_url":"https://api.github.com/users/XhmikosR/gists{/gist_id}","starred_url":"https://api.github.com/users/XhmikosR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XhmikosR/subscriptions","organizations_url":"https://api.github.com/users/XhmikosR/orgs","repos_url":"https://api.github.com/users/XhmikosR/repos","events_url":"https://api.github.com/users/XhmikosR/events{/privacy}","received_events_url":"https://api.github.com/users/XhmikosR/received_events","type":"User","site_admin":false},"repo":{"id":55970946,"name":"srihash.org","full_name":"XhmikosR/srihash.org","owner":{"login":"XhmikosR","id":349621,"avatar_url":"https://avatars.githubusercontent.com/u/349621?v=3","gravatar_id":"","url":"https://api.github.com/users/XhmikosR","html_url":"https://github.com/XhmikosR","followers_url":"https://api.github.com/users/XhmikosR/followers","following_url":"https://api.github.com/users/XhmikosR/following{/other_user}","gists_url":"https://api.github.com/users/XhmikosR/gists{/gist_id}","starred_url":"https://api.github.com/users/XhmikosR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XhmikosR/subscriptions","organizations_url":"https://api.github.com/users/XhmikosR/orgs","repos_url":"https://api.github.com/users/XhmikosR/repos","events_url":"https://api.github.com/users/XhmikosR/events{/privacy}","received_events_url":"https://api.github.com/users/XhmikosR/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XhmikosR/srihash.org","description":"SRI Hash Generator","fork":true,"url":"https://api.github.com/repos/XhmikosR/srihash.org","forks_url":"https://api.github.com/repos/XhmikosR/srihash.org/forks","keys_url":"https://api.github.com/repos/XhmikosR/srihash.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XhmikosR/srihash.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XhmikosR/srihash.org/teams","hooks_url":"https://api.github.com/repos/XhmikosR/srihash.org/hooks","issue_events_url":"https://api.github.com/repos/XhmikosR/srihash.org/issues/events{/number}","events_url":"https://api.github.com/repos/XhmikosR/srihash.org/events","assignees_url":"https://api.github.com/repos/XhmikosR/srihash.org/assignees{/user}","branches_url":"https://api.github.com/repos/XhmikosR/srihash.org/branches{/branch}","tags_url":"https://api.github.com/repos/XhmikosR/srihash.org/tags","blobs_url":"https://api.github.com/repos/XhmikosR/srihash.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XhmikosR/srihash.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XhmikosR/srihash.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/XhmikosR/srihash.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XhmikosR/srihash.org/statuses/{sha}","languages_url":"https://api.github.com/repos/XhmikosR/srihash.org/languages","stargazers_url":"https://api.github.com/repos/XhmikosR/srihash.org/stargazers","contributors_url":"https://api.github.com/repos/XhmikosR/srihash.org/contributors","subscribers_url":"https://api.github.com/repos/XhmikosR/srihash.org/subscribers","subscription_url":"https://api.github.com/repos/XhmikosR/srihash.org/subscription","commits_url":"https://api.github.com/repos/XhmikosR/srihash.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/XhmikosR/srihash.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/XhmikosR/srihash.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/XhmikosR/srihash.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/XhmikosR/srihash.org/contents/{+path}","compare_url":"https://api.github.com/repos/XhmikosR/srihash.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XhmikosR/srihash.org/merges","archive_url":"https://api.github.com/repos/XhmikosR/srihash.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XhmikosR/srihash.org/downloads","issues_url":"https://api.github.com/repos/XhmikosR/srihash.org/issues{/number}","pulls_url":"https://api.github.com/repos/XhmikosR/srihash.org/pulls{/number}","milestones_url":"https://api.github.com/repos/XhmikosR/srihash.org/milestones{/number}","notifications_url":"https://api.github.com/repos/XhmikosR/srihash.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XhmikosR/srihash.org/labels{/name}","releases_url":"https://api.github.com/repos/XhmikosR/srihash.org/releases{/id}","deployments_url":"https://api.github.com/repos/XhmikosR/srihash.org/deployments","created_at":"2016-04-11T12:36:03Z","updated_at":"2016-04-11T12:36:05Z","pushed_at":"2016-04-12T17:44:39Z","git_url":"git://github.com/XhmikosR/srihash.org.git","ssh_url":"git@github.com:XhmikosR/srihash.org.git","clone_url":"https://github.com/XhmikosR/srihash.org.git","svn_url":"https://github.com/XhmikosR/srihash.org","homepage":"https://srihash.org","size":163,"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":"mozilla:master","ref":"master","sha":"39137aba5d49f8144621e9306fb2f2d4b4ecbdee","user":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"repo":{"id":29516894,"name":"srihash.org","full_name":"mozilla/srihash.org","owner":{"login":"mozilla","id":131524,"avatar_url":"https://avatars.githubusercontent.com/u/131524?v=3","gravatar_id":"","url":"https://api.github.com/users/mozilla","html_url":"https://github.com/mozilla","followers_url":"https://api.github.com/users/mozilla/followers","following_url":"https://api.github.com/users/mozilla/following{/other_user}","gists_url":"https://api.github.com/users/mozilla/gists{/gist_id}","starred_url":"https://api.github.com/users/mozilla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mozilla/subscriptions","organizations_url":"https://api.github.com/users/mozilla/orgs","repos_url":"https://api.github.com/users/mozilla/repos","events_url":"https://api.github.com/users/mozilla/events{/privacy}","received_events_url":"https://api.github.com/users/mozilla/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/mozilla/srihash.org","description":"SRI Hash Generator","fork":false,"url":"https://api.github.com/repos/mozilla/srihash.org","forks_url":"https://api.github.com/repos/mozilla/srihash.org/forks","keys_url":"https://api.github.com/repos/mozilla/srihash.org/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mozilla/srihash.org/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mozilla/srihash.org/teams","hooks_url":"https://api.github.com/repos/mozilla/srihash.org/hooks","issue_events_url":"https://api.github.com/repos/mozilla/srihash.org/issues/events{/number}","events_url":"https://api.github.com/repos/mozilla/srihash.org/events","assignees_url":"https://api.github.com/repos/mozilla/srihash.org/assignees{/user}","branches_url":"https://api.github.com/repos/mozilla/srihash.org/branches{/branch}","tags_url":"https://api.github.com/repos/mozilla/srihash.org/tags","blobs_url":"https://api.github.com/repos/mozilla/srihash.org/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mozilla/srihash.org/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mozilla/srihash.org/git/refs{/sha}","trees_url":"https://api.github.com/repos/mozilla/srihash.org/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mozilla/srihash.org/statuses/{sha}","languages_url":"https://api.github.com/repos/mozilla/srihash.org/languages","stargazers_url":"https://api.github.com/repos/mozilla/srihash.org/stargazers","contributors_url":"https://api.github.com/repos/mozilla/srihash.org/contributors","subscribers_url":"https://api.github.com/repos/mozilla/srihash.org/subscribers","subscription_url":"https://api.github.com/repos/mozilla/srihash.org/subscription","commits_url":"https://api.github.com/repos/mozilla/srihash.org/commits{/sha}","git_commits_url":"https://api.github.com/repos/mozilla/srihash.org/git/commits{/sha}","comments_url":"https://api.github.com/repos/mozilla/srihash.org/comments{/number}","issue_comment_url":"https://api.github.com/repos/mozilla/srihash.org/issues/comments{/number}","contents_url":"https://api.github.com/repos/mozilla/srihash.org/contents/{+path}","compare_url":"https://api.github.com/repos/mozilla/srihash.org/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mozilla/srihash.org/merges","archive_url":"https://api.github.com/repos/mozilla/srihash.org/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mozilla/srihash.org/downloads","issues_url":"https://api.github.com/repos/mozilla/srihash.org/issues{/number}","pulls_url":"https://api.github.com/repos/mozilla/srihash.org/pulls{/number}","milestones_url":"https://api.github.com/repos/mozilla/srihash.org/milestones{/number}","notifications_url":"https://api.github.com/repos/mozilla/srihash.org/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mozilla/srihash.org/labels{/name}","releases_url":"https://api.github.com/repos/mozilla/srihash.org/releases{/id}","deployments_url":"https://api.github.com/repos/mozilla/srihash.org/deployments","created_at":"2015-01-20T07:12:04Z","updated_at":"2016-04-11T12:36:01Z","pushed_at":"2016-04-15T08:18:57Z","git_url":"git://github.com/mozilla/srihash.org.git","ssh_url":"git@github.com:mozilla/srihash.org.git","clone_url":"https://github.com/mozilla/srihash.org.git","svn_url":"https://github.com/mozilla/srihash.org","homepage":"https://srihash.org","size":195,"stargazers_count":17,"watchers_count":17,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":10,"mirror_url":null,"open_issues_count":13,"forks":10,"open_issues":13,"watchers":17,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/mozilla/srihash.org/pulls/121"},"html":{"href":"https://github.com/mozilla/srihash.org/pull/121"},"issue":{"href":"https://api.github.com/repos/mozilla/srihash.org/issues/121"},"comments":{"href":"https://api.github.com/repos/mozilla/srihash.org/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/mozilla/srihash.org/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/mozilla/srihash.org/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/mozilla/srihash.org/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/mozilla/srihash.org/statuses/5431ce1727dc16c29904b204f010ce8975855f1b"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":5,"review_comments":0,"commits":1,"additions":43,"deletions":47,"changed_files":6}}