{"action":"created","comment":{"url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/comments/78276168","id":78276168,"diff_hunk":"@@ -0,0 +1,134 @@\n+'use strict';\n+\n+\n+let _       = require('lodash'),\n+    path    = require('path');\n+\n+class Config {\n+\n+    constructor(pkg, options, basePath) {\n+\n+        this.options = options;\n+        this.basePath = basePath;\n+        this.cacheControlHeader = process.env.CACHE_CONTROL || this.options.maxAge || 'max-age=60';\n+        this.customHeaders = this.options.customHeaders || [];\n+        this.description = this.options.description || pkg.description;\n+        this.env = process.env.ENVIRONMENT || process.env.NODE_ENV || this.options.host || 'development';\n+        this.envProd = this.options.envProd || 'production';\n+        this.port = process.env.PORT || this.options.port || 3000;\n+        this.host = process.env.HOST || this.options.host || '0.0.0.0';","path":"lib/config.js","position":19,"original_position":19,"commit_id":"2b6e4538076b656e8e295469627b5177ff70e2e0","original_commit_id":"361f147a8fb302cd16a5aa44e95554daed612083","user":{"login":"adslaton","id":1334908,"avatar_url":"https://avatars.githubusercontent.com/u/1334908?v=3","gravatar_id":"","url":"https://api.github.com/users/adslaton","html_url":"https://github.com/adslaton","followers_url":"https://api.github.com/users/adslaton/followers","following_url":"https://api.github.com/users/adslaton/following{/other_user}","gists_url":"https://api.github.com/users/adslaton/gists{/gist_id}","starred_url":"https://api.github.com/users/adslaton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/adslaton/subscriptions","organizations_url":"https://api.github.com/users/adslaton/orgs","repos_url":"https://api.github.com/users/adslaton/repos","events_url":"https://api.github.com/users/adslaton/events{/privacy}","received_events_url":"https://api.github.com/users/adslaton/received_events","type":"User","site_admin":false},"body":"I disagree but we can certainly chat in person about it.","created_at":"2016-09-10T11:53:12Z","updated_at":"2016-09-10T11:53:12Z","html_url":"https://github.com/cnnlabs/cnn-hapi/pull/37#discussion_r78276168","pull_request_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/37","_links":{"self":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/comments/78276168"},"html":{"href":"https://github.com/cnnlabs/cnn-hapi/pull/37#discussion_r78276168"},"pull_request":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/37"}}},"pull_request":{"url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/37","id":84667555,"html_url":"https://github.com/cnnlabs/cnn-hapi/pull/37","diff_url":"https://github.com/cnnlabs/cnn-hapi/pull/37.diff","patch_url":"https://github.com/cnnlabs/cnn-hapi/pull/37.patch","issue_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/37","number":37,"state":"open","locked":false,"title":"Feature/v1.0.0","user":{"login":"codeclout","id":936085,"avatar_url":"https://avatars.githubusercontent.com/u/936085?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclout","html_url":"https://github.com/codeclout","followers_url":"https://api.github.com/users/codeclout/followers","following_url":"https://api.github.com/users/codeclout/following{/other_user}","gists_url":"https://api.github.com/users/codeclout/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclout/subscriptions","organizations_url":"https://api.github.com/users/codeclout/orgs","repos_url":"https://api.github.com/users/codeclout/repos","events_url":"https://api.github.com/users/codeclout/events{/privacy}","received_events_url":"https://api.github.com/users/codeclout/received_events","type":"User","site_admin":false},"body":"* cnn-hapi now extends events emitter\r\n* major refactor / same functionality\r\n* fixed bugs with showing robots.txt\r\n* updates to current node\r\n* **how to test** - spin up the example application","created_at":"2016-09-09T15:11:20Z","updated_at":"2016-09-10T11:53:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0fb135284c7dd99f939b2ccb493cd10695fd4d4c","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/37/commits","review_comments_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/37/comments","review_comment_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/37/comments","statuses_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/statuses/2b6e4538076b656e8e295469627b5177ff70e2e0","head":{"label":"codeclout:feature/v0.13.0","ref":"feature/v0.13.0","sha":"2b6e4538076b656e8e295469627b5177ff70e2e0","user":{"login":"codeclout","id":936085,"avatar_url":"https://avatars.githubusercontent.com/u/936085?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclout","html_url":"https://github.com/codeclout","followers_url":"https://api.github.com/users/codeclout/followers","following_url":"https://api.github.com/users/codeclout/following{/other_user}","gists_url":"https://api.github.com/users/codeclout/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclout/subscriptions","organizations_url":"https://api.github.com/users/codeclout/orgs","repos_url":"https://api.github.com/users/codeclout/repos","events_url":"https://api.github.com/users/codeclout/events{/privacy}","received_events_url":"https://api.github.com/users/codeclout/received_events","type":"User","site_admin":false},"repo":{"id":67728748,"name":"cnn-hapi","full_name":"codeclout/cnn-hapi","owner":{"login":"codeclout","id":936085,"avatar_url":"https://avatars.githubusercontent.com/u/936085?v=3","gravatar_id":"","url":"https://api.github.com/users/codeclout","html_url":"https://github.com/codeclout","followers_url":"https://api.github.com/users/codeclout/followers","following_url":"https://api.github.com/users/codeclout/following{/other_user}","gists_url":"https://api.github.com/users/codeclout/gists{/gist_id}","starred_url":"https://api.github.com/users/codeclout/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/codeclout/subscriptions","organizations_url":"https://api.github.com/users/codeclout/orgs","repos_url":"https://api.github.com/users/codeclout/repos","events_url":"https://api.github.com/users/codeclout/events{/privacy}","received_events_url":"https://api.github.com/users/codeclout/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/codeclout/cnn-hapi","description":"CNN Hapi","fork":true,"url":"https://api.github.com/repos/codeclout/cnn-hapi","forks_url":"https://api.github.com/repos/codeclout/cnn-hapi/forks","keys_url":"https://api.github.com/repos/codeclout/cnn-hapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/codeclout/cnn-hapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/codeclout/cnn-hapi/teams","hooks_url":"https://api.github.com/repos/codeclout/cnn-hapi/hooks","issue_events_url":"https://api.github.com/repos/codeclout/cnn-hapi/issues/events{/number}","events_url":"https://api.github.com/repos/codeclout/cnn-hapi/events","assignees_url":"https://api.github.com/repos/codeclout/cnn-hapi/assignees{/user}","branches_url":"https://api.github.com/repos/codeclout/cnn-hapi/branches{/branch}","tags_url":"https://api.github.com/repos/codeclout/cnn-hapi/tags","blobs_url":"https://api.github.com/repos/codeclout/cnn-hapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/codeclout/cnn-hapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/codeclout/cnn-hapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/codeclout/cnn-hapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/codeclout/cnn-hapi/statuses/{sha}","languages_url":"https://api.github.com/repos/codeclout/cnn-hapi/languages","stargazers_url":"https://api.github.com/repos/codeclout/cnn-hapi/stargazers","contributors_url":"https://api.github.com/repos/codeclout/cnn-hapi/contributors","subscribers_url":"https://api.github.com/repos/codeclout/cnn-hapi/subscribers","subscription_url":"https://api.github.com/repos/codeclout/cnn-hapi/subscription","commits_url":"https://api.github.com/repos/codeclout/cnn-hapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/codeclout/cnn-hapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/codeclout/cnn-hapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/codeclout/cnn-hapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/codeclout/cnn-hapi/contents/{+path}","compare_url":"https://api.github.com/repos/codeclout/cnn-hapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/codeclout/cnn-hapi/merges","archive_url":"https://api.github.com/repos/codeclout/cnn-hapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/codeclout/cnn-hapi/downloads","issues_url":"https://api.github.com/repos/codeclout/cnn-hapi/issues{/number}","pulls_url":"https://api.github.com/repos/codeclout/cnn-hapi/pulls{/number}","milestones_url":"https://api.github.com/repos/codeclout/cnn-hapi/milestones{/number}","notifications_url":"https://api.github.com/repos/codeclout/cnn-hapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/codeclout/cnn-hapi/labels{/name}","releases_url":"https://api.github.com/repos/codeclout/cnn-hapi/releases{/id}","deployments_url":"https://api.github.com/repos/codeclout/cnn-hapi/deployments","created_at":"2016-09-08T18:18:29Z","updated_at":"2016-09-08T18:18:30Z","pushed_at":"2016-09-09T21:41:10Z","git_url":"git://github.com/codeclout/cnn-hapi.git","ssh_url":"git@github.com:codeclout/cnn-hapi.git","clone_url":"https://github.com/codeclout/cnn-hapi.git","svn_url":"https://github.com/codeclout/cnn-hapi","homepage":null,"size":103,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"develop"}},"base":{"label":"cnnlabs:develop","ref":"develop","sha":"9eb5e24c24bdfbf0986d40ce54ad469f3445eba2","user":{"login":"cnnlabs","id":16924554,"avatar_url":"https://avatars.githubusercontent.com/u/16924554?v=3","gravatar_id":"","url":"https://api.github.com/users/cnnlabs","html_url":"https://github.com/cnnlabs","followers_url":"https://api.github.com/users/cnnlabs/followers","following_url":"https://api.github.com/users/cnnlabs/following{/other_user}","gists_url":"https://api.github.com/users/cnnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/cnnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnnlabs/subscriptions","organizations_url":"https://api.github.com/users/cnnlabs/orgs","repos_url":"https://api.github.com/users/cnnlabs/repos","events_url":"https://api.github.com/users/cnnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/cnnlabs/received_events","type":"Organization","site_admin":false},"repo":{"id":51035007,"name":"cnn-hapi","full_name":"cnnlabs/cnn-hapi","owner":{"login":"cnnlabs","id":16924554,"avatar_url":"https://avatars.githubusercontent.com/u/16924554?v=3","gravatar_id":"","url":"https://api.github.com/users/cnnlabs","html_url":"https://github.com/cnnlabs","followers_url":"https://api.github.com/users/cnnlabs/followers","following_url":"https://api.github.com/users/cnnlabs/following{/other_user}","gists_url":"https://api.github.com/users/cnnlabs/gists{/gist_id}","starred_url":"https://api.github.com/users/cnnlabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnnlabs/subscriptions","organizations_url":"https://api.github.com/users/cnnlabs/orgs","repos_url":"https://api.github.com/users/cnnlabs/repos","events_url":"https://api.github.com/users/cnnlabs/events{/privacy}","received_events_url":"https://api.github.com/users/cnnlabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cnnlabs/cnn-hapi","description":"CNN Hapi","fork":false,"url":"https://api.github.com/repos/cnnlabs/cnn-hapi","forks_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/forks","keys_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/teams","hooks_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/hooks","issue_events_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/events{/number}","events_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/events","assignees_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/assignees{/user}","branches_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/branches{/branch}","tags_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/tags","blobs_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/refs{/sha}","trees_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/statuses/{sha}","languages_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/languages","stargazers_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/stargazers","contributors_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/contributors","subscribers_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/subscribers","subscription_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/subscription","commits_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/commits{/sha}","git_commits_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/git/commits{/sha}","comments_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/comments{/number}","issue_comment_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/comments{/number}","contents_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/contents/{+path}","compare_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/merges","archive_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/downloads","issues_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues{/number}","pulls_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls{/number}","milestones_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/milestones{/number}","notifications_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/labels{/name}","releases_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/releases{/id}","deployments_url":"https://api.github.com/repos/cnnlabs/cnn-hapi/deployments","created_at":"2016-02-03T22:23:42Z","updated_at":"2016-08-19T19:19:37Z","pushed_at":"2016-09-09T21:41:10Z","git_url":"git://github.com/cnnlabs/cnn-hapi.git","ssh_url":"git@github.com:cnnlabs/cnn-hapi.git","clone_url":"https://github.com/cnnlabs/cnn-hapi.git","svn_url":"https://github.com/cnnlabs/cnn-hapi","homepage":null,"size":97,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":4,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/37"},"html":{"href":"https://github.com/cnnlabs/cnn-hapi/pull/37"},"issue":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/37"},"comments":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/issues/37/comments"},"review_comments":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/37/comments"},"review_comment":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/pulls/37/commits"},"statuses":{"href":"https://api.github.com/repos/cnnlabs/cnn-hapi/statuses/2b6e4538076b656e8e295469627b5177ff70e2e0"}}}}
{"actor":{"display_login":"adslaton"}}