{"action":"created","comment":{"url":"https://api.github.com/repos/brockinit/aws-wiki/pulls/comments/201101498","pull_request_review_id":135537522,"id":201101498,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTEwMTQ5OA==","diff_hunk":"@@ -25,46 +25,47 @@ function hex(buffer) {\n \n function fetchNotes(pageId) {\n   const getNotesUrl = `https://xc56ahkj9l.execute-api.us-west-2.amazonaws.com/development/documentation/${pageId}/notes`;\n-  return fetch(getNotesUrl)\n-    .then((result) => {\n-      return result.json();\n-    });\n+  return fetch(getNotesUrl).then(result => {\n+    return result.json();\n+  });\n }\n \n-function addNoteToPage(noteBody) {\n+function addNoteToPage() {\n   const postNoteUrl = `https://xc56ahkj9l.execute-api.us-west-2.amazonaws.com/development/documentation/${pageId}/notes`;\n   return fetch(postNoteUrl, {\n     method: \"POST\",\n     headers: {\n       \"Content-Type\": \"application/json; charset=utf-8\"\n-    },\n-    body: JSON.stringify({ noteBody })\n-  })\n-    .then((result) => {\n-      return result.json();\n-    });\n+    }\n+  }).then(result => {\n+    return result.json();\n+  });\n }\n \n function appendNoteToElement(el, noteBody) {\n-  el.insertAdjacentHTML(\n-    \"beforebegin\",\n-    `<div>${noteBody}</div>`\n-  );\n+  let iconURL = chrome.extension.getURL(\"/icon.png\");","path":"awsWiki/content.js","position":63,"original_position":63,"commit_id":"20b85db4fbf985950ff36dcd16bd302752feec22","original_commit_id":"20b85db4fbf985950ff36dcd16bd302752feec22","user":{"login":"brockinit","id":11274285,"node_id":"MDQ6VXNlcjExMjc0Mjg1","avatar_url":"https://avatars1.githubusercontent.com/u/11274285?v=4","gravatar_id":"","url":"https://api.github.com/users/brockinit","html_url":"https://github.com/brockinit","followers_url":"https://api.github.com/users/brockinit/followers","following_url":"https://api.github.com/users/brockinit/following{/other_user}","gists_url":"https://api.github.com/users/brockinit/gists{/gist_id}","starred_url":"https://api.github.com/users/brockinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockinit/subscriptions","organizations_url":"https://api.github.com/users/brockinit/orgs","repos_url":"https://api.github.com/users/brockinit/repos","events_url":"https://api.github.com/users/brockinit/events{/privacy}","received_events_url":"https://api.github.com/users/brockinit/received_events","type":"User","site_admin":false},"body":"Use `const`","created_at":"2018-07-09T18:23:53Z","updated_at":"2018-07-09T18:23:53Z","html_url":"https://github.com/brockinit/aws-wiki/pull/21#discussion_r201101498","pull_request_url":"https://api.github.com/repos/brockinit/aws-wiki/pulls/21","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/brockinit/aws-wiki/pulls/comments/201101498"},"html":{"href":"https://github.com/brockinit/aws-wiki/pull/21#discussion_r201101498"},"pull_request":{"href":"https://api.github.com/repos/brockinit/aws-wiki/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/brockinit/aws-wiki/pulls/21","id":200179953,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMTc5OTUz","html_url":"https://github.com/brockinit/aws-wiki/pull/21","diff_url":"https://github.com/brockinit/aws-wiki/pull/21.diff","patch_url":"https://github.com/brockinit/aws-wiki/pull/21.patch","issue_url":"https://api.github.com/repos/brockinit/aws-wiki/issues/21","number":21,"state":"open","locked":false,"title":"Adding clickable icon to page","user":{"login":"andimiya","id":20802421,"node_id":"MDQ6VXNlcjIwODAyNDIx","avatar_url":"https://avatars2.githubusercontent.com/u/20802421?v=4","gravatar_id":"","url":"https://api.github.com/users/andimiya","html_url":"https://github.com/andimiya","followers_url":"https://api.github.com/users/andimiya/followers","following_url":"https://api.github.com/users/andimiya/following{/other_user}","gists_url":"https://api.github.com/users/andimiya/gists{/gist_id}","starred_url":"https://api.github.com/users/andimiya/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andimiya/subscriptions","organizations_url":"https://api.github.com/users/andimiya/orgs","repos_url":"https://api.github.com/users/andimiya/repos","events_url":"https://api.github.com/users/andimiya/events{/privacy}","received_events_url":"https://api.github.com/users/andimiya/received_events","type":"User","site_admin":false},"body":"Adds an icon to the page if there is a note available. \r\nClicking on the icon shows the Note Body.","created_at":"2018-07-09T18:17:10Z","updated_at":"2018-07-09T18:23:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c872f872bd1519c8d58aabc9c82fede034ba462c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/brockinit/aws-wiki/pulls/21/commits","review_comments_url":"https://api.github.com/repos/brockinit/aws-wiki/pulls/21/comments","review_comment_url":"https://api.github.com/repos/brockinit/aws-wiki/pulls/comments{/number}","comments_url":"https://api.github.com/repos/brockinit/aws-wiki/issues/21/comments","statuses_url":"https://api.github.com/repos/brockinit/aws-wiki/statuses/20b85db4fbf985950ff36dcd16bd302752feec22","head":{"label":"brockinit:adding-clickable-icon-to-page","ref":"adding-clickable-icon-to-page","sha":"20b85db4fbf985950ff36dcd16bd302752feec22","user":{"login":"brockinit","id":11274285,"node_id":"MDQ6VXNlcjExMjc0Mjg1","avatar_url":"https://avatars1.githubusercontent.com/u/11274285?v=4","gravatar_id":"","url":"https://api.github.com/users/brockinit","html_url":"https://github.com/brockinit","followers_url":"https://api.github.com/users/brockinit/followers","following_url":"https://api.github.com/users/brockinit/following{/other_user}","gists_url":"https://api.github.com/users/brockinit/gists{/gist_id}","starred_url":"https://api.github.com/users/brockinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockinit/subscriptions","organizations_url":"https://api.github.com/users/brockinit/orgs","repos_url":"https://api.github.com/users/brockinit/repos","events_url":"https://api.github.com/users/brockinit/events{/privacy}","received_events_url":"https://api.github.com/users/brockinit/received_events","type":"User","site_admin":false},"repo":{"id":140119376,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAxMTkzNzY=","name":"aws-wiki","full_name":"brockinit/aws-wiki","owner":{"login":"brockinit","id":11274285,"node_id":"MDQ6VXNlcjExMjc0Mjg1","avatar_url":"https://avatars1.githubusercontent.com/u/11274285?v=4","gravatar_id":"","url":"https://api.github.com/users/brockinit","html_url":"https://github.com/brockinit","followers_url":"https://api.github.com/users/brockinit/followers","following_url":"https://api.github.com/users/brockinit/following{/other_user}","gists_url":"https://api.github.com/users/brockinit/gists{/gist_id}","starred_url":"https://api.github.com/users/brockinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockinit/subscriptions","organizations_url":"https://api.github.com/users/brockinit/orgs","repos_url":"https://api.github.com/users/brockinit/repos","events_url":"https://api.github.com/users/brockinit/events{/privacy}","received_events_url":"https://api.github.com/users/brockinit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brockinit/aws-wiki","description":"A living, breathing wiki providing human friendly AWS documention ","fork":false,"url":"https://api.github.com/repos/brockinit/aws-wiki","forks_url":"https://api.github.com/repos/brockinit/aws-wiki/forks","keys_url":"https://api.github.com/repos/brockinit/aws-wiki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brockinit/aws-wiki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brockinit/aws-wiki/teams","hooks_url":"https://api.github.com/repos/brockinit/aws-wiki/hooks","issue_events_url":"https://api.github.com/repos/brockinit/aws-wiki/issues/events{/number}","events_url":"https://api.github.com/repos/brockinit/aws-wiki/events","assignees_url":"https://api.github.com/repos/brockinit/aws-wiki/assignees{/user}","branches_url":"https://api.github.com/repos/brockinit/aws-wiki/branches{/branch}","tags_url":"https://api.github.com/repos/brockinit/aws-wiki/tags","blobs_url":"https://api.github.com/repos/brockinit/aws-wiki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brockinit/aws-wiki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brockinit/aws-wiki/git/refs{/sha}","trees_url":"https://api.github.com/repos/brockinit/aws-wiki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brockinit/aws-wiki/statuses/{sha}","languages_url":"https://api.github.com/repos/brockinit/aws-wiki/languages","stargazers_url":"https://api.github.com/repos/brockinit/aws-wiki/stargazers","contributors_url":"https://api.github.com/repos/brockinit/aws-wiki/contributors","subscribers_url":"https://api.github.com/repos/brockinit/aws-wiki/subscribers","subscription_url":"https://api.github.com/repos/brockinit/aws-wiki/subscription","commits_url":"https://api.github.com/repos/brockinit/aws-wiki/commits{/sha}","git_commits_url":"https://api.github.com/repos/brockinit/aws-wiki/git/commits{/sha}","comments_url":"https://api.github.com/repos/brockinit/aws-wiki/comments{/number}","issue_comment_url":"https://api.github.com/repos/brockinit/aws-wiki/issues/comments{/number}","contents_url":"https://api.github.com/repos/brockinit/aws-wiki/contents/{+path}","compare_url":"https://api.github.com/repos/brockinit/aws-wiki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brockinit/aws-wiki/merges","archive_url":"https://api.github.com/repos/brockinit/aws-wiki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brockinit/aws-wiki/downloads","issues_url":"https://api.github.com/repos/brockinit/aws-wiki/issues{/number}","pulls_url":"https://api.github.com/repos/brockinit/aws-wiki/pulls{/number}","milestones_url":"https://api.github.com/repos/brockinit/aws-wiki/milestones{/number}","notifications_url":"https://api.github.com/repos/brockinit/aws-wiki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brockinit/aws-wiki/labels{/name}","releases_url":"https://api.github.com/repos/brockinit/aws-wiki/releases{/id}","deployments_url":"https://api.github.com/repos/brockinit/aws-wiki/deployments","created_at":"2018-07-07T22:00:16Z","updated_at":"2018-07-09T09:45:44Z","pushed_at":"2018-07-09T18:17:11Z","git_url":"git://github.com/brockinit/aws-wiki.git","ssh_url":"git@github.com:brockinit/aws-wiki.git","clone_url":"https://github.com/brockinit/aws-wiki.git","svn_url":"https://github.com/brockinit/aws-wiki","homepage":null,"size":5565,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":3,"default_branch":"master"}},"base":{"label":"brockinit:master","ref":"master","sha":"2d6460e04ecbbe347b1334abfd540ff8c2810aa0","user":{"login":"brockinit","id":11274285,"node_id":"MDQ6VXNlcjExMjc0Mjg1","avatar_url":"https://avatars1.githubusercontent.com/u/11274285?v=4","gravatar_id":"","url":"https://api.github.com/users/brockinit","html_url":"https://github.com/brockinit","followers_url":"https://api.github.com/users/brockinit/followers","following_url":"https://api.github.com/users/brockinit/following{/other_user}","gists_url":"https://api.github.com/users/brockinit/gists{/gist_id}","starred_url":"https://api.github.com/users/brockinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockinit/subscriptions","organizations_url":"https://api.github.com/users/brockinit/orgs","repos_url":"https://api.github.com/users/brockinit/repos","events_url":"https://api.github.com/users/brockinit/events{/privacy}","received_events_url":"https://api.github.com/users/brockinit/received_events","type":"User","site_admin":false},"repo":{"id":140119376,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAxMTkzNzY=","name":"aws-wiki","full_name":"brockinit/aws-wiki","owner":{"login":"brockinit","id":11274285,"node_id":"MDQ6VXNlcjExMjc0Mjg1","avatar_url":"https://avatars1.githubusercontent.com/u/11274285?v=4","gravatar_id":"","url":"https://api.github.com/users/brockinit","html_url":"https://github.com/brockinit","followers_url":"https://api.github.com/users/brockinit/followers","following_url":"https://api.github.com/users/brockinit/following{/other_user}","gists_url":"https://api.github.com/users/brockinit/gists{/gist_id}","starred_url":"https://api.github.com/users/brockinit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brockinit/subscriptions","organizations_url":"https://api.github.com/users/brockinit/orgs","repos_url":"https://api.github.com/users/brockinit/repos","events_url":"https://api.github.com/users/brockinit/events{/privacy}","received_events_url":"https://api.github.com/users/brockinit/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/brockinit/aws-wiki","description":"A living, breathing wiki providing human friendly AWS documention ","fork":false,"url":"https://api.github.com/repos/brockinit/aws-wiki","forks_url":"https://api.github.com/repos/brockinit/aws-wiki/forks","keys_url":"https://api.github.com/repos/brockinit/aws-wiki/keys{/key_id}","collaborators_url":"https://api.github.com/repos/brockinit/aws-wiki/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/brockinit/aws-wiki/teams","hooks_url":"https://api.github.com/repos/brockinit/aws-wiki/hooks","issue_events_url":"https://api.github.com/repos/brockinit/aws-wiki/issues/events{/number}","events_url":"https://api.github.com/repos/brockinit/aws-wiki/events","assignees_url":"https://api.github.com/repos/brockinit/aws-wiki/assignees{/user}","branches_url":"https://api.github.com/repos/brockinit/aws-wiki/branches{/branch}","tags_url":"https://api.github.com/repos/brockinit/aws-wiki/tags","blobs_url":"https://api.github.com/repos/brockinit/aws-wiki/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/brockinit/aws-wiki/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/brockinit/aws-wiki/git/refs{/sha}","trees_url":"https://api.github.com/repos/brockinit/aws-wiki/git/trees{/sha}","statuses_url":"https://api.github.com/repos/brockinit/aws-wiki/statuses/{sha}","languages_url":"https://api.github.com/repos/brockinit/aws-wiki/languages","stargazers_url":"https://api.github.com/repos/brockinit/aws-wiki/stargazers","contributors_url":"https://api.github.com/repos/brockinit/aws-wiki/contributors","subscribers_url":"https://api.github.com/repos/brockinit/aws-wiki/subscribers","subscription_url":"https://api.github.com/repos/brockinit/aws-wiki/subscription","commits_url":"https://api.github.com/repos/brockinit/aws-wiki/commits{/sha}","git_commits_url":"https://api.github.com/repos/brockinit/aws-wiki/git/commits{/sha}","comments_url":"https://api.github.com/repos/brockinit/aws-wiki/comments{/number}","issue_comment_url":"https://api.github.com/repos/brockinit/aws-wiki/issues/comments{/number}","contents_url":"https://api.github.com/repos/brockinit/aws-wiki/contents/{+path}","compare_url":"https://api.github.com/repos/brockinit/aws-wiki/compare/{base}...{head}","merges_url":"https://api.github.com/repos/brockinit/aws-wiki/merges","archive_url":"https://api.github.com/repos/brockinit/aws-wiki/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/brockinit/aws-wiki/downloads","issues_url":"https://api.github.com/repos/brockinit/aws-wiki/issues{/number}","pulls_url":"https://api.github.com/repos/brockinit/aws-wiki/pulls{/number}","milestones_url":"https://api.github.com/repos/brockinit/aws-wiki/milestones{/number}","notifications_url":"https://api.github.com/repos/brockinit/aws-wiki/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/brockinit/aws-wiki/labels{/name}","releases_url":"https://api.github.com/repos/brockinit/aws-wiki/releases{/id}","deployments_url":"https://api.github.com/repos/brockinit/aws-wiki/deployments","created_at":"2018-07-07T22:00:16Z","updated_at":"2018-07-09T09:45:44Z","pushed_at":"2018-07-09T18:17:11Z","git_url":"git://github.com/brockinit/aws-wiki.git","ssh_url":"git@github.com:brockinit/aws-wiki.git","clone_url":"https://github.com/brockinit/aws-wiki.git","svn_url":"https://github.com/brockinit/aws-wiki","homepage":null,"size":5565,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":6,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":6,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/brockinit/aws-wiki/pulls/21"},"html":{"href":"https://github.com/brockinit/aws-wiki/pull/21"},"issue":{"href":"https://api.github.com/repos/brockinit/aws-wiki/issues/21"},"comments":{"href":"https://api.github.com/repos/brockinit/aws-wiki/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/brockinit/aws-wiki/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/brockinit/aws-wiki/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/brockinit/aws-wiki/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/brockinit/aws-wiki/statuses/20b85db4fbf985950ff36dcd16bd302752feec22"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"brockinit"}}