{"action":"created","comment":{"url":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/comments/101445280","pull_request_review_id":22173388,"id":101445280,"diff_hunk":"@@ -0,0 +1,35 @@\n+0 info it worked if it ends with ok","path":"npm-debug.log","position":1,"original_position":1,"commit_id":"916086c7c52d81032f97d6c58cf7ef0b5f612fd4","original_commit_id":"0e61a82c45b257f4ea670fca1b1339e3a300c740","user":{"login":"ellsclytn","id":8725013,"avatar_url":"https://avatars.githubusercontent.com/u/8725013?v=3","gravatar_id":"","url":"https://api.github.com/users/ellsclytn","html_url":"https://github.com/ellsclytn","followers_url":"https://api.github.com/users/ellsclytn/followers","following_url":"https://api.github.com/users/ellsclytn/following{/other_user}","gists_url":"https://api.github.com/users/ellsclytn/gists{/gist_id}","starred_url":"https://api.github.com/users/ellsclytn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ellsclytn/subscriptions","organizations_url":"https://api.github.com/users/ellsclytn/orgs","repos_url":"https://api.github.com/users/ellsclytn/repos","events_url":"https://api.github.com/users/ellsclytn/events{/privacy}","received_events_url":"https://api.github.com/users/ellsclytn/received_events","type":"User","site_admin":false},"body":"Tsk tsk","created_at":"2017-02-16T04:53:26Z","updated_at":"2017-02-16T04:53:26Z","html_url":"https://github.com/everydayhero/prismic-utils/pull/16#discussion_r101445280","pull_request_url":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/comments/101445280"},"html":{"href":"https://github.com/everydayhero/prismic-utils/pull/16#discussion_r101445280"},"pull_request":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/16","id":106030907,"html_url":"https://github.com/everydayhero/prismic-utils/pull/16","diff_url":"https://github.com/everydayhero/prismic-utils/pull/16.diff","patch_url":"https://github.com/everydayhero/prismic-utils/pull/16.patch","issue_url":"https://api.github.com/repos/everydayhero/prismic-utils/issues/16","number":16,"state":"open","locked":false,"title":"Topic/action reducer","user":{"login":"danhenderson","id":1445686,"avatar_url":"https://avatars.githubusercontent.com/u/1445686?v=3","gravatar_id":"","url":"https://api.github.com/users/danhenderson","html_url":"https://github.com/danhenderson","followers_url":"https://api.github.com/users/danhenderson/followers","following_url":"https://api.github.com/users/danhenderson/following{/other_user}","gists_url":"https://api.github.com/users/danhenderson/gists{/gist_id}","starred_url":"https://api.github.com/users/danhenderson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danhenderson/subscriptions","organizations_url":"https://api.github.com/users/danhenderson/orgs","repos_url":"https://api.github.com/users/danhenderson/repos","events_url":"https://api.github.com/users/danhenderson/events{/privacy}","received_events_url":"https://api.github.com/users/danhenderson/received_events","type":"User","site_admin":false},"body":"Changes\r\n\r\n**Reducers**\r\n- Added a createDocumentReducer and createDocumentsReducer for handling our typical reducers\r\n-- with the ability to override handlers if required e.g. handle the FETCH_SUCCESS action differently\r\n-- with the ability to override other things like the initial state\r\n-- obviously the pluralised version expects an array of docs, rather than a single doc\r\n-- idea is for this to cover a good 80/90% of our use cases with Prismic based reducers\r\n-- including tests\r\n\r\n**Actions**\r\n- Add a createDocumentAction and createDocumentsAction\r\n-- again, plural with dispatch an action that retrieves and returns an array of docs\r\n-- docs should explain how to use i.e. using the same namespace (e.g. 'pages'), will mean your reducer created above will listen to actions dispatched by your action creator\r\n-- including tests\r\n\r\n**Other**\r\n- Removed awkward single option in fetchDocuments, and instead expose a fetchDocument and a fetchDocuments function that, as expected return an a single doc vs an array of docs\r\n- Touched up the readme to hopefully be a little more concise\r\n","created_at":"2017-02-14T03:57:14Z","updated_at":"2017-02-16T04:53:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"14a7daf4f4f6f626a376a28e4d6d7253efcb4a0c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/16/commits","review_comments_url":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/16/comments","review_comment_url":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/comments{/number}","comments_url":"https://api.github.com/repos/everydayhero/prismic-utils/issues/16/comments","statuses_url":"https://api.github.com/repos/everydayhero/prismic-utils/statuses/916086c7c52d81032f97d6c58cf7ef0b5f612fd4","head":{"label":"everydayhero:topic/action-reducer","ref":"topic/action-reducer","sha":"916086c7c52d81032f97d6c58cf7ef0b5f612fd4","user":{"login":"everydayhero","id":558383,"avatar_url":"https://avatars.githubusercontent.com/u/558383?v=3","gravatar_id":"","url":"https://api.github.com/users/everydayhero","html_url":"https://github.com/everydayhero","followers_url":"https://api.github.com/users/everydayhero/followers","following_url":"https://api.github.com/users/everydayhero/following{/other_user}","gists_url":"https://api.github.com/users/everydayhero/gists{/gist_id}","starred_url":"https://api.github.com/users/everydayhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everydayhero/subscriptions","organizations_url":"https://api.github.com/users/everydayhero/orgs","repos_url":"https://api.github.com/users/everydayhero/repos","events_url":"https://api.github.com/users/everydayhero/events{/privacy}","received_events_url":"https://api.github.com/users/everydayhero/received_events","type":"Organization","site_admin":false},"repo":{"id":67394278,"name":"prismic-utils","full_name":"everydayhero/prismic-utils","owner":{"login":"everydayhero","id":558383,"avatar_url":"https://avatars.githubusercontent.com/u/558383?v=3","gravatar_id":"","url":"https://api.github.com/users/everydayhero","html_url":"https://github.com/everydayhero","followers_url":"https://api.github.com/users/everydayhero/followers","following_url":"https://api.github.com/users/everydayhero/following{/other_user}","gists_url":"https://api.github.com/users/everydayhero/gists{/gist_id}","starred_url":"https://api.github.com/users/everydayhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everydayhero/subscriptions","organizations_url":"https://api.github.com/users/everydayhero/orgs","repos_url":"https://api.github.com/users/everydayhero/repos","events_url":"https://api.github.com/users/everydayhero/events{/privacy}","received_events_url":"https://api.github.com/users/everydayhero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everydayhero/prismic-utils","description":"A collection of functions for parsing data from a Prismic CMS","fork":false,"url":"https://api.github.com/repos/everydayhero/prismic-utils","forks_url":"https://api.github.com/repos/everydayhero/prismic-utils/forks","keys_url":"https://api.github.com/repos/everydayhero/prismic-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everydayhero/prismic-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everydayhero/prismic-utils/teams","hooks_url":"https://api.github.com/repos/everydayhero/prismic-utils/hooks","issue_events_url":"https://api.github.com/repos/everydayhero/prismic-utils/issues/events{/number}","events_url":"https://api.github.com/repos/everydayhero/prismic-utils/events","assignees_url":"https://api.github.com/repos/everydayhero/prismic-utils/assignees{/user}","branches_url":"https://api.github.com/repos/everydayhero/prismic-utils/branches{/branch}","tags_url":"https://api.github.com/repos/everydayhero/prismic-utils/tags","blobs_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everydayhero/prismic-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/everydayhero/prismic-utils/languages","stargazers_url":"https://api.github.com/repos/everydayhero/prismic-utils/stargazers","contributors_url":"https://api.github.com/repos/everydayhero/prismic-utils/contributors","subscribers_url":"https://api.github.com/repos/everydayhero/prismic-utils/subscribers","subscription_url":"https://api.github.com/repos/everydayhero/prismic-utils/subscription","commits_url":"https://api.github.com/repos/everydayhero/prismic-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/everydayhero/prismic-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/everydayhero/prismic-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/everydayhero/prismic-utils/contents/{+path}","compare_url":"https://api.github.com/repos/everydayhero/prismic-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everydayhero/prismic-utils/merges","archive_url":"https://api.github.com/repos/everydayhero/prismic-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everydayhero/prismic-utils/downloads","issues_url":"https://api.github.com/repos/everydayhero/prismic-utils/issues{/number}","pulls_url":"https://api.github.com/repos/everydayhero/prismic-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/everydayhero/prismic-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/everydayhero/prismic-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everydayhero/prismic-utils/labels{/name}","releases_url":"https://api.github.com/repos/everydayhero/prismic-utils/releases{/id}","deployments_url":"https://api.github.com/repos/everydayhero/prismic-utils/deployments","created_at":"2016-09-05T06:33:33Z","updated_at":"2017-01-08T00:25:05Z","pushed_at":"2017-02-16T04:50:18Z","git_url":"git://github.com/everydayhero/prismic-utils.git","ssh_url":"git@github.com:everydayhero/prismic-utils.git","clone_url":"https://github.com/everydayhero/prismic-utils.git","svn_url":"https://github.com/everydayhero/prismic-utils","homepage":null,"size":75,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"everydayhero:master","ref":"master","sha":"87b987a56c9c11f40536e12997481f39135c5075","user":{"login":"everydayhero","id":558383,"avatar_url":"https://avatars.githubusercontent.com/u/558383?v=3","gravatar_id":"","url":"https://api.github.com/users/everydayhero","html_url":"https://github.com/everydayhero","followers_url":"https://api.github.com/users/everydayhero/followers","following_url":"https://api.github.com/users/everydayhero/following{/other_user}","gists_url":"https://api.github.com/users/everydayhero/gists{/gist_id}","starred_url":"https://api.github.com/users/everydayhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everydayhero/subscriptions","organizations_url":"https://api.github.com/users/everydayhero/orgs","repos_url":"https://api.github.com/users/everydayhero/repos","events_url":"https://api.github.com/users/everydayhero/events{/privacy}","received_events_url":"https://api.github.com/users/everydayhero/received_events","type":"Organization","site_admin":false},"repo":{"id":67394278,"name":"prismic-utils","full_name":"everydayhero/prismic-utils","owner":{"login":"everydayhero","id":558383,"avatar_url":"https://avatars.githubusercontent.com/u/558383?v=3","gravatar_id":"","url":"https://api.github.com/users/everydayhero","html_url":"https://github.com/everydayhero","followers_url":"https://api.github.com/users/everydayhero/followers","following_url":"https://api.github.com/users/everydayhero/following{/other_user}","gists_url":"https://api.github.com/users/everydayhero/gists{/gist_id}","starred_url":"https://api.github.com/users/everydayhero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/everydayhero/subscriptions","organizations_url":"https://api.github.com/users/everydayhero/orgs","repos_url":"https://api.github.com/users/everydayhero/repos","events_url":"https://api.github.com/users/everydayhero/events{/privacy}","received_events_url":"https://api.github.com/users/everydayhero/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/everydayhero/prismic-utils","description":"A collection of functions for parsing data from a Prismic CMS","fork":false,"url":"https://api.github.com/repos/everydayhero/prismic-utils","forks_url":"https://api.github.com/repos/everydayhero/prismic-utils/forks","keys_url":"https://api.github.com/repos/everydayhero/prismic-utils/keys{/key_id}","collaborators_url":"https://api.github.com/repos/everydayhero/prismic-utils/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/everydayhero/prismic-utils/teams","hooks_url":"https://api.github.com/repos/everydayhero/prismic-utils/hooks","issue_events_url":"https://api.github.com/repos/everydayhero/prismic-utils/issues/events{/number}","events_url":"https://api.github.com/repos/everydayhero/prismic-utils/events","assignees_url":"https://api.github.com/repos/everydayhero/prismic-utils/assignees{/user}","branches_url":"https://api.github.com/repos/everydayhero/prismic-utils/branches{/branch}","tags_url":"https://api.github.com/repos/everydayhero/prismic-utils/tags","blobs_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/refs{/sha}","trees_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/trees{/sha}","statuses_url":"https://api.github.com/repos/everydayhero/prismic-utils/statuses/{sha}","languages_url":"https://api.github.com/repos/everydayhero/prismic-utils/languages","stargazers_url":"https://api.github.com/repos/everydayhero/prismic-utils/stargazers","contributors_url":"https://api.github.com/repos/everydayhero/prismic-utils/contributors","subscribers_url":"https://api.github.com/repos/everydayhero/prismic-utils/subscribers","subscription_url":"https://api.github.com/repos/everydayhero/prismic-utils/subscription","commits_url":"https://api.github.com/repos/everydayhero/prismic-utils/commits{/sha}","git_commits_url":"https://api.github.com/repos/everydayhero/prismic-utils/git/commits{/sha}","comments_url":"https://api.github.com/repos/everydayhero/prismic-utils/comments{/number}","issue_comment_url":"https://api.github.com/repos/everydayhero/prismic-utils/issues/comments{/number}","contents_url":"https://api.github.com/repos/everydayhero/prismic-utils/contents/{+path}","compare_url":"https://api.github.com/repos/everydayhero/prismic-utils/compare/{base}...{head}","merges_url":"https://api.github.com/repos/everydayhero/prismic-utils/merges","archive_url":"https://api.github.com/repos/everydayhero/prismic-utils/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/everydayhero/prismic-utils/downloads","issues_url":"https://api.github.com/repos/everydayhero/prismic-utils/issues{/number}","pulls_url":"https://api.github.com/repos/everydayhero/prismic-utils/pulls{/number}","milestones_url":"https://api.github.com/repos/everydayhero/prismic-utils/milestones{/number}","notifications_url":"https://api.github.com/repos/everydayhero/prismic-utils/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/everydayhero/prismic-utils/labels{/name}","releases_url":"https://api.github.com/repos/everydayhero/prismic-utils/releases{/id}","deployments_url":"https://api.github.com/repos/everydayhero/prismic-utils/deployments","created_at":"2016-09-05T06:33:33Z","updated_at":"2017-01-08T00:25:05Z","pushed_at":"2017-02-16T04:50:18Z","git_url":"git://github.com/everydayhero/prismic-utils.git","ssh_url":"git@github.com:everydayhero/prismic-utils.git","clone_url":"https://github.com/everydayhero/prismic-utils.git","svn_url":"https://github.com/everydayhero/prismic-utils","homepage":null,"size":75,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/16"},"html":{"href":"https://github.com/everydayhero/prismic-utils/pull/16"},"issue":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/issues/16"},"comments":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/everydayhero/prismic-utils/statuses/916086c7c52d81032f97d6c58cf7ef0b5f612fd4"}}}}
{"actor":{"display_login":"ellsclytn"}}