{"action":"created","comment":{"url":"https://api.github.com/repos/EnoF/con-rest/pulls/comments/22794302","id":22794302,"diff_hunk":"@@ -0,0 +1,26 @@\n+/**\n+ * Created by Stefan Schacherl on 12.01.2015.\n+ */\n+(function getMongooseConfigScope(fs){\n+    'use strict';\n+\n+    function readConfigFile () {\n+        return fs.readFileSync('./mongooseConfig.json');","path":"server/getMongooseConfig.js","position":8,"original_position":8,"commit_id":"d29fd459f3e043ccaf9cfb3311a4f040d7d1a154","original_commit_id":"d29fd459f3e043ccaf9cfb3311a4f040d7d1a154","user":{"login":"dominikkukacka","id":243319,"avatar_url":"https://avatars.githubusercontent.com/u/243319?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikkukacka","html_url":"https://github.com/dominikkukacka","followers_url":"https://api.github.com/users/dominikkukacka/followers","following_url":"https://api.github.com/users/dominikkukacka/following{/other_user}","gists_url":"https://api.github.com/users/dominikkukacka/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikkukacka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikkukacka/subscriptions","organizations_url":"https://api.github.com/users/dominikkukacka/orgs","repos_url":"https://api.github.com/users/dominikkukacka/repos","events_url":"https://api.github.com/users/dominikkukacka/events{/privacy}","received_events_url":"https://api.github.com/users/dominikkukacka/received_events","type":"User","site_admin":false},"body":"make sure this path is ok for ops","created_at":"2015-01-12T14:57:55Z","updated_at":"2015-01-12T14:57:55Z","html_url":"https://github.com/EnoF/con-rest/pull/44#discussion_r22794302","pull_request_url":"https://api.github.com/repos/EnoF/con-rest/pulls/44","_links":{"self":{"href":"https://api.github.com/repos/EnoF/con-rest/pulls/comments/22794302"},"html":{"href":"https://github.com/EnoF/con-rest/pull/44#discussion_r22794302"},"pull_request":{"href":"https://api.github.com/repos/EnoF/con-rest/pulls/44"}}},"pull_request":{"url":"https://api.github.com/repos/EnoF/con-rest/pulls/44","id":27197205,"html_url":"https://github.com/EnoF/con-rest/pull/44","diff_url":"https://github.com/EnoF/con-rest/pull/44.diff","patch_url":"https://github.com/EnoF/con-rest/pull/44.patch","issue_url":"https://api.github.com/repos/EnoF/con-rest/issues/44","number":44,"state":"open","locked":false,"title":"Add configuration for Mongoose connection","user":{"login":"TheBay0r","id":8627051,"avatar_url":"https://avatars.githubusercontent.com/u/8627051?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBay0r","html_url":"https://github.com/TheBay0r","followers_url":"https://api.github.com/users/TheBay0r/followers","following_url":"https://api.github.com/users/TheBay0r/following{/other_user}","gists_url":"https://api.github.com/users/TheBay0r/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBay0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBay0r/subscriptions","organizations_url":"https://api.github.com/users/TheBay0r/orgs","repos_url":"https://api.github.com/users/TheBay0r/repos","events_url":"https://api.github.com/users/TheBay0r/events{/privacy}","received_events_url":"https://api.github.com/users/TheBay0r/received_events","type":"User","site_admin":false},"body":"- default: ENV_VARS\r\n- fallback: mongooseConfig.json\n<a href='#crh-start'></a><a href='#crh-data-%7B%7D'></a>\n<a href='https://www.codereviewhub.com/'><img src='http://www.codereviewhub.com/site/github-bar.png' height=40></a>\n<a href='https://www.codereviewhub.com/EnoF/con-rest/pull/44?approve=1'><img src='http://www.codereviewhub.com/site/github-approve.png' height=26></a>&nbsp;<a href='https://github.com/EnoF/con-rest/pull/44'><img src='http://www.codereviewhub.com/site/github-refresh.png' height=26></a>\n<a href='#crh-end'></a>","created_at":"2015-01-12T14:28:15Z","updated_at":"2015-01-12T14:57:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3e148b9526317cfc4b9c7c8484a05ce34372fc10","assignee":{"login":"dominikkukacka","id":243319,"avatar_url":"https://avatars.githubusercontent.com/u/243319?v=3","gravatar_id":"","url":"https://api.github.com/users/dominikkukacka","html_url":"https://github.com/dominikkukacka","followers_url":"https://api.github.com/users/dominikkukacka/followers","following_url":"https://api.github.com/users/dominikkukacka/following{/other_user}","gists_url":"https://api.github.com/users/dominikkukacka/gists{/gist_id}","starred_url":"https://api.github.com/users/dominikkukacka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominikkukacka/subscriptions","organizations_url":"https://api.github.com/users/dominikkukacka/orgs","repos_url":"https://api.github.com/users/dominikkukacka/repos","events_url":"https://api.github.com/users/dominikkukacka/events{/privacy}","received_events_url":"https://api.github.com/users/dominikkukacka/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/EnoF/con-rest/pulls/44/commits","review_comments_url":"https://api.github.com/repos/EnoF/con-rest/pulls/44/comments","review_comment_url":"https://api.github.com/repos/EnoF/con-rest/pulls/comments/{number}","comments_url":"https://api.github.com/repos/EnoF/con-rest/issues/44/comments","statuses_url":"https://api.github.com/repos/EnoF/con-rest/statuses/d29fd459f3e043ccaf9cfb3311a4f040d7d1a154","head":{"label":"TheBay0r:mongooseConfig","ref":"mongooseConfig","sha":"d29fd459f3e043ccaf9cfb3311a4f040d7d1a154","user":{"login":"TheBay0r","id":8627051,"avatar_url":"https://avatars.githubusercontent.com/u/8627051?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBay0r","html_url":"https://github.com/TheBay0r","followers_url":"https://api.github.com/users/TheBay0r/followers","following_url":"https://api.github.com/users/TheBay0r/following{/other_user}","gists_url":"https://api.github.com/users/TheBay0r/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBay0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBay0r/subscriptions","organizations_url":"https://api.github.com/users/TheBay0r/orgs","repos_url":"https://api.github.com/users/TheBay0r/repos","events_url":"https://api.github.com/users/TheBay0r/events{/privacy}","received_events_url":"https://api.github.com/users/TheBay0r/received_events","type":"User","site_admin":false},"repo":{"id":27229362,"name":"con-rest","full_name":"TheBay0r/con-rest","owner":{"login":"TheBay0r","id":8627051,"avatar_url":"https://avatars.githubusercontent.com/u/8627051?v=3","gravatar_id":"","url":"https://api.github.com/users/TheBay0r","html_url":"https://github.com/TheBay0r","followers_url":"https://api.github.com/users/TheBay0r/followers","following_url":"https://api.github.com/users/TheBay0r/following{/other_user}","gists_url":"https://api.github.com/users/TheBay0r/gists{/gist_id}","starred_url":"https://api.github.com/users/TheBay0r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheBay0r/subscriptions","organizations_url":"https://api.github.com/users/TheBay0r/orgs","repos_url":"https://api.github.com/users/TheBay0r/repos","events_url":"https://api.github.com/users/TheBay0r/events{/privacy}","received_events_url":"https://api.github.com/users/TheBay0r/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/TheBay0r/con-rest","description":"Configure your REST calls and chain the results into a workflow","fork":true,"url":"https://api.github.com/repos/TheBay0r/con-rest","forks_url":"https://api.github.com/repos/TheBay0r/con-rest/forks","keys_url":"https://api.github.com/repos/TheBay0r/con-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/TheBay0r/con-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/TheBay0r/con-rest/teams","hooks_url":"https://api.github.com/repos/TheBay0r/con-rest/hooks","issue_events_url":"https://api.github.com/repos/TheBay0r/con-rest/issues/events{/number}","events_url":"https://api.github.com/repos/TheBay0r/con-rest/events","assignees_url":"https://api.github.com/repos/TheBay0r/con-rest/assignees{/user}","branches_url":"https://api.github.com/repos/TheBay0r/con-rest/branches{/branch}","tags_url":"https://api.github.com/repos/TheBay0r/con-rest/tags","blobs_url":"https://api.github.com/repos/TheBay0r/con-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/TheBay0r/con-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/TheBay0r/con-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/TheBay0r/con-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/TheBay0r/con-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/TheBay0r/con-rest/languages","stargazers_url":"https://api.github.com/repos/TheBay0r/con-rest/stargazers","contributors_url":"https://api.github.com/repos/TheBay0r/con-rest/contributors","subscribers_url":"https://api.github.com/repos/TheBay0r/con-rest/subscribers","subscription_url":"https://api.github.com/repos/TheBay0r/con-rest/subscription","commits_url":"https://api.github.com/repos/TheBay0r/con-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/TheBay0r/con-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/TheBay0r/con-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/TheBay0r/con-rest/issues/comments/{number}","contents_url":"https://api.github.com/repos/TheBay0r/con-rest/contents/{+path}","compare_url":"https://api.github.com/repos/TheBay0r/con-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/TheBay0r/con-rest/merges","archive_url":"https://api.github.com/repos/TheBay0r/con-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/TheBay0r/con-rest/downloads","issues_url":"https://api.github.com/repos/TheBay0r/con-rest/issues{/number}","pulls_url":"https://api.github.com/repos/TheBay0r/con-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/TheBay0r/con-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/TheBay0r/con-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/TheBay0r/con-rest/labels{/name}","releases_url":"https://api.github.com/repos/TheBay0r/con-rest/releases{/id}","created_at":"2014-11-27T14:44:17Z","updated_at":"2015-01-09T09:58:25Z","pushed_at":"2015-01-12T14:28:02Z","git_url":"git://github.com/TheBay0r/con-rest.git","ssh_url":"git@github.com:TheBay0r/con-rest.git","clone_url":"https://github.com/TheBay0r/con-rest.git","svn_url":"https://github.com/TheBay0r/con-rest","homepage":"http://enof.github.io/con-rest/","size":390,"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":"master"}},"base":{"label":"EnoF:master","ref":"master","sha":"b6954c1ad9e79e3d347d3b4bbf3a7e1b5551db3a","user":{"login":"EnoF","id":1508400,"avatar_url":"https://avatars.githubusercontent.com/u/1508400?v=3","gravatar_id":"","url":"https://api.github.com/users/EnoF","html_url":"https://github.com/EnoF","followers_url":"https://api.github.com/users/EnoF/followers","following_url":"https://api.github.com/users/EnoF/following{/other_user}","gists_url":"https://api.github.com/users/EnoF/gists{/gist_id}","starred_url":"https://api.github.com/users/EnoF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnoF/subscriptions","organizations_url":"https://api.github.com/users/EnoF/orgs","repos_url":"https://api.github.com/users/EnoF/repos","events_url":"https://api.github.com/users/EnoF/events{/privacy}","received_events_url":"https://api.github.com/users/EnoF/received_events","type":"User","site_admin":false},"repo":{"id":25959093,"name":"con-rest","full_name":"EnoF/con-rest","owner":{"login":"EnoF","id":1508400,"avatar_url":"https://avatars.githubusercontent.com/u/1508400?v=3","gravatar_id":"","url":"https://api.github.com/users/EnoF","html_url":"https://github.com/EnoF","followers_url":"https://api.github.com/users/EnoF/followers","following_url":"https://api.github.com/users/EnoF/following{/other_user}","gists_url":"https://api.github.com/users/EnoF/gists{/gist_id}","starred_url":"https://api.github.com/users/EnoF/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EnoF/subscriptions","organizations_url":"https://api.github.com/users/EnoF/orgs","repos_url":"https://api.github.com/users/EnoF/repos","events_url":"https://api.github.com/users/EnoF/events{/privacy}","received_events_url":"https://api.github.com/users/EnoF/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/EnoF/con-rest","description":"Configure your REST calls and chain the results into a workflow","fork":false,"url":"https://api.github.com/repos/EnoF/con-rest","forks_url":"https://api.github.com/repos/EnoF/con-rest/forks","keys_url":"https://api.github.com/repos/EnoF/con-rest/keys{/key_id}","collaborators_url":"https://api.github.com/repos/EnoF/con-rest/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/EnoF/con-rest/teams","hooks_url":"https://api.github.com/repos/EnoF/con-rest/hooks","issue_events_url":"https://api.github.com/repos/EnoF/con-rest/issues/events{/number}","events_url":"https://api.github.com/repos/EnoF/con-rest/events","assignees_url":"https://api.github.com/repos/EnoF/con-rest/assignees{/user}","branches_url":"https://api.github.com/repos/EnoF/con-rest/branches{/branch}","tags_url":"https://api.github.com/repos/EnoF/con-rest/tags","blobs_url":"https://api.github.com/repos/EnoF/con-rest/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/EnoF/con-rest/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/EnoF/con-rest/git/refs{/sha}","trees_url":"https://api.github.com/repos/EnoF/con-rest/git/trees{/sha}","statuses_url":"https://api.github.com/repos/EnoF/con-rest/statuses/{sha}","languages_url":"https://api.github.com/repos/EnoF/con-rest/languages","stargazers_url":"https://api.github.com/repos/EnoF/con-rest/stargazers","contributors_url":"https://api.github.com/repos/EnoF/con-rest/contributors","subscribers_url":"https://api.github.com/repos/EnoF/con-rest/subscribers","subscription_url":"https://api.github.com/repos/EnoF/con-rest/subscription","commits_url":"https://api.github.com/repos/EnoF/con-rest/commits{/sha}","git_commits_url":"https://api.github.com/repos/EnoF/con-rest/git/commits{/sha}","comments_url":"https://api.github.com/repos/EnoF/con-rest/comments{/number}","issue_comment_url":"https://api.github.com/repos/EnoF/con-rest/issues/comments/{number}","contents_url":"https://api.github.com/repos/EnoF/con-rest/contents/{+path}","compare_url":"https://api.github.com/repos/EnoF/con-rest/compare/{base}...{head}","merges_url":"https://api.github.com/repos/EnoF/con-rest/merges","archive_url":"https://api.github.com/repos/EnoF/con-rest/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/EnoF/con-rest/downloads","issues_url":"https://api.github.com/repos/EnoF/con-rest/issues{/number}","pulls_url":"https://api.github.com/repos/EnoF/con-rest/pulls{/number}","milestones_url":"https://api.github.com/repos/EnoF/con-rest/milestones{/number}","notifications_url":"https://api.github.com/repos/EnoF/con-rest/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/EnoF/con-rest/labels{/name}","releases_url":"https://api.github.com/repos/EnoF/con-rest/releases{/id}","created_at":"2014-10-30T07:09:31Z","updated_at":"2015-01-12T10:05:47Z","pushed_at":"2015-01-12T14:52:44Z","git_url":"git://github.com/EnoF/con-rest.git","ssh_url":"git@github.com:EnoF/con-rest.git","clone_url":"https://github.com/EnoF/con-rest.git","svn_url":"https://github.com/EnoF/con-rest","homepage":"http://enof.github.io/con-rest/","size":4094,"stargazers_count":4,"watchers_count":4,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":4,"mirror_url":null,"open_issues_count":1,"forks":4,"open_issues":1,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/EnoF/con-rest/pulls/44"},"html":{"href":"https://github.com/EnoF/con-rest/pull/44"},"issue":{"href":"https://api.github.com/repos/EnoF/con-rest/issues/44"},"comments":{"href":"https://api.github.com/repos/EnoF/con-rest/issues/44/comments"},"review_comments":{"href":"https://api.github.com/repos/EnoF/con-rest/pulls/44/comments"},"review_comment":{"href":"https://api.github.com/repos/EnoF/con-rest/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/EnoF/con-rest/pulls/44/commits"},"statuses":{"href":"https://api.github.com/repos/EnoF/con-rest/statuses/d29fd459f3e043ccaf9cfb3311a4f040d7d1a154"}}}}