{"action":"created","comment":{"url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/comments/240492131","pull_request_review_id":183532372,"id":240492131,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI0MDQ5MjEzMQ==","diff_hunk":"@@ -8,6 +8,7 @@ dotenv.config();\n const freckleUrl = 'https://api.letsfreckle.com/v2';\n const freckleToken = process.env.FRECKLE_ADMIN_TOKEN;\n \n+","path":"server/modules/freckle/projects.js","position":4,"original_position":4,"commit_id":"f66c147a7f02f4239dc4712daed168d7c307004c","original_commit_id":"f66c147a7f02f4239dc4712daed168d7c307004c","user":{"login":"Collins33","id":23402614,"node_id":"MDQ6VXNlcjIzNDAyNjE0","avatar_url":"https://avatars2.githubusercontent.com/u/23402614?v=4","gravatar_id":"","url":"https://api.github.com/users/Collins33","html_url":"https://github.com/Collins33","followers_url":"https://api.github.com/users/Collins33/followers","following_url":"https://api.github.com/users/Collins33/following{/other_user}","gists_url":"https://api.github.com/users/Collins33/gists{/gist_id}","starred_url":"https://api.github.com/users/Collins33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Collins33/subscriptions","organizations_url":"https://api.github.com/users/Collins33/orgs","repos_url":"https://api.github.com/users/Collins33/repos","events_url":"https://api.github.com/users/Collins33/events{/privacy}","received_events_url":"https://api.github.com/users/Collins33/received_events","type":"User","site_admin":false},"body":"I have removed it","created_at":"2018-12-11T07:03:06Z","updated_at":"2018-12-11T07:03:07Z","html_url":"https://github.com/andela/bp-esa-backend/pull/62#discussion_r240492131","pull_request_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/62","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/comments/240492131"},"html":{"href":"https://github.com/andela/bp-esa-backend/pull/62#discussion_r240492131"},"pull_request":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/62"}},"in_reply_to_id":240256372},"pull_request":{"url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/62","id":236780616,"node_id":"MDExOlB1bGxSZXF1ZXN0MjM2NzgwNjE2","html_url":"https://github.com/andela/bp-esa-backend/pull/62","diff_url":"https://github.com/andela/bp-esa-backend/pull/62.diff","patch_url":"https://github.com/andela/bp-esa-backend/pull/62.patch","issue_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/62","number":62,"state":"open","locked":false,"title":"#162192779 Throws an error if environment variables are not configured","user":{"login":"Collins33","id":23402614,"node_id":"MDQ6VXNlcjIzNDAyNjE0","avatar_url":"https://avatars2.githubusercontent.com/u/23402614?v=4","gravatar_id":"","url":"https://api.github.com/users/Collins33","html_url":"https://github.com/Collins33","followers_url":"https://api.github.com/users/Collins33/followers","following_url":"https://api.github.com/users/Collins33/following{/other_user}","gists_url":"https://api.github.com/users/Collins33/gists{/gist_id}","starred_url":"https://api.github.com/users/Collins33/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Collins33/subscriptions","organizations_url":"https://api.github.com/users/Collins33/orgs","repos_url":"https://api.github.com/users/Collins33/repos","events_url":"https://api.github.com/users/Collins33/events{/privacy}","received_events_url":"https://api.github.com/users/Collins33/received_events","type":"User","site_admin":false},"body":"#### What does this PR do?\r\nThrows an error if the environment variables are not configured\r\n\r\n#### Description of Task to be completed?\r\nAdd check on the modules that throws an error if one of the required variables is not there\r\n\r\n#### How should this be manually tested?\r\n- Checkout to this branch.\r\n- Remove the slack token from the env file\r\n- Run the app using `npm start`.\r\n- An error should be thrown saying `Some variables are missing`\r\n\r\n#### Any background context you want to provide?\r\nN/A\r\n\r\n#### What are the relevant pivotal tracker stories?\r\n[#162192779](https://www.pivotaltracker.com/story/show/162192779)\r\n\r\n#### Screenshots (If applicable)\r\nN/A","created_at":"2018-12-07T07:45:48Z","updated_at":"2018-12-11T07:03:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"163227863177dac5db99402bc3905589c4a64643","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/62/commits","review_comments_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/62/comments","review_comment_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/62/comments","statuses_url":"https://api.github.com/repos/andela/bp-esa-backend/statuses/f66c147a7f02f4239dc4712daed168d7c307004c","head":{"label":"andela:bg-environment-variable-config-check-#162192779","ref":"bg-environment-variable-config-check-#162192779","sha":"f66c147a7f02f4239dc4712daed168d7c307004c","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":137874379,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4NzQzNzk=","name":"bp-esa-backend","full_name":"andela/bp-esa-backend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/bp-esa-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/bp-esa-backend","forks_url":"https://api.github.com/repos/andela/bp-esa-backend/forks","keys_url":"https://api.github.com/repos/andela/bp-esa-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/bp-esa-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/bp-esa-backend/teams","hooks_url":"https://api.github.com/repos/andela/bp-esa-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/bp-esa-backend/events","assignees_url":"https://api.github.com/repos/andela/bp-esa-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/bp-esa-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/bp-esa-backend/tags","blobs_url":"https://api.github.com/repos/andela/bp-esa-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/bp-esa-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/bp-esa-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/bp-esa-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/bp-esa-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/bp-esa-backend/languages","stargazers_url":"https://api.github.com/repos/andela/bp-esa-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/bp-esa-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/bp-esa-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/bp-esa-backend/subscription","commits_url":"https://api.github.com/repos/andela/bp-esa-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/bp-esa-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/bp-esa-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/bp-esa-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/bp-esa-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/bp-esa-backend/merges","archive_url":"https://api.github.com/repos/andela/bp-esa-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/bp-esa-backend/downloads","issues_url":"https://api.github.com/repos/andela/bp-esa-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/bp-esa-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/bp-esa-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/bp-esa-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/bp-esa-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/bp-esa-backend/deployments","created_at":"2018-06-19T10:08:04Z","updated_at":"2018-12-07T09:56:16Z","pushed_at":"2018-12-10T18:41:33Z","git_url":"git://github.com/andela/bp-esa-backend.git","ssh_url":"git@github.com:andela/bp-esa-backend.git","clone_url":"https://github.com/andela/bp-esa-backend.git","svn_url":"https://github.com/andela/bp-esa-backend","homepage":null,"size":950,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":null,"forks":0,"open_issues":19,"watchers":1,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"985a4ac69924c6e357528344436b52b0d3356768","user":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"repo":{"id":137874379,"node_id":"MDEwOlJlcG9zaXRvcnkxMzc4NzQzNzk=","name":"bp-esa-backend","full_name":"andela/bp-esa-backend","private":false,"owner":{"login":"andela","id":4100206,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQxMDAyMDY=","avatar_url":"https://avatars2.githubusercontent.com/u/4100206?v=4","gravatar_id":"","url":"https://api.github.com/users/andela","html_url":"https://github.com/andela","followers_url":"https://api.github.com/users/andela/followers","following_url":"https://api.github.com/users/andela/following{/other_user}","gists_url":"https://api.github.com/users/andela/gists{/gist_id}","starred_url":"https://api.github.com/users/andela/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andela/subscriptions","organizations_url":"https://api.github.com/users/andela/orgs","repos_url":"https://api.github.com/users/andela/repos","events_url":"https://api.github.com/users/andela/events{/privacy}","received_events_url":"https://api.github.com/users/andela/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/andela/bp-esa-backend","description":null,"fork":false,"url":"https://api.github.com/repos/andela/bp-esa-backend","forks_url":"https://api.github.com/repos/andela/bp-esa-backend/forks","keys_url":"https://api.github.com/repos/andela/bp-esa-backend/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/bp-esa-backend/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/bp-esa-backend/teams","hooks_url":"https://api.github.com/repos/andela/bp-esa-backend/hooks","issue_events_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/events{/number}","events_url":"https://api.github.com/repos/andela/bp-esa-backend/events","assignees_url":"https://api.github.com/repos/andela/bp-esa-backend/assignees{/user}","branches_url":"https://api.github.com/repos/andela/bp-esa-backend/branches{/branch}","tags_url":"https://api.github.com/repos/andela/bp-esa-backend/tags","blobs_url":"https://api.github.com/repos/andela/bp-esa-backend/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/bp-esa-backend/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/bp-esa-backend/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/bp-esa-backend/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/bp-esa-backend/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/bp-esa-backend/languages","stargazers_url":"https://api.github.com/repos/andela/bp-esa-backend/stargazers","contributors_url":"https://api.github.com/repos/andela/bp-esa-backend/contributors","subscribers_url":"https://api.github.com/repos/andela/bp-esa-backend/subscribers","subscription_url":"https://api.github.com/repos/andela/bp-esa-backend/subscription","commits_url":"https://api.github.com/repos/andela/bp-esa-backend/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/bp-esa-backend/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/bp-esa-backend/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/bp-esa-backend/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/bp-esa-backend/contents/{+path}","compare_url":"https://api.github.com/repos/andela/bp-esa-backend/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/bp-esa-backend/merges","archive_url":"https://api.github.com/repos/andela/bp-esa-backend/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/bp-esa-backend/downloads","issues_url":"https://api.github.com/repos/andela/bp-esa-backend/issues{/number}","pulls_url":"https://api.github.com/repos/andela/bp-esa-backend/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/bp-esa-backend/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/bp-esa-backend/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/bp-esa-backend/labels{/name}","releases_url":"https://api.github.com/repos/andela/bp-esa-backend/releases{/id}","deployments_url":"https://api.github.com/repos/andela/bp-esa-backend/deployments","created_at":"2018-06-19T10:08:04Z","updated_at":"2018-12-07T09:56:16Z","pushed_at":"2018-12-10T18:41:33Z","git_url":"git://github.com/andela/bp-esa-backend.git","ssh_url":"git@github.com:andela/bp-esa-backend.git","clone_url":"https://github.com/andela/bp-esa-backend.git","svn_url":"https://github.com/andela/bp-esa-backend","homepage":null,"size":950,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":19,"license":null,"forks":0,"open_issues":19,"watchers":1,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/62"},"html":{"href":"https://github.com/andela/bp-esa-backend/pull/62"},"issue":{"href":"https://api.github.com/repos/andela/bp-esa-backend/issues/62"},"comments":{"href":"https://api.github.com/repos/andela/bp-esa-backend/issues/62/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/62/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/bp-esa-backend/pulls/62/commits"},"statuses":{"href":"https://api.github.com/repos/andela/bp-esa-backend/statuses/f66c147a7f02f4239dc4712daed168d7c307004c"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"Collins33"}}