{"action":"created","comment":{"url":"https://api.github.com/repos/CodeYourFuture/orula/pulls/comments/208045052","pull_request_review_id":143779122,"id":208045052,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwODA0NTA1Mg==","diff_hunk":"@@ -1,7 +1,8 @@\n+import axios from \"axios\";\n const API_URL = process.env.REACT_APP_API_URI || \"http://localhost:4000\";\n \n export const getStatus = () => {\n-  return fetch(`${API_URL}/api/status`).then(res => res.json());\n+  return axios.get(`${API_URL}/api/status`).then(res => res.json());","path":"client/src/helpers/api.js","position":6,"original_position":6,"commit_id":"c8bf770d2809edc2521cddfe47b289a67b9ff895","original_commit_id":"c8bf770d2809edc2521cddfe47b289a67b9ff895","user":{"login":"kabaros","id":1014725,"node_id":"MDQ6VXNlcjEwMTQ3MjU=","avatar_url":"https://avatars3.githubusercontent.com/u/1014725?v=4","gravatar_id":"","url":"https://api.github.com/users/kabaros","html_url":"https://github.com/kabaros","followers_url":"https://api.github.com/users/kabaros/followers","following_url":"https://api.github.com/users/kabaros/following{/other_user}","gists_url":"https://api.github.com/users/kabaros/gists{/gist_id}","starred_url":"https://api.github.com/users/kabaros/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kabaros/subscriptions","organizations_url":"https://api.github.com/users/kabaros/orgs","repos_url":"https://api.github.com/users/kabaros/repos","events_url":"https://api.github.com/users/kabaros/events{/privacy}","received_events_url":"https://api.github.com/users/kabaros/received_events","type":"User","site_admin":false},"body":"since we're using `axios`, we can use baseUrl property in config instead of concatenating strings.","created_at":"2018-08-06T22:12:34Z","updated_at":"2018-08-06T22:12:40Z","html_url":"https://github.com/CodeYourFuture/orula/pull/38#discussion_r208045052","pull_request_url":"https://api.github.com/repos/CodeYourFuture/orula/pulls/38","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/CodeYourFuture/orula/pulls/comments/208045052"},"html":{"href":"https://github.com/CodeYourFuture/orula/pull/38#discussion_r208045052"},"pull_request":{"href":"https://api.github.com/repos/CodeYourFuture/orula/pulls/38"}}},"pull_request":{"url":"https://api.github.com/repos/CodeYourFuture/orula/pulls/38","id":206513229,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2NTEzMjI5","html_url":"https://github.com/CodeYourFuture/orula/pull/38","diff_url":"https://github.com/CodeYourFuture/orula/pull/38.diff","patch_url":"https://github.com/CodeYourFuture/orula/pull/38.patch","issue_url":"https://api.github.com/repos/CodeYourFuture/orula/issues/38","number":38,"state":"open","locked":false,"title":"Use axios instread of fetch","user":{"login":"islam95","id":9398571,"node_id":"MDQ6VXNlcjkzOTg1NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/9398571?v=4","gravatar_id":"","url":"https://api.github.com/users/islam95","html_url":"https://github.com/islam95","followers_url":"https://api.github.com/users/islam95/followers","following_url":"https://api.github.com/users/islam95/following{/other_user}","gists_url":"https://api.github.com/users/islam95/gists{/gist_id}","starred_url":"https://api.github.com/users/islam95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islam95/subscriptions","organizations_url":"https://api.github.com/users/islam95/orgs","repos_url":"https://api.github.com/users/islam95/repos","events_url":"https://api.github.com/users/islam95/events{/privacy}","received_events_url":"https://api.github.com/users/islam95/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-06T20:50:41Z","updated_at":"2018-08-06T22:12:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e7b7bc6926a26a9f2f69bd45e021052a12ff628d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/CodeYourFuture/orula/pulls/38/commits","review_comments_url":"https://api.github.com/repos/CodeYourFuture/orula/pulls/38/comments","review_comment_url":"https://api.github.com/repos/CodeYourFuture/orula/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CodeYourFuture/orula/issues/38/comments","statuses_url":"https://api.github.com/repos/CodeYourFuture/orula/statuses/c8bf770d2809edc2521cddfe47b289a67b9ff895","head":{"label":"islam95:use-axios","ref":"use-axios","sha":"c8bf770d2809edc2521cddfe47b289a67b9ff895","user":{"login":"islam95","id":9398571,"node_id":"MDQ6VXNlcjkzOTg1NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/9398571?v=4","gravatar_id":"","url":"https://api.github.com/users/islam95","html_url":"https://github.com/islam95","followers_url":"https://api.github.com/users/islam95/followers","following_url":"https://api.github.com/users/islam95/following{/other_user}","gists_url":"https://api.github.com/users/islam95/gists{/gist_id}","starred_url":"https://api.github.com/users/islam95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islam95/subscriptions","organizations_url":"https://api.github.com/users/islam95/orgs","repos_url":"https://api.github.com/users/islam95/repos","events_url":"https://api.github.com/users/islam95/events{/privacy}","received_events_url":"https://api.github.com/users/islam95/received_events","type":"User","site_admin":false},"repo":{"id":143521738,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM1MjE3Mzg=","name":"orula","full_name":"islam95/orula","owner":{"login":"islam95","id":9398571,"node_id":"MDQ6VXNlcjkzOTg1NzE=","avatar_url":"https://avatars0.githubusercontent.com/u/9398571?v=4","gravatar_id":"","url":"https://api.github.com/users/islam95","html_url":"https://github.com/islam95","followers_url":"https://api.github.com/users/islam95/followers","following_url":"https://api.github.com/users/islam95/following{/other_user}","gists_url":"https://api.github.com/users/islam95/gists{/gist_id}","starred_url":"https://api.github.com/users/islam95/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/islam95/subscriptions","organizations_url":"https://api.github.com/users/islam95/orgs","repos_url":"https://api.github.com/users/islam95/repos","events_url":"https://api.github.com/users/islam95/events{/privacy}","received_events_url":"https://api.github.com/users/islam95/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/islam95/orula","description":"Glasgow Graduation Project - Learning Platform","fork":true,"url":"https://api.github.com/repos/islam95/orula","forks_url":"https://api.github.com/repos/islam95/orula/forks","keys_url":"https://api.github.com/repos/islam95/orula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/islam95/orula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/islam95/orula/teams","hooks_url":"https://api.github.com/repos/islam95/orula/hooks","issue_events_url":"https://api.github.com/repos/islam95/orula/issues/events{/number}","events_url":"https://api.github.com/repos/islam95/orula/events","assignees_url":"https://api.github.com/repos/islam95/orula/assignees{/user}","branches_url":"https://api.github.com/repos/islam95/orula/branches{/branch}","tags_url":"https://api.github.com/repos/islam95/orula/tags","blobs_url":"https://api.github.com/repos/islam95/orula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/islam95/orula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/islam95/orula/git/refs{/sha}","trees_url":"https://api.github.com/repos/islam95/orula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/islam95/orula/statuses/{sha}","languages_url":"https://api.github.com/repos/islam95/orula/languages","stargazers_url":"https://api.github.com/repos/islam95/orula/stargazers","contributors_url":"https://api.github.com/repos/islam95/orula/contributors","subscribers_url":"https://api.github.com/repos/islam95/orula/subscribers","subscription_url":"https://api.github.com/repos/islam95/orula/subscription","commits_url":"https://api.github.com/repos/islam95/orula/commits{/sha}","git_commits_url":"https://api.github.com/repos/islam95/orula/git/commits{/sha}","comments_url":"https://api.github.com/repos/islam95/orula/comments{/number}","issue_comment_url":"https://api.github.com/repos/islam95/orula/issues/comments{/number}","contents_url":"https://api.github.com/repos/islam95/orula/contents/{+path}","compare_url":"https://api.github.com/repos/islam95/orula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/islam95/orula/merges","archive_url":"https://api.github.com/repos/islam95/orula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/islam95/orula/downloads","issues_url":"https://api.github.com/repos/islam95/orula/issues{/number}","pulls_url":"https://api.github.com/repos/islam95/orula/pulls{/number}","milestones_url":"https://api.github.com/repos/islam95/orula/milestones{/number}","notifications_url":"https://api.github.com/repos/islam95/orula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/islam95/orula/labels{/name}","releases_url":"https://api.github.com/repos/islam95/orula/releases{/id}","deployments_url":"https://api.github.com/repos/islam95/orula/deployments","created_at":"2018-08-04T11:05:16Z","updated_at":"2018-08-06T20:31:44Z","pushed_at":"2018-08-06T20:53:27Z","git_url":"git://github.com/islam95/orula.git","ssh_url":"git@github.com:islam95/orula.git","clone_url":"https://github.com/islam95/orula.git","svn_url":"https://github.com/islam95/orula","homepage":null,"size":343,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"CodeYourFuture:master","ref":"master","sha":"d2e37a238453342af4306f48ffc08ec50520d257","user":{"login":"CodeYourFuture","id":22743767,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNzQzNzY3","avatar_url":"https://avatars3.githubusercontent.com/u/22743767?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeYourFuture","html_url":"https://github.com/CodeYourFuture","followers_url":"https://api.github.com/users/CodeYourFuture/followers","following_url":"https://api.github.com/users/CodeYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/CodeYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeYourFuture/subscriptions","organizations_url":"https://api.github.com/users/CodeYourFuture/orgs","repos_url":"https://api.github.com/users/CodeYourFuture/repos","events_url":"https://api.github.com/users/CodeYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/CodeYourFuture/received_events","type":"Organization","site_admin":false},"repo":{"id":143510934,"node_id":"MDEwOlJlcG9zaXRvcnkxNDM1MTA5MzQ=","name":"orula","full_name":"CodeYourFuture/orula","owner":{"login":"CodeYourFuture","id":22743767,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIyNzQzNzY3","avatar_url":"https://avatars3.githubusercontent.com/u/22743767?v=4","gravatar_id":"","url":"https://api.github.com/users/CodeYourFuture","html_url":"https://github.com/CodeYourFuture","followers_url":"https://api.github.com/users/CodeYourFuture/followers","following_url":"https://api.github.com/users/CodeYourFuture/following{/other_user}","gists_url":"https://api.github.com/users/CodeYourFuture/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeYourFuture/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeYourFuture/subscriptions","organizations_url":"https://api.github.com/users/CodeYourFuture/orgs","repos_url":"https://api.github.com/users/CodeYourFuture/repos","events_url":"https://api.github.com/users/CodeYourFuture/events{/privacy}","received_events_url":"https://api.github.com/users/CodeYourFuture/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/CodeYourFuture/orula","description":"Glasgow Graduation Project - Learning Platform","fork":false,"url":"https://api.github.com/repos/CodeYourFuture/orula","forks_url":"https://api.github.com/repos/CodeYourFuture/orula/forks","keys_url":"https://api.github.com/repos/CodeYourFuture/orula/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CodeYourFuture/orula/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CodeYourFuture/orula/teams","hooks_url":"https://api.github.com/repos/CodeYourFuture/orula/hooks","issue_events_url":"https://api.github.com/repos/CodeYourFuture/orula/issues/events{/number}","events_url":"https://api.github.com/repos/CodeYourFuture/orula/events","assignees_url":"https://api.github.com/repos/CodeYourFuture/orula/assignees{/user}","branches_url":"https://api.github.com/repos/CodeYourFuture/orula/branches{/branch}","tags_url":"https://api.github.com/repos/CodeYourFuture/orula/tags","blobs_url":"https://api.github.com/repos/CodeYourFuture/orula/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CodeYourFuture/orula/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CodeYourFuture/orula/git/refs{/sha}","trees_url":"https://api.github.com/repos/CodeYourFuture/orula/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CodeYourFuture/orula/statuses/{sha}","languages_url":"https://api.github.com/repos/CodeYourFuture/orula/languages","stargazers_url":"https://api.github.com/repos/CodeYourFuture/orula/stargazers","contributors_url":"https://api.github.com/repos/CodeYourFuture/orula/contributors","subscribers_url":"https://api.github.com/repos/CodeYourFuture/orula/subscribers","subscription_url":"https://api.github.com/repos/CodeYourFuture/orula/subscription","commits_url":"https://api.github.com/repos/CodeYourFuture/orula/commits{/sha}","git_commits_url":"https://api.github.com/repos/CodeYourFuture/orula/git/commits{/sha}","comments_url":"https://api.github.com/repos/CodeYourFuture/orula/comments{/number}","issue_comment_url":"https://api.github.com/repos/CodeYourFuture/orula/issues/comments{/number}","contents_url":"https://api.github.com/repos/CodeYourFuture/orula/contents/{+path}","compare_url":"https://api.github.com/repos/CodeYourFuture/orula/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CodeYourFuture/orula/merges","archive_url":"https://api.github.com/repos/CodeYourFuture/orula/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CodeYourFuture/orula/downloads","issues_url":"https://api.github.com/repos/CodeYourFuture/orula/issues{/number}","pulls_url":"https://api.github.com/repos/CodeYourFuture/orula/pulls{/number}","milestones_url":"https://api.github.com/repos/CodeYourFuture/orula/milestones{/number}","notifications_url":"https://api.github.com/repos/CodeYourFuture/orula/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CodeYourFuture/orula/labels{/name}","releases_url":"https://api.github.com/repos/CodeYourFuture/orula/releases{/id}","deployments_url":"https://api.github.com/repos/CodeYourFuture/orula/deployments","created_at":"2018-08-04T08:17:20Z","updated_at":"2018-08-06T15:24:49Z","pushed_at":"2018-08-06T20:53:28Z","git_url":"git://github.com/CodeYourFuture/orula.git","ssh_url":"git@github.com:CodeYourFuture/orula.git","clone_url":"https://github.com/CodeYourFuture/orula.git","svn_url":"https://github.com/CodeYourFuture/orula","homepage":null,"size":331,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"archived":false,"open_issues_count":24,"license":null,"forks":9,"open_issues":24,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CodeYourFuture/orula/pulls/38"},"html":{"href":"https://github.com/CodeYourFuture/orula/pull/38"},"issue":{"href":"https://api.github.com/repos/CodeYourFuture/orula/issues/38"},"comments":{"href":"https://api.github.com/repos/CodeYourFuture/orula/issues/38/comments"},"review_comments":{"href":"https://api.github.com/repos/CodeYourFuture/orula/pulls/38/comments"},"review_comment":{"href":"https://api.github.com/repos/CodeYourFuture/orula/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CodeYourFuture/orula/pulls/38/commits"},"statuses":{"href":"https://api.github.com/repos/CodeYourFuture/orula/statuses/c8bf770d2809edc2521cddfe47b289a67b9ff895"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"kabaros"}}