{"action":"created","comment":{"url":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/comments/244637816","pull_request_review_id":188557344,"id":244637816,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0NDYzNzgxNg==","diff_hunk":"@@ -5,3 +5,10 @@ export const responseColors = [\n   \"#2db300\",\n   \"#43A089\"\n ];\n+\n+export const gaugeColors = [\"#43A089\", \"#b5b5b5\"];\n+\n+//Returns respective color from Response colors based on integer provided, int must be between 0 - 5\n+export const getResponseColor = int => {\n+  return responseColors[Math.floor(int === 5 ? 4.9 : int)];\n+};","path":"client/src/components/colors.js","position":10,"original_position":10,"commit_id":"ae81ce5c931befc2e7b2892e6a4a19e6bb03fdb8","original_commit_id":"ae81ce5c931befc2e7b2892e6a4a19e6bb03fdb8","user":{"login":"LouisSayers","id":93401,"node_id":"MDQ6VXNlcjkzNDAx","avatar_url":"https://avatars1.githubusercontent.com/u/93401?v=4","gravatar_id":"","url":"https://api.github.com/users/LouisSayers","html_url":"https://github.com/LouisSayers","followers_url":"https://api.github.com/users/LouisSayers/followers","following_url":"https://api.github.com/users/LouisSayers/following{/other_user}","gists_url":"https://api.github.com/users/LouisSayers/gists{/gist_id}","starred_url":"https://api.github.com/users/LouisSayers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LouisSayers/subscriptions","organizations_url":"https://api.github.com/users/LouisSayers/orgs","repos_url":"https://api.github.com/users/LouisSayers/repos","events_url":"https://api.github.com/users/LouisSayers/events{/privacy}","received_events_url":"https://api.github.com/users/LouisSayers/received_events","type":"User","site_admin":false},"body":"This is something that's good to put tests around - then you don't need the comment because the functionality is documented by the tests","created_at":"2019-01-01T13:42:15Z","updated_at":"2019-01-01T13:58:32Z","html_url":"https://github.com/nicholasnbg/ca-front-test/pull/1#discussion_r244637816","pull_request_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/1","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/comments/244637816"},"html":{"href":"https://github.com/nicholasnbg/ca-front-test/pull/1#discussion_r244637816"},"pull_request":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/1","id":241617216,"node_id":"MDExOlB1bGxSZXF1ZXN0MjQxNjE3MjE2","html_url":"https://github.com/nicholasnbg/ca-front-test/pull/1","diff_url":"https://github.com/nicholasnbg/ca-front-test/pull/1.diff","patch_url":"https://github.com/nicholasnbg/ca-front-test/pull/1.patch","issue_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues/1","number":1,"state":"open","locked":false,"title":"Pull request branch","user":{"login":"nicholasnbg","id":17841511,"node_id":"MDQ6VXNlcjE3ODQxNTEx","avatar_url":"https://avatars0.githubusercontent.com/u/17841511?v=4","gravatar_id":"","url":"https://api.github.com/users/nicholasnbg","html_url":"https://github.com/nicholasnbg","followers_url":"https://api.github.com/users/nicholasnbg/followers","following_url":"https://api.github.com/users/nicholasnbg/following{/other_user}","gists_url":"https://api.github.com/users/nicholasnbg/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasnbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasnbg/subscriptions","organizations_url":"https://api.github.com/users/nicholasnbg/orgs","repos_url":"https://api.github.com/users/nicholasnbg/repos","events_url":"https://api.github.com/users/nicholasnbg/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasnbg/received_events","type":"User","site_admin":false},"body":"Pull request for changes made","created_at":"2019-01-01T04:59:43Z","updated_at":"2019-01-01T13:58:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a13952010bef13c78db08bd9314c1a083b2058a4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/1/commits","review_comments_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/1/comments","review_comment_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/comments{/number}","comments_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues/1/comments","statuses_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/statuses/ae81ce5c931befc2e7b2892e6a4a19e6bb03fdb8","head":{"label":"nicholasnbg:pull-request-branch","ref":"pull-request-branch","sha":"ae81ce5c931befc2e7b2892e6a4a19e6bb03fdb8","user":{"login":"nicholasnbg","id":17841511,"node_id":"MDQ6VXNlcjE3ODQxNTEx","avatar_url":"https://avatars0.githubusercontent.com/u/17841511?v=4","gravatar_id":"","url":"https://api.github.com/users/nicholasnbg","html_url":"https://github.com/nicholasnbg","followers_url":"https://api.github.com/users/nicholasnbg/followers","following_url":"https://api.github.com/users/nicholasnbg/following{/other_user}","gists_url":"https://api.github.com/users/nicholasnbg/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasnbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasnbg/subscriptions","organizations_url":"https://api.github.com/users/nicholasnbg/orgs","repos_url":"https://api.github.com/users/nicholasnbg/repos","events_url":"https://api.github.com/users/nicholasnbg/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasnbg/received_events","type":"User","site_admin":false},"repo":{"id":163249189,"node_id":"MDEwOlJlcG9zaXRvcnkxNjMyNDkxODk=","name":"ca-front-test","full_name":"nicholasnbg/ca-front-test","private":false,"owner":{"login":"nicholasnbg","id":17841511,"node_id":"MDQ6VXNlcjE3ODQxNTEx","avatar_url":"https://avatars0.githubusercontent.com/u/17841511?v=4","gravatar_id":"","url":"https://api.github.com/users/nicholasnbg","html_url":"https://github.com/nicholasnbg","followers_url":"https://api.github.com/users/nicholasnbg/followers","following_url":"https://api.github.com/users/nicholasnbg/following{/other_user}","gists_url":"https://api.github.com/users/nicholasnbg/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasnbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasnbg/subscriptions","organizations_url":"https://api.github.com/users/nicholasnbg/orgs","repos_url":"https://api.github.com/users/nicholasnbg/repos","events_url":"https://api.github.com/users/nicholasnbg/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasnbg/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nicholasnbg/ca-front-test","description":"Culture Amp front end coding test","fork":false,"url":"https://api.github.com/repos/nicholasnbg/ca-front-test","forks_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/forks","keys_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/teams","hooks_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/hooks","issue_events_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues/events{/number}","events_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/events","assignees_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/assignees{/user}","branches_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/branches{/branch}","tags_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/tags","blobs_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/statuses/{sha}","languages_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/languages","stargazers_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/stargazers","contributors_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/contributors","subscribers_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/subscribers","subscription_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/subscription","commits_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/contents/{+path}","compare_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/merges","archive_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/downloads","issues_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues{/number}","pulls_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls{/number}","milestones_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/milestones{/number}","notifications_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/labels{/name}","releases_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/releases{/id}","deployments_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/deployments","created_at":"2018-12-27T05:02:03Z","updated_at":"2019-01-01T04:58:17Z","pushed_at":"2019-01-01T04:59:43Z","git_url":"git://github.com/nicholasnbg/ca-front-test.git","ssh_url":"git@github.com:nicholasnbg/ca-front-test.git","clone_url":"https://github.com/nicholasnbg/ca-front-test.git","svn_url":"https://github.com/nicholasnbg/ca-front-test","homepage":null,"size":157,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"nicholasnbg:master","ref":"master","sha":"e21655af83085c72bb9b7e854cafcb050f1c58ed","user":{"login":"nicholasnbg","id":17841511,"node_id":"MDQ6VXNlcjE3ODQxNTEx","avatar_url":"https://avatars0.githubusercontent.com/u/17841511?v=4","gravatar_id":"","url":"https://api.github.com/users/nicholasnbg","html_url":"https://github.com/nicholasnbg","followers_url":"https://api.github.com/users/nicholasnbg/followers","following_url":"https://api.github.com/users/nicholasnbg/following{/other_user}","gists_url":"https://api.github.com/users/nicholasnbg/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasnbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasnbg/subscriptions","organizations_url":"https://api.github.com/users/nicholasnbg/orgs","repos_url":"https://api.github.com/users/nicholasnbg/repos","events_url":"https://api.github.com/users/nicholasnbg/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasnbg/received_events","type":"User","site_admin":false},"repo":{"id":163249189,"node_id":"MDEwOlJlcG9zaXRvcnkxNjMyNDkxODk=","name":"ca-front-test","full_name":"nicholasnbg/ca-front-test","private":false,"owner":{"login":"nicholasnbg","id":17841511,"node_id":"MDQ6VXNlcjE3ODQxNTEx","avatar_url":"https://avatars0.githubusercontent.com/u/17841511?v=4","gravatar_id":"","url":"https://api.github.com/users/nicholasnbg","html_url":"https://github.com/nicholasnbg","followers_url":"https://api.github.com/users/nicholasnbg/followers","following_url":"https://api.github.com/users/nicholasnbg/following{/other_user}","gists_url":"https://api.github.com/users/nicholasnbg/gists{/gist_id}","starred_url":"https://api.github.com/users/nicholasnbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicholasnbg/subscriptions","organizations_url":"https://api.github.com/users/nicholasnbg/orgs","repos_url":"https://api.github.com/users/nicholasnbg/repos","events_url":"https://api.github.com/users/nicholasnbg/events{/privacy}","received_events_url":"https://api.github.com/users/nicholasnbg/received_events","type":"User","site_admin":false},"html_url":"https://github.com/nicholasnbg/ca-front-test","description":"Culture Amp front end coding test","fork":false,"url":"https://api.github.com/repos/nicholasnbg/ca-front-test","forks_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/forks","keys_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/keys{/key_id}","collaborators_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/teams","hooks_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/hooks","issue_events_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues/events{/number}","events_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/events","assignees_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/assignees{/user}","branches_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/branches{/branch}","tags_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/tags","blobs_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/refs{/sha}","trees_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/trees{/sha}","statuses_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/statuses/{sha}","languages_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/languages","stargazers_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/stargazers","contributors_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/contributors","subscribers_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/subscribers","subscription_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/subscription","commits_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/commits{/sha}","git_commits_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/git/commits{/sha}","comments_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/comments{/number}","issue_comment_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues/comments{/number}","contents_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/contents/{+path}","compare_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/compare/{base}...{head}","merges_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/merges","archive_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/downloads","issues_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues{/number}","pulls_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls{/number}","milestones_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/milestones{/number}","notifications_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/labels{/name}","releases_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/releases{/id}","deployments_url":"https://api.github.com/repos/nicholasnbg/ca-front-test/deployments","created_at":"2018-12-27T05:02:03Z","updated_at":"2019-01-01T04:58:17Z","pushed_at":"2019-01-01T04:59:43Z","git_url":"git://github.com/nicholasnbg/ca-front-test.git","ssh_url":"git@github.com:nicholasnbg/ca-front-test.git","clone_url":"https://github.com/nicholasnbg/ca-front-test.git","svn_url":"https://github.com/nicholasnbg/ca-front-test","homepage":null,"size":157,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/1"},"html":{"href":"https://github.com/nicholasnbg/ca-front-test/pull/1"},"issue":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues/1"},"comments":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/nicholasnbg/ca-front-test/statuses/ae81ce5c931befc2e7b2892e6a4a19e6bb03fdb8"}},"author_association":"OWNER"}}
{"actor":{"display_login":"LouisSayers"}}