{"action":"created","comment":{"url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/comments/183809959","pull_request_review_id":114513061,"id":183809959,"diff_hunk":"@@ -15,11 +15,10 @@ class Reviews extends React.Component {\n \n     componentDidMount() {\n         const context = this;\n-        var url = window.location.href.split('/').pop();\n+        let url = window.location.href.split('/').pop();","path":"client/src/components/ReviewList.jsx","position":14,"original_position":14,"commit_id":"e3e6641dc7120f3daa3fdc9f44aec84fe619de26","original_commit_id":"e3e6641dc7120f3daa3fdc9f44aec84fe619de26","user":{"login":"beth","id":7968370,"avatar_url":"https://avatars0.githubusercontent.com/u/7968370?v=4","gravatar_id":"","url":"https://api.github.com/users/beth","html_url":"https://github.com/beth","followers_url":"https://api.github.com/users/beth/followers","following_url":"https://api.github.com/users/beth/following{/other_user}","gists_url":"https://api.github.com/users/beth/gists{/gist_id}","starred_url":"https://api.github.com/users/beth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beth/subscriptions","organizations_url":"https://api.github.com/users/beth/orgs","repos_url":"https://api.github.com/users/beth/repos","events_url":"https://api.github.com/users/beth/events{/privacy}","received_events_url":"https://api.github.com/users/beth/received_events","type":"User","site_admin":false},"body":"Problem: Getting the id from the url makes it difficult to reuse this component in other scenarios.\r\n\r\nFix: Have the ReviewList component accept the id as a prop. ","created_at":"2018-04-24T17:05:09Z","updated_at":"2018-04-24T17:42:31Z","html_url":"https://github.com/The-Masons/Uniqly-Reviews/pull/2#discussion_r183809959","pull_request_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/2","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/comments/183809959"},"html":{"href":"https://github.com/The-Masons/Uniqly-Reviews/pull/2#discussion_r183809959"},"pull_request":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/2","id":183244414,"html_url":"https://github.com/The-Masons/Uniqly-Reviews/pull/2","diff_url":"https://github.com/The-Masons/Uniqly-Reviews/pull/2.diff","patch_url":"https://github.com/The-Masons/Uniqly-Reviews/pull/2.patch","issue_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues/2","number":2,"state":"closed","locked":false,"title":"Refactor","user":{"login":"lhmun","id":4259955,"avatar_url":"https://avatars0.githubusercontent.com/u/4259955?v=4","gravatar_id":"","url":"https://api.github.com/users/lhmun","html_url":"https://github.com/lhmun","followers_url":"https://api.github.com/users/lhmun/followers","following_url":"https://api.github.com/users/lhmun/following{/other_user}","gists_url":"https://api.github.com/users/lhmun/gists{/gist_id}","starred_url":"https://api.github.com/users/lhmun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lhmun/subscriptions","organizations_url":"https://api.github.com/users/lhmun/orgs","repos_url":"https://api.github.com/users/lhmun/repos","events_url":"https://api.github.com/users/lhmun/events{/privacy}","received_events_url":"https://api.github.com/users/lhmun/received_events","type":"User","site_admin":false},"body":"Refactored existing code to reduce repetition & ambiguity\r\n@StevenPurn @swiimp ","created_at":"2018-04-21T22:04:41Z","updated_at":"2018-04-24T17:42:32Z","closed_at":"2018-04-22T06:27:14Z","merged_at":"2018-04-22T06:27:14Z","merge_commit_sha":"c68c64cdc391ad5f5d65cf7c957de3eb1a70bec7","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/2/commits","review_comments_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/2/comments","review_comment_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/comments{/number}","comments_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues/2/comments","statuses_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/statuses/e3e6641dc7120f3daa3fdc9f44aec84fe619de26","head":{"label":"The-Masons:refactor","ref":"refactor","sha":"e3e6641dc7120f3daa3fdc9f44aec84fe619de26","user":{"login":"The-Masons","id":38265035,"avatar_url":"https://avatars0.githubusercontent.com/u/38265035?v=4","gravatar_id":"","url":"https://api.github.com/users/The-Masons","html_url":"https://github.com/The-Masons","followers_url":"https://api.github.com/users/The-Masons/followers","following_url":"https://api.github.com/users/The-Masons/following{/other_user}","gists_url":"https://api.github.com/users/The-Masons/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Masons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Masons/subscriptions","organizations_url":"https://api.github.com/users/The-Masons/orgs","repos_url":"https://api.github.com/users/The-Masons/repos","events_url":"https://api.github.com/users/The-Masons/events{/privacy}","received_events_url":"https://api.github.com/users/The-Masons/received_events","type":"Organization","site_admin":false},"repo":{"id":128998347,"name":"Uniqly-Reviews","full_name":"The-Masons/Uniqly-Reviews","owner":{"login":"The-Masons","id":38265035,"avatar_url":"https://avatars0.githubusercontent.com/u/38265035?v=4","gravatar_id":"","url":"https://api.github.com/users/The-Masons","html_url":"https://github.com/The-Masons","followers_url":"https://api.github.com/users/The-Masons/followers","following_url":"https://api.github.com/users/The-Masons/following{/other_user}","gists_url":"https://api.github.com/users/The-Masons/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Masons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Masons/subscriptions","organizations_url":"https://api.github.com/users/The-Masons/orgs","repos_url":"https://api.github.com/users/The-Masons/repos","events_url":"https://api.github.com/users/The-Masons/events{/privacy}","received_events_url":"https://api.github.com/users/The-Masons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/The-Masons/Uniqly-Reviews","description":"Uniqly component that serves product reviews","fork":false,"url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews","forks_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/forks","keys_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/teams","hooks_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/hooks","issue_events_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues/events{/number}","events_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/events","assignees_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/assignees{/user}","branches_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/branches{/branch}","tags_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/tags","blobs_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/refs{/sha}","trees_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/statuses/{sha}","languages_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/languages","stargazers_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/stargazers","contributors_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/contributors","subscribers_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/subscribers","subscription_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/subscription","commits_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/commits{/sha}","git_commits_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/commits{/sha}","comments_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/comments{/number}","issue_comment_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues/comments{/number}","contents_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/contents/{+path}","compare_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/merges","archive_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/downloads","issues_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues{/number}","pulls_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls{/number}","milestones_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/milestones{/number}","notifications_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/labels{/name}","releases_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/releases{/id}","deployments_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/deployments","created_at":"2018-04-10T21:42:53Z","updated_at":"2018-04-23T21:51:56Z","pushed_at":"2018-04-23T21:51:54Z","git_url":"git://github.com/The-Masons/Uniqly-Reviews.git","ssh_url":"git@github.com:The-Masons/Uniqly-Reviews.git","clone_url":"https://github.com/The-Masons/Uniqly-Reviews.git","svn_url":"https://github.com/The-Masons/Uniqly-Reviews","homepage":null,"size":1234,"stargazers_count":0,"watchers_count":0,"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":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"The-Masons:master","ref":"master","sha":"f7b8b13af5c47883e037506765a85e27e531b159","user":{"login":"The-Masons","id":38265035,"avatar_url":"https://avatars0.githubusercontent.com/u/38265035?v=4","gravatar_id":"","url":"https://api.github.com/users/The-Masons","html_url":"https://github.com/The-Masons","followers_url":"https://api.github.com/users/The-Masons/followers","following_url":"https://api.github.com/users/The-Masons/following{/other_user}","gists_url":"https://api.github.com/users/The-Masons/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Masons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Masons/subscriptions","organizations_url":"https://api.github.com/users/The-Masons/orgs","repos_url":"https://api.github.com/users/The-Masons/repos","events_url":"https://api.github.com/users/The-Masons/events{/privacy}","received_events_url":"https://api.github.com/users/The-Masons/received_events","type":"Organization","site_admin":false},"repo":{"id":128998347,"name":"Uniqly-Reviews","full_name":"The-Masons/Uniqly-Reviews","owner":{"login":"The-Masons","id":38265035,"avatar_url":"https://avatars0.githubusercontent.com/u/38265035?v=4","gravatar_id":"","url":"https://api.github.com/users/The-Masons","html_url":"https://github.com/The-Masons","followers_url":"https://api.github.com/users/The-Masons/followers","following_url":"https://api.github.com/users/The-Masons/following{/other_user}","gists_url":"https://api.github.com/users/The-Masons/gists{/gist_id}","starred_url":"https://api.github.com/users/The-Masons/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/The-Masons/subscriptions","organizations_url":"https://api.github.com/users/The-Masons/orgs","repos_url":"https://api.github.com/users/The-Masons/repos","events_url":"https://api.github.com/users/The-Masons/events{/privacy}","received_events_url":"https://api.github.com/users/The-Masons/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/The-Masons/Uniqly-Reviews","description":"Uniqly component that serves product reviews","fork":false,"url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews","forks_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/forks","keys_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/keys{/key_id}","collaborators_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/teams","hooks_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/hooks","issue_events_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues/events{/number}","events_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/events","assignees_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/assignees{/user}","branches_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/branches{/branch}","tags_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/tags","blobs_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/refs{/sha}","trees_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/trees{/sha}","statuses_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/statuses/{sha}","languages_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/languages","stargazers_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/stargazers","contributors_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/contributors","subscribers_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/subscribers","subscription_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/subscription","commits_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/commits{/sha}","git_commits_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/git/commits{/sha}","comments_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/comments{/number}","issue_comment_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues/comments{/number}","contents_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/contents/{+path}","compare_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/compare/{base}...{head}","merges_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/merges","archive_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/downloads","issues_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues{/number}","pulls_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls{/number}","milestones_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/milestones{/number}","notifications_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/labels{/name}","releases_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/releases{/id}","deployments_url":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/deployments","created_at":"2018-04-10T21:42:53Z","updated_at":"2018-04-23T21:51:56Z","pushed_at":"2018-04-23T21:51:54Z","git_url":"git://github.com/The-Masons/Uniqly-Reviews.git","ssh_url":"git@github.com:The-Masons/Uniqly-Reviews.git","clone_url":"https://github.com/The-Masons/Uniqly-Reviews.git","svn_url":"https://github.com/The-Masons/Uniqly-Reviews","homepage":null,"size":1234,"stargazers_count":0,"watchers_count":0,"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":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/2"},"html":{"href":"https://github.com/The-Masons/Uniqly-Reviews/pull/2"},"issue":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues/2"},"comments":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/The-Masons/Uniqly-Reviews/statuses/e3e6641dc7120f3daa3fdc9f44aec84fe619de26"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"beth"}}