{"action":"created","comment":{"url":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/comments/207743984","pull_request_review_id":143418456,"id":207743984,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwNzc0Mzk4NA==","diff_hunk":"@@ -0,0 +1,107 @@\n+'use strict';\n+\n+// Do this as the first thing so that any code reading it knows the right env.\n+process.env.BABEL_ENV = 'development';\n+process.env.NODE_ENV = 'development';\n+\n+// Makes the script crash on unhandled rejections instead of silently\n+// ignoring them. In the future, promise rejections that are not handled will\n+// terminate the Node.js process with a non-zero exit code.\n+process.on('unhandledRejection', err => {\n+  throw err;\n+});\n+\n+// Ensure environment variables are read.\n+require('../config/env');\n+\n+const fs = require('fs');\n+const chalk = require('chalk');\n+const webpack = require('webpack');\n+const WebpackDevServer = require('webpack-dev-server');\n+const clearConsole = require('react-dev-utils/clearConsole');\n+const checkRequiredFiles = require('react-dev-utils/checkRequiredFiles');\n+const {\n+  choosePort,\n+  createCompiler,\n+  prepareProxy,\n+  prepareUrls,\n+} = require('react-dev-utils/WebpackDevServerUtils');\n+const openBrowser = require('react-dev-utils/openBrowser');\n+const paths = require('../config/paths');\n+const config = require('../config/webpack.config.dev');\n+const createDevServerConfig = require('../config/webpackDevServer.config');\n+\n+const useYarn = fs.existsSync(paths.yarnLockFile);\n+const isInteractive = process.stdout.isTTY;\n+\n+// Warn and crash if required files are missing\n+if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {\n+  process.exit(1);\n+}\n+\n+// Tools like Cloud9 rely on this.\n+const DEFAULT_PORT = parseInt(process.env.PORT, 10) || 3000;\n+const HOST = process.env.HOST || '0.0.0.0';\n+\n+if (process.env.HOST) {\n+  console.log(\n+    chalk.cyan(\n+      `Attempting to bind to HOST environment variable: ${chalk.yellow(\n+        chalk.bold(process.env.HOST)\n+      )}`\n+    )\n+  );\n+  console.log(\n+    `If this was unintentional, check that you haven't mistakenly set it in your shell.`\n+  );\n+  console.log(`Learn more here: ${chalk.yellow('http://bit.ly/2mwWSwH')}`);\n+  console.log();\n+}\n+\n+// We attempt to use the default port but if it is busy, we offer the user to\n+// run on a different port. `choosePort()` Promise resolves to the next free port.\n+choosePort(HOST, DEFAULT_PORT)\n+  .then(port => {\n+    if (port == null) {\n+      // We have not found a port.\n+      return;\n+    }\n+    const protocol = process.env.HTTPS === 'true' ? 'https' : 'http';\n+    const appName = require(paths.appPackageJson).name;\n+    const urls = prepareUrls(protocol, HOST, port);\n+    // Create a webpack compiler that is configured with custom messages.\n+    const compiler = createCompiler(webpack, config, appName, urls, useYarn);\n+    // Load proxy config\n+    const proxySetting = require(paths.appPackageJson).proxy;\n+    const proxyConfig = prepareProxy(proxySetting, paths.appPublic);\n+    // Serve webpack assets generated by the compiler over a web sever.\n+    const serverConfig = createDevServerConfig(\n+      proxyConfig,\n+      urls.lanUrlForConfig\n+    );\n+    const devServer = new WebpackDevServer(compiler, serverConfig);\n+    // Launch WebpackDevServer.\n+    devServer.listen(port, HOST, err => {\n+      if (err) {\n+        return console.log(err);\n+      }\n+      if (isInteractive) {\n+        clearConsole();\n+      }\n+      console.log(chalk.cyan('Starting the development server...\\n'));\n+      openBrowser(urls.localUrlForBrowser);\n+    });\n+\n+    ['SIGINT', 'SIGTERM'].forEach(function(sig) {\n+      process.on(sig, function() {\n+        devServer.close();\n+        process.exit();\n+      });\n+    });\n+  })\n+  .catch(err => {\n+    if (err && err.message) {\n+      console.log(err.message);\n+    }\n+    process.exit(1);","path":"scripts/start.js","position":106,"original_position":106,"commit_id":"6876b4f9351d0a8bec217cff6f1015d02aae0048","original_commit_id":"6876b4f9351d0a8bec217cff6f1015d02aae0048","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":"'process' is not defined.","created_at":"2018-08-05T17:56:47Z","updated_at":"2018-08-05T17:56:48Z","html_url":"https://github.com/imranariffin/liveswot-ui/pull/77#discussion_r207743984","pull_request_url":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/77","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/comments/207743984"},"html":{"href":"https://github.com/imranariffin/liveswot-ui/pull/77#discussion_r207743984"},"pull_request":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/77","id":206250375,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA2MjUwMzc1","html_url":"https://github.com/imranariffin/liveswot-ui/pull/77","diff_url":"https://github.com/imranariffin/liveswot-ui/pull/77.diff","patch_url":"https://github.com/imranariffin/liveswot-ui/pull/77.patch","issue_url":"https://api.github.com/repos/imranariffin/liveswot-ui/issues/77","number":77,"state":"open","locked":false,"title":"Refactor/imran/eject cra","user":{"login":"imranariffin","id":5580715,"node_id":"MDQ6VXNlcjU1ODA3MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5580715?v=4","gravatar_id":"","url":"https://api.github.com/users/imranariffin","html_url":"https://github.com/imranariffin","followers_url":"https://api.github.com/users/imranariffin/followers","following_url":"https://api.github.com/users/imranariffin/following{/other_user}","gists_url":"https://api.github.com/users/imranariffin/gists{/gist_id}","starred_url":"https://api.github.com/users/imranariffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranariffin/subscriptions","organizations_url":"https://api.github.com/users/imranariffin/orgs","repos_url":"https://api.github.com/users/imranariffin/repos","events_url":"https://api.github.com/users/imranariffin/events{/privacy}","received_events_url":"https://api.github.com/users/imranariffin/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-08-05T17:56:32Z","updated_at":"2018-08-05T17:56:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f6b971d4536b0fea6f6d63badffe8a1d414424c4","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/77/commits","review_comments_url":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/77/comments","review_comment_url":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/comments{/number}","comments_url":"https://api.github.com/repos/imranariffin/liveswot-ui/issues/77/comments","statuses_url":"https://api.github.com/repos/imranariffin/liveswot-ui/statuses/6876b4f9351d0a8bec217cff6f1015d02aae0048","head":{"label":"imranariffin:refactor/imran/eject-cra","ref":"refactor/imran/eject-cra","sha":"6876b4f9351d0a8bec217cff6f1015d02aae0048","user":{"login":"imranariffin","id":5580715,"node_id":"MDQ6VXNlcjU1ODA3MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5580715?v=4","gravatar_id":"","url":"https://api.github.com/users/imranariffin","html_url":"https://github.com/imranariffin","followers_url":"https://api.github.com/users/imranariffin/followers","following_url":"https://api.github.com/users/imranariffin/following{/other_user}","gists_url":"https://api.github.com/users/imranariffin/gists{/gist_id}","starred_url":"https://api.github.com/users/imranariffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranariffin/subscriptions","organizations_url":"https://api.github.com/users/imranariffin/orgs","repos_url":"https://api.github.com/users/imranariffin/repos","events_url":"https://api.github.com/users/imranariffin/events{/privacy}","received_events_url":"https://api.github.com/users/imranariffin/received_events","type":"User","site_admin":false},"repo":{"id":100909642,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA5MDk2NDI=","name":"liveswot-ui","full_name":"imranariffin/liveswot-ui","owner":{"login":"imranariffin","id":5580715,"node_id":"MDQ6VXNlcjU1ODA3MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5580715?v=4","gravatar_id":"","url":"https://api.github.com/users/imranariffin","html_url":"https://github.com/imranariffin","followers_url":"https://api.github.com/users/imranariffin/followers","following_url":"https://api.github.com/users/imranariffin/following{/other_user}","gists_url":"https://api.github.com/users/imranariffin/gists{/gist_id}","starred_url":"https://api.github.com/users/imranariffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranariffin/subscriptions","organizations_url":"https://api.github.com/users/imranariffin/orgs","repos_url":"https://api.github.com/users/imranariffin/repos","events_url":"https://api.github.com/users/imranariffin/events{/privacy}","received_events_url":"https://api.github.com/users/imranariffin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imranariffin/liveswot-ui","description":"Real Time Collaboration for SWOT analysis","fork":false,"url":"https://api.github.com/repos/imranariffin/liveswot-ui","forks_url":"https://api.github.com/repos/imranariffin/liveswot-ui/forks","keys_url":"https://api.github.com/repos/imranariffin/liveswot-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imranariffin/liveswot-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imranariffin/liveswot-ui/teams","hooks_url":"https://api.github.com/repos/imranariffin/liveswot-ui/hooks","issue_events_url":"https://api.github.com/repos/imranariffin/liveswot-ui/issues/events{/number}","events_url":"https://api.github.com/repos/imranariffin/liveswot-ui/events","assignees_url":"https://api.github.com/repos/imranariffin/liveswot-ui/assignees{/user}","branches_url":"https://api.github.com/repos/imranariffin/liveswot-ui/branches{/branch}","tags_url":"https://api.github.com/repos/imranariffin/liveswot-ui/tags","blobs_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imranariffin/liveswot-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/imranariffin/liveswot-ui/languages","stargazers_url":"https://api.github.com/repos/imranariffin/liveswot-ui/stargazers","contributors_url":"https://api.github.com/repos/imranariffin/liveswot-ui/contributors","subscribers_url":"https://api.github.com/repos/imranariffin/liveswot-ui/subscribers","subscription_url":"https://api.github.com/repos/imranariffin/liveswot-ui/subscription","commits_url":"https://api.github.com/repos/imranariffin/liveswot-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/imranariffin/liveswot-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/imranariffin/liveswot-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/imranariffin/liveswot-ui/contents/{+path}","compare_url":"https://api.github.com/repos/imranariffin/liveswot-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imranariffin/liveswot-ui/merges","archive_url":"https://api.github.com/repos/imranariffin/liveswot-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imranariffin/liveswot-ui/downloads","issues_url":"https://api.github.com/repos/imranariffin/liveswot-ui/issues{/number}","pulls_url":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/imranariffin/liveswot-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/imranariffin/liveswot-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imranariffin/liveswot-ui/labels{/name}","releases_url":"https://api.github.com/repos/imranariffin/liveswot-ui/releases{/id}","deployments_url":"https://api.github.com/repos/imranariffin/liveswot-ui/deployments","created_at":"2017-08-21T03:43:18Z","updated_at":"2018-08-03T05:25:13Z","pushed_at":"2018-08-05T17:56:33Z","git_url":"git://github.com/imranariffin/liveswot-ui.git","ssh_url":"git@github.com:imranariffin/liveswot-ui.git","clone_url":"https://github.com/imranariffin/liveswot-ui.git","svn_url":"https://github.com/imranariffin/liveswot-ui","homepage":null,"size":14247,"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":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"base":{"label":"imranariffin:master","ref":"master","sha":"c85895887272d22de414cc540011682466e5086b","user":{"login":"imranariffin","id":5580715,"node_id":"MDQ6VXNlcjU1ODA3MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5580715?v=4","gravatar_id":"","url":"https://api.github.com/users/imranariffin","html_url":"https://github.com/imranariffin","followers_url":"https://api.github.com/users/imranariffin/followers","following_url":"https://api.github.com/users/imranariffin/following{/other_user}","gists_url":"https://api.github.com/users/imranariffin/gists{/gist_id}","starred_url":"https://api.github.com/users/imranariffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranariffin/subscriptions","organizations_url":"https://api.github.com/users/imranariffin/orgs","repos_url":"https://api.github.com/users/imranariffin/repos","events_url":"https://api.github.com/users/imranariffin/events{/privacy}","received_events_url":"https://api.github.com/users/imranariffin/received_events","type":"User","site_admin":false},"repo":{"id":100909642,"node_id":"MDEwOlJlcG9zaXRvcnkxMDA5MDk2NDI=","name":"liveswot-ui","full_name":"imranariffin/liveswot-ui","owner":{"login":"imranariffin","id":5580715,"node_id":"MDQ6VXNlcjU1ODA3MTU=","avatar_url":"https://avatars2.githubusercontent.com/u/5580715?v=4","gravatar_id":"","url":"https://api.github.com/users/imranariffin","html_url":"https://github.com/imranariffin","followers_url":"https://api.github.com/users/imranariffin/followers","following_url":"https://api.github.com/users/imranariffin/following{/other_user}","gists_url":"https://api.github.com/users/imranariffin/gists{/gist_id}","starred_url":"https://api.github.com/users/imranariffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/imranariffin/subscriptions","organizations_url":"https://api.github.com/users/imranariffin/orgs","repos_url":"https://api.github.com/users/imranariffin/repos","events_url":"https://api.github.com/users/imranariffin/events{/privacy}","received_events_url":"https://api.github.com/users/imranariffin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/imranariffin/liveswot-ui","description":"Real Time Collaboration for SWOT analysis","fork":false,"url":"https://api.github.com/repos/imranariffin/liveswot-ui","forks_url":"https://api.github.com/repos/imranariffin/liveswot-ui/forks","keys_url":"https://api.github.com/repos/imranariffin/liveswot-ui/keys{/key_id}","collaborators_url":"https://api.github.com/repos/imranariffin/liveswot-ui/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/imranariffin/liveswot-ui/teams","hooks_url":"https://api.github.com/repos/imranariffin/liveswot-ui/hooks","issue_events_url":"https://api.github.com/repos/imranariffin/liveswot-ui/issues/events{/number}","events_url":"https://api.github.com/repos/imranariffin/liveswot-ui/events","assignees_url":"https://api.github.com/repos/imranariffin/liveswot-ui/assignees{/user}","branches_url":"https://api.github.com/repos/imranariffin/liveswot-ui/branches{/branch}","tags_url":"https://api.github.com/repos/imranariffin/liveswot-ui/tags","blobs_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/refs{/sha}","trees_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/trees{/sha}","statuses_url":"https://api.github.com/repos/imranariffin/liveswot-ui/statuses/{sha}","languages_url":"https://api.github.com/repos/imranariffin/liveswot-ui/languages","stargazers_url":"https://api.github.com/repos/imranariffin/liveswot-ui/stargazers","contributors_url":"https://api.github.com/repos/imranariffin/liveswot-ui/contributors","subscribers_url":"https://api.github.com/repos/imranariffin/liveswot-ui/subscribers","subscription_url":"https://api.github.com/repos/imranariffin/liveswot-ui/subscription","commits_url":"https://api.github.com/repos/imranariffin/liveswot-ui/commits{/sha}","git_commits_url":"https://api.github.com/repos/imranariffin/liveswot-ui/git/commits{/sha}","comments_url":"https://api.github.com/repos/imranariffin/liveswot-ui/comments{/number}","issue_comment_url":"https://api.github.com/repos/imranariffin/liveswot-ui/issues/comments{/number}","contents_url":"https://api.github.com/repos/imranariffin/liveswot-ui/contents/{+path}","compare_url":"https://api.github.com/repos/imranariffin/liveswot-ui/compare/{base}...{head}","merges_url":"https://api.github.com/repos/imranariffin/liveswot-ui/merges","archive_url":"https://api.github.com/repos/imranariffin/liveswot-ui/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/imranariffin/liveswot-ui/downloads","issues_url":"https://api.github.com/repos/imranariffin/liveswot-ui/issues{/number}","pulls_url":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls{/number}","milestones_url":"https://api.github.com/repos/imranariffin/liveswot-ui/milestones{/number}","notifications_url":"https://api.github.com/repos/imranariffin/liveswot-ui/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/imranariffin/liveswot-ui/labels{/name}","releases_url":"https://api.github.com/repos/imranariffin/liveswot-ui/releases{/id}","deployments_url":"https://api.github.com/repos/imranariffin/liveswot-ui/deployments","created_at":"2017-08-21T03:43:18Z","updated_at":"2018-08-03T05:25:13Z","pushed_at":"2018-08-05T17:56:33Z","git_url":"git://github.com/imranariffin/liveswot-ui.git","ssh_url":"git@github.com:imranariffin/liveswot-ui.git","clone_url":"https://github.com/imranariffin/liveswot-ui.git","svn_url":"https://github.com/imranariffin/liveswot-ui","homepage":null,"size":14247,"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":13,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":13,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/77"},"html":{"href":"https://github.com/imranariffin/liveswot-ui/pull/77"},"issue":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/issues/77"},"comments":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/imranariffin/liveswot-ui/statuses/6876b4f9351d0a8bec217cff6f1015d02aae0048"}},"author_association":"OWNER"}}
{"actor":{"display_login":"houndci-bot"}}