{"action":"created","comment":{"url":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/comments/86141862","pull_request_review_id":6813637,"id":86141862,"diff_hunk":"@@ -0,0 +1,48 @@\n+import { resolve, parse, format } from 'url';\n+import request from 'request';\n+\n+// Fetches blog posts from wordpress api.\n+export const getPosts\n+  = () =>\n+    promiseForRequest(\n+      createConfig(config, blogPostsUrl, 'GET')\n+    );\n+\n+// ------------------------------------------------------------\n+\n+// Urls.  We might consider moving these to a config file.","path":"es6/blog/wordpressApi.js","position":13,"original_position":13,"commit_id":"1d521fd148f8cc885bfe1154395437990b57c526","original_commit_id":"1d521fd148f8cc885bfe1154395437990b57c526","user":{"login":"kianoshp","id":698135,"avatar_url":"https://avatars.githubusercontent.com/u/698135?v=3","gravatar_id":"","url":"https://api.github.com/users/kianoshp","html_url":"https://github.com/kianoshp","followers_url":"https://api.github.com/users/kianoshp/followers","following_url":"https://api.github.com/users/kianoshp/following{/other_user}","gists_url":"https://api.github.com/users/kianoshp/gists{/gist_id}","starred_url":"https://api.github.com/users/kianoshp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kianoshp/subscriptions","organizations_url":"https://api.github.com/users/kianoshp/orgs","repos_url":"https://api.github.com/users/kianoshp/repos","events_url":"https://api.github.com/users/kianoshp/events{/privacy}","received_events_url":"https://api.github.com/users/kianoshp/received_events","type":"User","site_admin":false},"body":"Yes, good idea. A `config` file is a good abtraction","created_at":"2016-11-02T13:38:18Z","updated_at":"2016-11-02T13:52:16Z","html_url":"https://github.com/iotopia-solutions/the-site/pull/8#discussion_r86141862","pull_request_url":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/8","_links":{"self":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/comments/86141862"},"html":{"href":"https://github.com/iotopia-solutions/the-site/pull/8#discussion_r86141862"},"pull_request":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/8"}}},"pull_request":{"url":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/8","id":91681521,"html_url":"https://github.com/iotopia-solutions/the-site/pull/8","diff_url":"https://github.com/iotopia-solutions/the-site/pull/8.diff","patch_url":"https://github.com/iotopia-solutions/the-site/pull/8.patch","issue_url":"https://api.github.com/repos/iotopia-solutions/the-site/issues/8","number":8,"state":"open","locked":false,"title":"John new design","user":{"login":"unscriptable","id":46133,"avatar_url":"https://avatars.githubusercontent.com/u/46133?v=3","gravatar_id":"","url":"https://api.github.com/users/unscriptable","html_url":"https://github.com/unscriptable","followers_url":"https://api.github.com/users/unscriptable/followers","following_url":"https://api.github.com/users/unscriptable/following{/other_user}","gists_url":"https://api.github.com/users/unscriptable/gists{/gist_id}","starred_url":"https://api.github.com/users/unscriptable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unscriptable/subscriptions","organizations_url":"https://api.github.com/users/unscriptable/orgs","repos_url":"https://api.github.com/users/unscriptable/repos","events_url":"https://api.github.com/users/unscriptable/events{/privacy}","received_events_url":"https://api.github.com/users/unscriptable/received_events","type":"User","site_admin":false},"body":"Add support for server-side react and add support for server-rendered blog posts excerpts.  \r\n\r\nI decided to use a functional coding style.  I'd like to use IoC patterns, but would have to refactor app.js, too.\r\n\r\nThis probably still needs a bit of CSS work, but I wanted to submit something for folks to review.  It's unfortunate that the compiled css and es5 code is in here, because it makes the commits at least twice as large.  I'm guessing that having it in here helps make some other task easier?\r\n\r\n*Ready to review*","created_at":"2016-10-31T20:13:04Z","updated_at":"2016-11-02T13:52:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"31f17dfb4d8d072eb62c398c0ffed417674a1c86","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/8/commits","review_comments_url":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/8/comments","review_comment_url":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/comments{/number}","comments_url":"https://api.github.com/repos/iotopia-solutions/the-site/issues/8/comments","statuses_url":"https://api.github.com/repos/iotopia-solutions/the-site/statuses/1d521fd148f8cc885bfe1154395437990b57c526","head":{"label":"unscriptable:john-new-design","ref":"john-new-design","sha":"1d521fd148f8cc885bfe1154395437990b57c526","user":{"login":"unscriptable","id":46133,"avatar_url":"https://avatars.githubusercontent.com/u/46133?v=3","gravatar_id":"","url":"https://api.github.com/users/unscriptable","html_url":"https://github.com/unscriptable","followers_url":"https://api.github.com/users/unscriptable/followers","following_url":"https://api.github.com/users/unscriptable/following{/other_user}","gists_url":"https://api.github.com/users/unscriptable/gists{/gist_id}","starred_url":"https://api.github.com/users/unscriptable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unscriptable/subscriptions","organizations_url":"https://api.github.com/users/unscriptable/orgs","repos_url":"https://api.github.com/users/unscriptable/repos","events_url":"https://api.github.com/users/unscriptable/events{/privacy}","received_events_url":"https://api.github.com/users/unscriptable/received_events","type":"User","site_admin":false},"repo":{"id":72473713,"name":"the-site","full_name":"unscriptable/the-site","owner":{"login":"unscriptable","id":46133,"avatar_url":"https://avatars.githubusercontent.com/u/46133?v=3","gravatar_id":"","url":"https://api.github.com/users/unscriptable","html_url":"https://github.com/unscriptable","followers_url":"https://api.github.com/users/unscriptable/followers","following_url":"https://api.github.com/users/unscriptable/following{/other_user}","gists_url":"https://api.github.com/users/unscriptable/gists{/gist_id}","starred_url":"https://api.github.com/users/unscriptable/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/unscriptable/subscriptions","organizations_url":"https://api.github.com/users/unscriptable/orgs","repos_url":"https://api.github.com/users/unscriptable/repos","events_url":"https://api.github.com/users/unscriptable/events{/privacy}","received_events_url":"https://api.github.com/users/unscriptable/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/unscriptable/the-site","description":"Website for Iotopia Solutions","fork":true,"url":"https://api.github.com/repos/unscriptable/the-site","forks_url":"https://api.github.com/repos/unscriptable/the-site/forks","keys_url":"https://api.github.com/repos/unscriptable/the-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/unscriptable/the-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/unscriptable/the-site/teams","hooks_url":"https://api.github.com/repos/unscriptable/the-site/hooks","issue_events_url":"https://api.github.com/repos/unscriptable/the-site/issues/events{/number}","events_url":"https://api.github.com/repos/unscriptable/the-site/events","assignees_url":"https://api.github.com/repos/unscriptable/the-site/assignees{/user}","branches_url":"https://api.github.com/repos/unscriptable/the-site/branches{/branch}","tags_url":"https://api.github.com/repos/unscriptable/the-site/tags","blobs_url":"https://api.github.com/repos/unscriptable/the-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/unscriptable/the-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/unscriptable/the-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/unscriptable/the-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/unscriptable/the-site/statuses/{sha}","languages_url":"https://api.github.com/repos/unscriptable/the-site/languages","stargazers_url":"https://api.github.com/repos/unscriptable/the-site/stargazers","contributors_url":"https://api.github.com/repos/unscriptable/the-site/contributors","subscribers_url":"https://api.github.com/repos/unscriptable/the-site/subscribers","subscription_url":"https://api.github.com/repos/unscriptable/the-site/subscription","commits_url":"https://api.github.com/repos/unscriptable/the-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/unscriptable/the-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/unscriptable/the-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/unscriptable/the-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/unscriptable/the-site/contents/{+path}","compare_url":"https://api.github.com/repos/unscriptable/the-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/unscriptable/the-site/merges","archive_url":"https://api.github.com/repos/unscriptable/the-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/unscriptable/the-site/downloads","issues_url":"https://api.github.com/repos/unscriptable/the-site/issues{/number}","pulls_url":"https://api.github.com/repos/unscriptable/the-site/pulls{/number}","milestones_url":"https://api.github.com/repos/unscriptable/the-site/milestones{/number}","notifications_url":"https://api.github.com/repos/unscriptable/the-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/unscriptable/the-site/labels{/name}","releases_url":"https://api.github.com/repos/unscriptable/the-site/releases{/id}","deployments_url":"https://api.github.com/repos/unscriptable/the-site/deployments","created_at":"2016-10-31T20:07:54Z","updated_at":"2016-10-31T20:07:59Z","pushed_at":"2016-11-01T23:32:46Z","git_url":"git://github.com/unscriptable/the-site.git","ssh_url":"git@github.com:unscriptable/the-site.git","clone_url":"https://github.com/unscriptable/the-site.git","svn_url":"https://github.com/unscriptable/the-site","homepage":null,"size":69314,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"iotopia-solutions:new-design","ref":"new-design","sha":"6cd1e58f680006a275e30c577c7d990ff3275219","user":{"login":"iotopia-solutions","id":16997112,"avatar_url":"https://avatars.githubusercontent.com/u/16997112?v=3","gravatar_id":"","url":"https://api.github.com/users/iotopia-solutions","html_url":"https://github.com/iotopia-solutions","followers_url":"https://api.github.com/users/iotopia-solutions/followers","following_url":"https://api.github.com/users/iotopia-solutions/following{/other_user}","gists_url":"https://api.github.com/users/iotopia-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/iotopia-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iotopia-solutions/subscriptions","organizations_url":"https://api.github.com/users/iotopia-solutions/orgs","repos_url":"https://api.github.com/users/iotopia-solutions/repos","events_url":"https://api.github.com/users/iotopia-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/iotopia-solutions/received_events","type":"Organization","site_admin":false},"repo":{"id":50809249,"name":"the-site","full_name":"iotopia-solutions/the-site","owner":{"login":"iotopia-solutions","id":16997112,"avatar_url":"https://avatars.githubusercontent.com/u/16997112?v=3","gravatar_id":"","url":"https://api.github.com/users/iotopia-solutions","html_url":"https://github.com/iotopia-solutions","followers_url":"https://api.github.com/users/iotopia-solutions/followers","following_url":"https://api.github.com/users/iotopia-solutions/following{/other_user}","gists_url":"https://api.github.com/users/iotopia-solutions/gists{/gist_id}","starred_url":"https://api.github.com/users/iotopia-solutions/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iotopia-solutions/subscriptions","organizations_url":"https://api.github.com/users/iotopia-solutions/orgs","repos_url":"https://api.github.com/users/iotopia-solutions/repos","events_url":"https://api.github.com/users/iotopia-solutions/events{/privacy}","received_events_url":"https://api.github.com/users/iotopia-solutions/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/iotopia-solutions/the-site","description":"Website for Iotopia Solutions","fork":false,"url":"https://api.github.com/repos/iotopia-solutions/the-site","forks_url":"https://api.github.com/repos/iotopia-solutions/the-site/forks","keys_url":"https://api.github.com/repos/iotopia-solutions/the-site/keys{/key_id}","collaborators_url":"https://api.github.com/repos/iotopia-solutions/the-site/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/iotopia-solutions/the-site/teams","hooks_url":"https://api.github.com/repos/iotopia-solutions/the-site/hooks","issue_events_url":"https://api.github.com/repos/iotopia-solutions/the-site/issues/events{/number}","events_url":"https://api.github.com/repos/iotopia-solutions/the-site/events","assignees_url":"https://api.github.com/repos/iotopia-solutions/the-site/assignees{/user}","branches_url":"https://api.github.com/repos/iotopia-solutions/the-site/branches{/branch}","tags_url":"https://api.github.com/repos/iotopia-solutions/the-site/tags","blobs_url":"https://api.github.com/repos/iotopia-solutions/the-site/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/iotopia-solutions/the-site/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/iotopia-solutions/the-site/git/refs{/sha}","trees_url":"https://api.github.com/repos/iotopia-solutions/the-site/git/trees{/sha}","statuses_url":"https://api.github.com/repos/iotopia-solutions/the-site/statuses/{sha}","languages_url":"https://api.github.com/repos/iotopia-solutions/the-site/languages","stargazers_url":"https://api.github.com/repos/iotopia-solutions/the-site/stargazers","contributors_url":"https://api.github.com/repos/iotopia-solutions/the-site/contributors","subscribers_url":"https://api.github.com/repos/iotopia-solutions/the-site/subscribers","subscription_url":"https://api.github.com/repos/iotopia-solutions/the-site/subscription","commits_url":"https://api.github.com/repos/iotopia-solutions/the-site/commits{/sha}","git_commits_url":"https://api.github.com/repos/iotopia-solutions/the-site/git/commits{/sha}","comments_url":"https://api.github.com/repos/iotopia-solutions/the-site/comments{/number}","issue_comment_url":"https://api.github.com/repos/iotopia-solutions/the-site/issues/comments{/number}","contents_url":"https://api.github.com/repos/iotopia-solutions/the-site/contents/{+path}","compare_url":"https://api.github.com/repos/iotopia-solutions/the-site/compare/{base}...{head}","merges_url":"https://api.github.com/repos/iotopia-solutions/the-site/merges","archive_url":"https://api.github.com/repos/iotopia-solutions/the-site/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/iotopia-solutions/the-site/downloads","issues_url":"https://api.github.com/repos/iotopia-solutions/the-site/issues{/number}","pulls_url":"https://api.github.com/repos/iotopia-solutions/the-site/pulls{/number}","milestones_url":"https://api.github.com/repos/iotopia-solutions/the-site/milestones{/number}","notifications_url":"https://api.github.com/repos/iotopia-solutions/the-site/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/iotopia-solutions/the-site/labels{/name}","releases_url":"https://api.github.com/repos/iotopia-solutions/the-site/releases{/id}","deployments_url":"https://api.github.com/repos/iotopia-solutions/the-site/deployments","created_at":"2016-02-01T02:48:43Z","updated_at":"2016-10-21T15:21:42Z","pushed_at":"2016-11-01T23:32:46Z","git_url":"git://github.com/iotopia-solutions/the-site.git","ssh_url":"git@github.com:iotopia-solutions/the-site.git","clone_url":"https://github.com/iotopia-solutions/the-site.git","svn_url":"https://github.com/iotopia-solutions/the-site","homepage":null,"size":69282,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":2,"forks":1,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/8"},"html":{"href":"https://github.com/iotopia-solutions/the-site/pull/8"},"issue":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/issues/8"},"comments":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/issues/8/comments"},"review_comments":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/8/comments"},"review_comment":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/pulls/8/commits"},"statuses":{"href":"https://api.github.com/repos/iotopia-solutions/the-site/statuses/1d521fd148f8cc885bfe1154395437990b57c526"}}}}
{"actor":{"display_login":"kianoshp"}}