{"action":"created","comment":{"url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/comments/217633648","pull_request_review_id":155393402,"id":217633648,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxNzYzMzY0OA==","diff_hunk":"@@ -1,12 +1,20 @@\n const path = require('path');\n const HtmlWebPackPlugin = require('html-webpack-plugin');\n const CleanWebpackPlugin = require('clean-webpack-plugin');\n+const webpack = require('webpack');\n+const dotenv = require('dotenv');\n \n const cleanPlugin = new CleanWebpackPlugin(['dist']);\n const htmlWebpackPlugin = new HtmlWebPackPlugin({\n   template: './src/index.html',\n   filename: './index.html',\n });\n+const env = dotenv.config().parsed;\n+const envKeys = Object.keys(env).reduce((prev, next) => {\n+  prev[`process.env.${next}`] = JSON.stringify(env[next]);\n+  return prev;\n+}, {});\n+const definePlugin =  new webpack.DefinePlugin(envKeys);","path":"webpack.common.js","position":17,"original_position":17,"commit_id":"bd826152326093ef315758bf0baaf7c1a73ea536","original_commit_id":"bd826152326093ef315758bf0baaf7c1a73ea536","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Multiple spaces found before 'new'  no-multi-spaces","created_at":"2018-09-14T08:16:09Z","updated_at":"2018-09-14T08:16:10Z","html_url":"https://github.com/andela/fargo-ah-client/pull/32#discussion_r217633648","pull_request_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/32","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/comments/217633648"},"html":{"href":"https://github.com/andela/fargo-ah-client/pull/32#discussion_r217633648"},"pull_request":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/32","id":215514457,"node_id":"MDExOlB1bGxSZXF1ZXN0MjE1NTE0NDU3","html_url":"https://github.com/andela/fargo-ah-client/pull/32","diff_url":"https://github.com/andela/fargo-ah-client/pull/32.diff","patch_url":"https://github.com/andela/fargo-ah-client/pull/32.patch","issue_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/32","number":32,"state":"open","locked":false,"title":"#160504364 Add environment variables","user":{"login":"OKiMaureen","id":31984004,"node_id":"MDQ6VXNlcjMxOTg0MDA0","avatar_url":"https://avatars0.githubusercontent.com/u/31984004?v=4","gravatar_id":"","url":"https://api.github.com/users/OKiMaureen","html_url":"https://github.com/OKiMaureen","followers_url":"https://api.github.com/users/OKiMaureen/followers","following_url":"https://api.github.com/users/OKiMaureen/following{/other_user}","gists_url":"https://api.github.com/users/OKiMaureen/gists{/gist_id}","starred_url":"https://api.github.com/users/OKiMaureen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OKiMaureen/subscriptions","organizations_url":"https://api.github.com/users/OKiMaureen/orgs","repos_url":"https://api.github.com/users/OKiMaureen/repos","events_url":"https://api.github.com/users/OKiMaureen/events{/privacy}","received_events_url":"https://api.github.com/users/OKiMaureen/received_events","type":"User","site_admin":false},"body":"What does this PR do?\r\nconfigure use of environment variables for frontend\r\n\r\nDescription of Task to be completed?\r\n- install dotenv\r\n\r\n- add env webpack configuration\r\n\r\n- add env file\r\n\r\n- test environment variable on home page\r\n\r\nHow should this be manually tested?\r\n- `npm pull origin ft_160325207_homepage`\r\n- `npm i`\r\n- `npm run dev`\r\n\r\nAny background context you want to provide?\r\nN/A\r\n\r\nWhat are the relevant pivotal tracker stories?\r\n[#160504364](https://www.pivotaltracker.com/story/show/160504364)\r\n\r\nScreenshots (if appropriate)\r\nN/A\r\n\r\nQuestions:\r\nN/A","created_at":"2018-09-14T08:12:07Z","updated_at":"2018-09-14T08:16:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94ea85e301b6421448f8e813850965f582c2597f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/32/commits","review_comments_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/32/comments","review_comment_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls/comments{/number}","comments_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/32/comments","statuses_url":"https://api.github.com/repos/andela/fargo-ah-client/statuses/bd826152326093ef315758bf0baaf7c1a73ea536","head":{"label":"andela:ch_160504364_add_environment_variables","ref":"ch_160504364_add_environment_variables","sha":"bd826152326093ef315758bf0baaf7c1a73ea536","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":146319850,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMTk4NTA=","name":"fargo-ah-client","full_name":"andela/fargo-ah-client","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},"private":false,"html_url":"https://github.com/andela/fargo-ah-client","description":null,"fork":false,"url":"https://api.github.com/repos/andela/fargo-ah-client","forks_url":"https://api.github.com/repos/andela/fargo-ah-client/forks","keys_url":"https://api.github.com/repos/andela/fargo-ah-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/fargo-ah-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/fargo-ah-client/teams","hooks_url":"https://api.github.com/repos/andela/fargo-ah-client/hooks","issue_events_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/events{/number}","events_url":"https://api.github.com/repos/andela/fargo-ah-client/events","assignees_url":"https://api.github.com/repos/andela/fargo-ah-client/assignees{/user}","branches_url":"https://api.github.com/repos/andela/fargo-ah-client/branches{/branch}","tags_url":"https://api.github.com/repos/andela/fargo-ah-client/tags","blobs_url":"https://api.github.com/repos/andela/fargo-ah-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/fargo-ah-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/fargo-ah-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/fargo-ah-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/fargo-ah-client/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/fargo-ah-client/languages","stargazers_url":"https://api.github.com/repos/andela/fargo-ah-client/stargazers","contributors_url":"https://api.github.com/repos/andela/fargo-ah-client/contributors","subscribers_url":"https://api.github.com/repos/andela/fargo-ah-client/subscribers","subscription_url":"https://api.github.com/repos/andela/fargo-ah-client/subscription","commits_url":"https://api.github.com/repos/andela/fargo-ah-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/fargo-ah-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/fargo-ah-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/fargo-ah-client/contents/{+path}","compare_url":"https://api.github.com/repos/andela/fargo-ah-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/fargo-ah-client/merges","archive_url":"https://api.github.com/repos/andela/fargo-ah-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/fargo-ah-client/downloads","issues_url":"https://api.github.com/repos/andela/fargo-ah-client/issues{/number}","pulls_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/fargo-ah-client/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/fargo-ah-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/fargo-ah-client/labels{/name}","releases_url":"https://api.github.com/repos/andela/fargo-ah-client/releases{/id}","deployments_url":"https://api.github.com/repos/andela/fargo-ah-client/deployments","created_at":"2018-08-27T15:49:41Z","updated_at":"2018-09-13T11:40:34Z","pushed_at":"2018-09-14T08:16:03Z","git_url":"git://github.com/andela/fargo-ah-client.git","ssh_url":"git@github.com:andela/fargo-ah-client.git","clone_url":"https://github.com/andela/fargo-ah-client.git","svn_url":"https://github.com/andela/fargo-ah-client","homepage":null,"size":836,"stargazers_count":0,"watchers_count":0,"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":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"develop"}},"base":{"label":"andela:develop","ref":"develop","sha":"6a68cd677dbc55a77985a632be9193cfa7e00c54","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":146319850,"node_id":"MDEwOlJlcG9zaXRvcnkxNDYzMTk4NTA=","name":"fargo-ah-client","full_name":"andela/fargo-ah-client","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},"private":false,"html_url":"https://github.com/andela/fargo-ah-client","description":null,"fork":false,"url":"https://api.github.com/repos/andela/fargo-ah-client","forks_url":"https://api.github.com/repos/andela/fargo-ah-client/forks","keys_url":"https://api.github.com/repos/andela/fargo-ah-client/keys{/key_id}","collaborators_url":"https://api.github.com/repos/andela/fargo-ah-client/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/andela/fargo-ah-client/teams","hooks_url":"https://api.github.com/repos/andela/fargo-ah-client/hooks","issue_events_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/events{/number}","events_url":"https://api.github.com/repos/andela/fargo-ah-client/events","assignees_url":"https://api.github.com/repos/andela/fargo-ah-client/assignees{/user}","branches_url":"https://api.github.com/repos/andela/fargo-ah-client/branches{/branch}","tags_url":"https://api.github.com/repos/andela/fargo-ah-client/tags","blobs_url":"https://api.github.com/repos/andela/fargo-ah-client/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/andela/fargo-ah-client/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/andela/fargo-ah-client/git/refs{/sha}","trees_url":"https://api.github.com/repos/andela/fargo-ah-client/git/trees{/sha}","statuses_url":"https://api.github.com/repos/andela/fargo-ah-client/statuses/{sha}","languages_url":"https://api.github.com/repos/andela/fargo-ah-client/languages","stargazers_url":"https://api.github.com/repos/andela/fargo-ah-client/stargazers","contributors_url":"https://api.github.com/repos/andela/fargo-ah-client/contributors","subscribers_url":"https://api.github.com/repos/andela/fargo-ah-client/subscribers","subscription_url":"https://api.github.com/repos/andela/fargo-ah-client/subscription","commits_url":"https://api.github.com/repos/andela/fargo-ah-client/commits{/sha}","git_commits_url":"https://api.github.com/repos/andela/fargo-ah-client/git/commits{/sha}","comments_url":"https://api.github.com/repos/andela/fargo-ah-client/comments{/number}","issue_comment_url":"https://api.github.com/repos/andela/fargo-ah-client/issues/comments{/number}","contents_url":"https://api.github.com/repos/andela/fargo-ah-client/contents/{+path}","compare_url":"https://api.github.com/repos/andela/fargo-ah-client/compare/{base}...{head}","merges_url":"https://api.github.com/repos/andela/fargo-ah-client/merges","archive_url":"https://api.github.com/repos/andela/fargo-ah-client/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/andela/fargo-ah-client/downloads","issues_url":"https://api.github.com/repos/andela/fargo-ah-client/issues{/number}","pulls_url":"https://api.github.com/repos/andela/fargo-ah-client/pulls{/number}","milestones_url":"https://api.github.com/repos/andela/fargo-ah-client/milestones{/number}","notifications_url":"https://api.github.com/repos/andela/fargo-ah-client/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/andela/fargo-ah-client/labels{/name}","releases_url":"https://api.github.com/repos/andela/fargo-ah-client/releases{/id}","deployments_url":"https://api.github.com/repos/andela/fargo-ah-client/deployments","created_at":"2018-08-27T15:49:41Z","updated_at":"2018-09-13T11:40:34Z","pushed_at":"2018-09-14T08:16:03Z","git_url":"git://github.com/andela/fargo-ah-client.git","ssh_url":"git@github.com:andela/fargo-ah-client.git","clone_url":"https://github.com/andela/fargo-ah-client.git","svn_url":"https://github.com/andela/fargo-ah-client","homepage":null,"size":836,"stargazers_count":0,"watchers_count":0,"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":8,"license":null,"forks":0,"open_issues":8,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/32"},"html":{"href":"https://github.com/andela/fargo-ah-client/pull/32"},"issue":{"href":"https://api.github.com/repos/andela/fargo-ah-client/issues/32"},"comments":{"href":"https://api.github.com/repos/andela/fargo-ah-client/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/andela/fargo-ah-client/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/andela/fargo-ah-client/statuses/bd826152326093ef315758bf0baaf7c1a73ea536"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}