{"action":"created","comment":{"url":"https://api.github.com/repos/stuyspec/client-app/pulls/comments/131528481","pull_request_review_id":54521465,"id":131528481,"diff_hunk":"@@ -1,11 +1,55 @@\n import axios from 'axios';\r\n import * as t from './actionTypes';\r\n+import STUY_SPEC_API from '../../constants';\r\n \r\n-const apiUrl = 'http://api.icndb.com/jokes/random';\r\n-\r\n+//TODO: need a way to call the fetch function\r\n export const fetch = () => {\r\n-\treturn {\r\n-\t\ttype: t.FETCH_ARTICLE,\r\n-\t\tpayload: axios.get(apiUrl),\r\n-\t};\r\n+  return (dispatch, getState) => {\r\n+    dispatch({ type: t.FETCH_ARTICLE_PENDING });\r\n+    //axios.get(apiUrl, {'headers': {'X-Key-Inflection': 'camel'}}) TODO: wait until Nic uses olive branch\r\n+    axios.get(STUY_SPEC_API+'/articles')\r","path":"src/js/modules/articles/actions.js","position":16,"original_position":16,"commit_id":"f03456ddfc81f11defbc698e8dbe345ac1bf19a7","original_commit_id":"f03456ddfc81f11defbc698e8dbe345ac1bf19a7","user":{"login":"NicholasLYang","id":7357863,"avatar_url":"https://avatars3.githubusercontent.com/u/7357863?v=4","gravatar_id":"","url":"https://api.github.com/users/NicholasLYang","html_url":"https://github.com/NicholasLYang","followers_url":"https://api.github.com/users/NicholasLYang/followers","following_url":"https://api.github.com/users/NicholasLYang/following{/other_user}","gists_url":"https://api.github.com/users/NicholasLYang/gists{/gist_id}","starred_url":"https://api.github.com/users/NicholasLYang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NicholasLYang/subscriptions","organizations_url":"https://api.github.com/users/NicholasLYang/orgs","repos_url":"https://api.github.com/users/NicholasLYang/repos","events_url":"https://api.github.com/users/NicholasLYang/events{/privacy}","received_events_url":"https://api.github.com/users/NicholasLYang/received_events","type":"User","site_admin":false},"body":"consider string interpolation `${STUY_SPEC_API}/articles` It's minor but it's a little more readable imo","created_at":"2017-08-05T19:46:54Z","updated_at":"2017-08-05T19:46:54Z","html_url":"https://github.com/stuyspec/client-app/pull/15#discussion_r131528481","pull_request_url":"https://api.github.com/repos/stuyspec/client-app/pulls/15","_links":{"self":{"href":"https://api.github.com/repos/stuyspec/client-app/pulls/comments/131528481"},"html":{"href":"https://github.com/stuyspec/client-app/pull/15#discussion_r131528481"},"pull_request":{"href":"https://api.github.com/repos/stuyspec/client-app/pulls/15"}}},"pull_request":{"url":"https://api.github.com/repos/stuyspec/client-app/pulls/15","id":133728941,"html_url":"https://github.com/stuyspec/client-app/pull/15","diff_url":"https://github.com/stuyspec/client-app/pull/15.diff","patch_url":"https://github.com/stuyspec/client-app/pull/15.patch","issue_url":"https://api.github.com/repos/stuyspec/client-app/issues/15","number":15,"state":"open","locked":false,"title":"Feature/article reducer","user":{"login":"JasonLin43212","id":27793365,"avatar_url":"https://avatars1.githubusercontent.com/u/27793365?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonLin43212","html_url":"https://github.com/JasonLin43212","followers_url":"https://api.github.com/users/JasonLin43212/followers","following_url":"https://api.github.com/users/JasonLin43212/following{/other_user}","gists_url":"https://api.github.com/users/JasonLin43212/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLin43212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLin43212/subscriptions","organizations_url":"https://api.github.com/users/JasonLin43212/orgs","repos_url":"https://api.github.com/users/JasonLin43212/repos","events_url":"https://api.github.com/users/JasonLin43212/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLin43212/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-08-02T14:48:33Z","updated_at":"2017-08-05T19:46:54Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c88244ca05f453b5cb599c9a128d920c182f162d","assignee":{"login":"JasonLin43212","id":27793365,"avatar_url":"https://avatars1.githubusercontent.com/u/27793365?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonLin43212","html_url":"https://github.com/JasonLin43212","followers_url":"https://api.github.com/users/JasonLin43212/followers","following_url":"https://api.github.com/users/JasonLin43212/following{/other_user}","gists_url":"https://api.github.com/users/JasonLin43212/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLin43212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLin43212/subscriptions","organizations_url":"https://api.github.com/users/JasonLin43212/orgs","repos_url":"https://api.github.com/users/JasonLin43212/repos","events_url":"https://api.github.com/users/JasonLin43212/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLin43212/received_events","type":"User","site_admin":false},"assignees":[{"login":"JasonLin43212","id":27793365,"avatar_url":"https://avatars1.githubusercontent.com/u/27793365?v=4","gravatar_id":"","url":"https://api.github.com/users/JasonLin43212","html_url":"https://github.com/JasonLin43212","followers_url":"https://api.github.com/users/JasonLin43212/followers","following_url":"https://api.github.com/users/JasonLin43212/following{/other_user}","gists_url":"https://api.github.com/users/JasonLin43212/gists{/gist_id}","starred_url":"https://api.github.com/users/JasonLin43212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JasonLin43212/subscriptions","organizations_url":"https://api.github.com/users/JasonLin43212/orgs","repos_url":"https://api.github.com/users/JasonLin43212/repos","events_url":"https://api.github.com/users/JasonLin43212/events{/privacy}","received_events_url":"https://api.github.com/users/JasonLin43212/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"milestone":{"url":"https://api.github.com/repos/stuyspec/client-app/milestones/1","html_url":"https://github.com/stuyspec/client-app/milestone/1","labels_url":"https://api.github.com/repos/stuyspec/client-app/milestones/1/labels","id":2671990,"number":1,"title":"priority amble","description":"Home & section pages.","creator":{"login":"jkao1","id":15334952,"avatar_url":"https://avatars1.githubusercontent.com/u/15334952?v=4","gravatar_id":"","url":"https://api.github.com/users/jkao1","html_url":"https://github.com/jkao1","followers_url":"https://api.github.com/users/jkao1/followers","following_url":"https://api.github.com/users/jkao1/following{/other_user}","gists_url":"https://api.github.com/users/jkao1/gists{/gist_id}","starred_url":"https://api.github.com/users/jkao1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jkao1/subscriptions","organizations_url":"https://api.github.com/users/jkao1/orgs","repos_url":"https://api.github.com/users/jkao1/repos","events_url":"https://api.github.com/users/jkao1/events{/privacy}","received_events_url":"https://api.github.com/users/jkao1/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":1,"state":"open","created_at":"2017-07-31T18:12:16Z","updated_at":"2017-08-02T20:28:27Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/stuyspec/client-app/pulls/15/commits","review_comments_url":"https://api.github.com/repos/stuyspec/client-app/pulls/15/comments","review_comment_url":"https://api.github.com/repos/stuyspec/client-app/pulls/comments{/number}","comments_url":"https://api.github.com/repos/stuyspec/client-app/issues/15/comments","statuses_url":"https://api.github.com/repos/stuyspec/client-app/statuses/f03456ddfc81f11defbc698e8dbe345ac1bf19a7","head":{"label":"stuyspec:feature/article-reducer","ref":"feature/article-reducer","sha":"f03456ddfc81f11defbc698e8dbe345ac1bf19a7","user":{"login":"stuyspec","id":5567157,"avatar_url":"https://avatars1.githubusercontent.com/u/5567157?v=4","gravatar_id":"","url":"https://api.github.com/users/stuyspec","html_url":"https://github.com/stuyspec","followers_url":"https://api.github.com/users/stuyspec/followers","following_url":"https://api.github.com/users/stuyspec/following{/other_user}","gists_url":"https://api.github.com/users/stuyspec/gists{/gist_id}","starred_url":"https://api.github.com/users/stuyspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuyspec/subscriptions","organizations_url":"https://api.github.com/users/stuyspec/orgs","repos_url":"https://api.github.com/users/stuyspec/repos","events_url":"https://api.github.com/users/stuyspec/events{/privacy}","received_events_url":"https://api.github.com/users/stuyspec/received_events","type":"Organization","site_admin":false},"repo":{"id":94999323,"name":"client-app","full_name":"stuyspec/client-app","owner":{"login":"stuyspec","id":5567157,"avatar_url":"https://avatars1.githubusercontent.com/u/5567157?v=4","gravatar_id":"","url":"https://api.github.com/users/stuyspec","html_url":"https://github.com/stuyspec","followers_url":"https://api.github.com/users/stuyspec/followers","following_url":"https://api.github.com/users/stuyspec/following{/other_user}","gists_url":"https://api.github.com/users/stuyspec/gists{/gist_id}","starred_url":"https://api.github.com/users/stuyspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuyspec/subscriptions","organizations_url":"https://api.github.com/users/stuyspec/orgs","repos_url":"https://api.github.com/users/stuyspec/repos","events_url":"https://api.github.com/users/stuyspec/events{/privacy}","received_events_url":"https://api.github.com/users/stuyspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stuyspec/client-app","description":"Client facing application written in React","fork":false,"url":"https://api.github.com/repos/stuyspec/client-app","forks_url":"https://api.github.com/repos/stuyspec/client-app/forks","keys_url":"https://api.github.com/repos/stuyspec/client-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stuyspec/client-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stuyspec/client-app/teams","hooks_url":"https://api.github.com/repos/stuyspec/client-app/hooks","issue_events_url":"https://api.github.com/repos/stuyspec/client-app/issues/events{/number}","events_url":"https://api.github.com/repos/stuyspec/client-app/events","assignees_url":"https://api.github.com/repos/stuyspec/client-app/assignees{/user}","branches_url":"https://api.github.com/repos/stuyspec/client-app/branches{/branch}","tags_url":"https://api.github.com/repos/stuyspec/client-app/tags","blobs_url":"https://api.github.com/repos/stuyspec/client-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stuyspec/client-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stuyspec/client-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/stuyspec/client-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stuyspec/client-app/statuses/{sha}","languages_url":"https://api.github.com/repos/stuyspec/client-app/languages","stargazers_url":"https://api.github.com/repos/stuyspec/client-app/stargazers","contributors_url":"https://api.github.com/repos/stuyspec/client-app/contributors","subscribers_url":"https://api.github.com/repos/stuyspec/client-app/subscribers","subscription_url":"https://api.github.com/repos/stuyspec/client-app/subscription","commits_url":"https://api.github.com/repos/stuyspec/client-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/stuyspec/client-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/stuyspec/client-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/stuyspec/client-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/stuyspec/client-app/contents/{+path}","compare_url":"https://api.github.com/repos/stuyspec/client-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stuyspec/client-app/merges","archive_url":"https://api.github.com/repos/stuyspec/client-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stuyspec/client-app/downloads","issues_url":"https://api.github.com/repos/stuyspec/client-app/issues{/number}","pulls_url":"https://api.github.com/repos/stuyspec/client-app/pulls{/number}","milestones_url":"https://api.github.com/repos/stuyspec/client-app/milestones{/number}","notifications_url":"https://api.github.com/repos/stuyspec/client-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stuyspec/client-app/labels{/name}","releases_url":"https://api.github.com/repos/stuyspec/client-app/releases{/id}","deployments_url":"https://api.github.com/repos/stuyspec/client-app/deployments","created_at":"2017-06-21T12:01:36Z","updated_at":"2017-07-27T18:02:26Z","pushed_at":"2017-08-05T15:04:53Z","git_url":"git://github.com/stuyspec/client-app.git","ssh_url":"git@github.com:stuyspec/client-app.git","clone_url":"https://github.com/stuyspec/client-app.git","svn_url":"https://github.com/stuyspec/client-app","homepage":null,"size":21034,"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,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"develop"}},"base":{"label":"stuyspec:develop","ref":"develop","sha":"c03e7ce3c0404aa444458566766a4665956d2223","user":{"login":"stuyspec","id":5567157,"avatar_url":"https://avatars1.githubusercontent.com/u/5567157?v=4","gravatar_id":"","url":"https://api.github.com/users/stuyspec","html_url":"https://github.com/stuyspec","followers_url":"https://api.github.com/users/stuyspec/followers","following_url":"https://api.github.com/users/stuyspec/following{/other_user}","gists_url":"https://api.github.com/users/stuyspec/gists{/gist_id}","starred_url":"https://api.github.com/users/stuyspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuyspec/subscriptions","organizations_url":"https://api.github.com/users/stuyspec/orgs","repos_url":"https://api.github.com/users/stuyspec/repos","events_url":"https://api.github.com/users/stuyspec/events{/privacy}","received_events_url":"https://api.github.com/users/stuyspec/received_events","type":"Organization","site_admin":false},"repo":{"id":94999323,"name":"client-app","full_name":"stuyspec/client-app","owner":{"login":"stuyspec","id":5567157,"avatar_url":"https://avatars1.githubusercontent.com/u/5567157?v=4","gravatar_id":"","url":"https://api.github.com/users/stuyspec","html_url":"https://github.com/stuyspec","followers_url":"https://api.github.com/users/stuyspec/followers","following_url":"https://api.github.com/users/stuyspec/following{/other_user}","gists_url":"https://api.github.com/users/stuyspec/gists{/gist_id}","starred_url":"https://api.github.com/users/stuyspec/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stuyspec/subscriptions","organizations_url":"https://api.github.com/users/stuyspec/orgs","repos_url":"https://api.github.com/users/stuyspec/repos","events_url":"https://api.github.com/users/stuyspec/events{/privacy}","received_events_url":"https://api.github.com/users/stuyspec/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/stuyspec/client-app","description":"Client facing application written in React","fork":false,"url":"https://api.github.com/repos/stuyspec/client-app","forks_url":"https://api.github.com/repos/stuyspec/client-app/forks","keys_url":"https://api.github.com/repos/stuyspec/client-app/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stuyspec/client-app/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stuyspec/client-app/teams","hooks_url":"https://api.github.com/repos/stuyspec/client-app/hooks","issue_events_url":"https://api.github.com/repos/stuyspec/client-app/issues/events{/number}","events_url":"https://api.github.com/repos/stuyspec/client-app/events","assignees_url":"https://api.github.com/repos/stuyspec/client-app/assignees{/user}","branches_url":"https://api.github.com/repos/stuyspec/client-app/branches{/branch}","tags_url":"https://api.github.com/repos/stuyspec/client-app/tags","blobs_url":"https://api.github.com/repos/stuyspec/client-app/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stuyspec/client-app/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stuyspec/client-app/git/refs{/sha}","trees_url":"https://api.github.com/repos/stuyspec/client-app/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stuyspec/client-app/statuses/{sha}","languages_url":"https://api.github.com/repos/stuyspec/client-app/languages","stargazers_url":"https://api.github.com/repos/stuyspec/client-app/stargazers","contributors_url":"https://api.github.com/repos/stuyspec/client-app/contributors","subscribers_url":"https://api.github.com/repos/stuyspec/client-app/subscribers","subscription_url":"https://api.github.com/repos/stuyspec/client-app/subscription","commits_url":"https://api.github.com/repos/stuyspec/client-app/commits{/sha}","git_commits_url":"https://api.github.com/repos/stuyspec/client-app/git/commits{/sha}","comments_url":"https://api.github.com/repos/stuyspec/client-app/comments{/number}","issue_comment_url":"https://api.github.com/repos/stuyspec/client-app/issues/comments{/number}","contents_url":"https://api.github.com/repos/stuyspec/client-app/contents/{+path}","compare_url":"https://api.github.com/repos/stuyspec/client-app/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stuyspec/client-app/merges","archive_url":"https://api.github.com/repos/stuyspec/client-app/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stuyspec/client-app/downloads","issues_url":"https://api.github.com/repos/stuyspec/client-app/issues{/number}","pulls_url":"https://api.github.com/repos/stuyspec/client-app/pulls{/number}","milestones_url":"https://api.github.com/repos/stuyspec/client-app/milestones{/number}","notifications_url":"https://api.github.com/repos/stuyspec/client-app/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stuyspec/client-app/labels{/name}","releases_url":"https://api.github.com/repos/stuyspec/client-app/releases{/id}","deployments_url":"https://api.github.com/repos/stuyspec/client-app/deployments","created_at":"2017-06-21T12:01:36Z","updated_at":"2017-07-27T18:02:26Z","pushed_at":"2017-08-05T15:04:53Z","git_url":"git://github.com/stuyspec/client-app.git","ssh_url":"git@github.com:stuyspec/client-app.git","clone_url":"https://github.com/stuyspec/client-app.git","svn_url":"https://github.com/stuyspec/client-app","homepage":null,"size":21034,"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,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":3,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/stuyspec/client-app/pulls/15"},"html":{"href":"https://github.com/stuyspec/client-app/pull/15"},"issue":{"href":"https://api.github.com/repos/stuyspec/client-app/issues/15"},"comments":{"href":"https://api.github.com/repos/stuyspec/client-app/issues/15/comments"},"review_comments":{"href":"https://api.github.com/repos/stuyspec/client-app/pulls/15/comments"},"review_comment":{"href":"https://api.github.com/repos/stuyspec/client-app/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/stuyspec/client-app/pulls/15/commits"},"statuses":{"href":"https://api.github.com/repos/stuyspec/client-app/statuses/f03456ddfc81f11defbc698e8dbe345ac1bf19a7"}}}}
{"actor":{"display_login":"NicholasLYang"}}