{"action":"created","comment":{"url":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/comments/201367390","pull_request_review_id":135854648,"id":201367390,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMTM2NzM5MA==","diff_hunk":"@@ -0,0 +1,23 @@\n+ // Script to copy config.sample.js to config.js\n+\n+const fs = require('fs')\n+const path = require('path')\n+const util = require('util');\n+\n+const readFile = util.promisify(fs.readFile);\n+const writeFile = util.promisify(fs.writeFile);\n+\n+readFile(path.join(__dirname, 'config.sample.js'))\n+    .then((content) => {\n+       writeFile(path.join(__dirname, 'config.js'), content)","path":"config/copyConfig.js","position":12,"original_position":12,"commit_id":"01745f21e95dd5f7a39962edfd4a61baa54bda6f","original_commit_id":"01745f21e95dd5f7a39962edfd4a61baa54bda6f","user":{"login":"hari-govind","id":39461016,"node_id":"MDQ6VXNlcjM5NDYxMDE2","avatar_url":"https://avatars2.githubusercontent.com/u/39461016?v=4","gravatar_id":"","url":"https://api.github.com/users/hari-govind","html_url":"https://github.com/hari-govind","followers_url":"https://api.github.com/users/hari-govind/followers","following_url":"https://api.github.com/users/hari-govind/following{/other_user}","gists_url":"https://api.github.com/users/hari-govind/gists{/gist_id}","starred_url":"https://api.github.com/users/hari-govind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hari-govind/subscriptions","organizations_url":"https://api.github.com/users/hari-govind/orgs","repos_url":"https://api.github.com/users/hari-govind/repos","events_url":"https://api.github.com/users/hari-govind/events{/privacy}","received_events_url":"https://api.github.com/users/hari-govind/received_events","type":"User","site_admin":false},"body":"So like this ?\r\n```javascript\r\nreadFile(path.join(__dirname, 'config.sample.js'))\r\n    .then((content) => {\r\n       return writeFile(path.join(__dirname, 'config.js'), content)\r\n            .then(() => {\r\n                console.log('Sample configuration sucessfully copied.');\r\n            })\r\n```","created_at":"2018-07-10T14:35:28Z","updated_at":"2018-07-10T14:35:28Z","html_url":"https://github.com/sakshamsaxena/uzay/pull/21#discussion_r201367390","pull_request_url":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/21","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/comments/201367390"},"html":{"href":"https://github.com/sakshamsaxena/uzay/pull/21#discussion_r201367390"},"pull_request":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/21"}},"in_reply_to_id":201359509},"pull_request":{"url":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/21","id":200138403,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAwMTM4NDAz","html_url":"https://github.com/sakshamsaxena/uzay/pull/21","diff_url":"https://github.com/sakshamsaxena/uzay/pull/21.diff","patch_url":"https://github.com/sakshamsaxena/uzay/pull/21.patch","issue_url":"https://api.github.com/repos/sakshamsaxena/uzay/issues/21","number":21,"state":"open","locked":false,"title":"Added configuration copy postinstall script","user":{"login":"hari-govind","id":39461016,"node_id":"MDQ6VXNlcjM5NDYxMDE2","avatar_url":"https://avatars2.githubusercontent.com/u/39461016?v=4","gravatar_id":"","url":"https://api.github.com/users/hari-govind","html_url":"https://github.com/hari-govind","followers_url":"https://api.github.com/users/hari-govind/followers","following_url":"https://api.github.com/users/hari-govind/following{/other_user}","gists_url":"https://api.github.com/users/hari-govind/gists{/gist_id}","starred_url":"https://api.github.com/users/hari-govind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hari-govind/subscriptions","organizations_url":"https://api.github.com/users/hari-govind/orgs","repos_url":"https://api.github.com/users/hari-govind/repos","events_url":"https://api.github.com/users/hari-govind/events{/privacy}","received_events_url":"https://api.github.com/users/hari-govind/received_events","type":"User","site_admin":false},"body":"Addresses issue #19 . Created config/copyConfig.js.","created_at":"2018-07-09T15:32:56Z","updated_at":"2018-07-10T14:35:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d974fdb015e1bdc9a08393d4ea61b0eaf16ddd10","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/21/commits","review_comments_url":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/21/comments","review_comment_url":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sakshamsaxena/uzay/issues/21/comments","statuses_url":"https://api.github.com/repos/sakshamsaxena/uzay/statuses/01745f21e95dd5f7a39962edfd4a61baa54bda6f","head":{"label":"hari-govind:copy-script","ref":"copy-script","sha":"01745f21e95dd5f7a39962edfd4a61baa54bda6f","user":{"login":"hari-govind","id":39461016,"node_id":"MDQ6VXNlcjM5NDYxMDE2","avatar_url":"https://avatars2.githubusercontent.com/u/39461016?v=4","gravatar_id":"","url":"https://api.github.com/users/hari-govind","html_url":"https://github.com/hari-govind","followers_url":"https://api.github.com/users/hari-govind/followers","following_url":"https://api.github.com/users/hari-govind/following{/other_user}","gists_url":"https://api.github.com/users/hari-govind/gists{/gist_id}","starred_url":"https://api.github.com/users/hari-govind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hari-govind/subscriptions","organizations_url":"https://api.github.com/users/hari-govind/orgs","repos_url":"https://api.github.com/users/hari-govind/repos","events_url":"https://api.github.com/users/hari-govind/events{/privacy}","received_events_url":"https://api.github.com/users/hari-govind/received_events","type":"User","site_admin":false},"repo":{"id":140291647,"node_id":"MDEwOlJlcG9zaXRvcnkxNDAyOTE2NDc=","name":"uzay","full_name":"hari-govind/uzay","owner":{"login":"hari-govind","id":39461016,"node_id":"MDQ6VXNlcjM5NDYxMDE2","avatar_url":"https://avatars2.githubusercontent.com/u/39461016?v=4","gravatar_id":"","url":"https://api.github.com/users/hari-govind","html_url":"https://github.com/hari-govind","followers_url":"https://api.github.com/users/hari-govind/followers","following_url":"https://api.github.com/users/hari-govind/following{/other_user}","gists_url":"https://api.github.com/users/hari-govind/gists{/gist_id}","starred_url":"https://api.github.com/users/hari-govind/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hari-govind/subscriptions","organizations_url":"https://api.github.com/users/hari-govind/orgs","repos_url":"https://api.github.com/users/hari-govind/repos","events_url":"https://api.github.com/users/hari-govind/events{/privacy}","received_events_url":"https://api.github.com/users/hari-govind/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hari-govind/uzay","description":"[WIP] API to serve a blog","fork":true,"url":"https://api.github.com/repos/hari-govind/uzay","forks_url":"https://api.github.com/repos/hari-govind/uzay/forks","keys_url":"https://api.github.com/repos/hari-govind/uzay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hari-govind/uzay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hari-govind/uzay/teams","hooks_url":"https://api.github.com/repos/hari-govind/uzay/hooks","issue_events_url":"https://api.github.com/repos/hari-govind/uzay/issues/events{/number}","events_url":"https://api.github.com/repos/hari-govind/uzay/events","assignees_url":"https://api.github.com/repos/hari-govind/uzay/assignees{/user}","branches_url":"https://api.github.com/repos/hari-govind/uzay/branches{/branch}","tags_url":"https://api.github.com/repos/hari-govind/uzay/tags","blobs_url":"https://api.github.com/repos/hari-govind/uzay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hari-govind/uzay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hari-govind/uzay/git/refs{/sha}","trees_url":"https://api.github.com/repos/hari-govind/uzay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hari-govind/uzay/statuses/{sha}","languages_url":"https://api.github.com/repos/hari-govind/uzay/languages","stargazers_url":"https://api.github.com/repos/hari-govind/uzay/stargazers","contributors_url":"https://api.github.com/repos/hari-govind/uzay/contributors","subscribers_url":"https://api.github.com/repos/hari-govind/uzay/subscribers","subscription_url":"https://api.github.com/repos/hari-govind/uzay/subscription","commits_url":"https://api.github.com/repos/hari-govind/uzay/commits{/sha}","git_commits_url":"https://api.github.com/repos/hari-govind/uzay/git/commits{/sha}","comments_url":"https://api.github.com/repos/hari-govind/uzay/comments{/number}","issue_comment_url":"https://api.github.com/repos/hari-govind/uzay/issues/comments{/number}","contents_url":"https://api.github.com/repos/hari-govind/uzay/contents/{+path}","compare_url":"https://api.github.com/repos/hari-govind/uzay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hari-govind/uzay/merges","archive_url":"https://api.github.com/repos/hari-govind/uzay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hari-govind/uzay/downloads","issues_url":"https://api.github.com/repos/hari-govind/uzay/issues{/number}","pulls_url":"https://api.github.com/repos/hari-govind/uzay/pulls{/number}","milestones_url":"https://api.github.com/repos/hari-govind/uzay/milestones{/number}","notifications_url":"https://api.github.com/repos/hari-govind/uzay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hari-govind/uzay/labels{/name}","releases_url":"https://api.github.com/repos/hari-govind/uzay/releases{/id}","deployments_url":"https://api.github.com/repos/hari-govind/uzay/deployments","created_at":"2018-07-09T13:45:36Z","updated_at":"2018-07-09T13:45:38Z","pushed_at":"2018-07-10T12:06:35Z","git_url":"git://github.com/hari-govind/uzay.git","ssh_url":"git@github.com:hari-govind/uzay.git","clone_url":"https://github.com/hari-govind/uzay.git","svn_url":"https://github.com/hari-govind/uzay","homepage":"","size":1147,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"sakshamsaxena:master","ref":"master","sha":"18686fd99af142eacec4635daaca14b02b6d101d","user":{"login":"sakshamsaxena","id":8774516,"node_id":"MDQ6VXNlcjg3NzQ1MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/8774516?v=4","gravatar_id":"","url":"https://api.github.com/users/sakshamsaxena","html_url":"https://github.com/sakshamsaxena","followers_url":"https://api.github.com/users/sakshamsaxena/followers","following_url":"https://api.github.com/users/sakshamsaxena/following{/other_user}","gists_url":"https://api.github.com/users/sakshamsaxena/gists{/gist_id}","starred_url":"https://api.github.com/users/sakshamsaxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakshamsaxena/subscriptions","organizations_url":"https://api.github.com/users/sakshamsaxena/orgs","repos_url":"https://api.github.com/users/sakshamsaxena/repos","events_url":"https://api.github.com/users/sakshamsaxena/events{/privacy}","received_events_url":"https://api.github.com/users/sakshamsaxena/received_events","type":"User","site_admin":false},"repo":{"id":72993394,"node_id":"MDEwOlJlcG9zaXRvcnk3Mjk5MzM5NA==","name":"uzay","full_name":"sakshamsaxena/uzay","owner":{"login":"sakshamsaxena","id":8774516,"node_id":"MDQ6VXNlcjg3NzQ1MTY=","avatar_url":"https://avatars2.githubusercontent.com/u/8774516?v=4","gravatar_id":"","url":"https://api.github.com/users/sakshamsaxena","html_url":"https://github.com/sakshamsaxena","followers_url":"https://api.github.com/users/sakshamsaxena/followers","following_url":"https://api.github.com/users/sakshamsaxena/following{/other_user}","gists_url":"https://api.github.com/users/sakshamsaxena/gists{/gist_id}","starred_url":"https://api.github.com/users/sakshamsaxena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sakshamsaxena/subscriptions","organizations_url":"https://api.github.com/users/sakshamsaxena/orgs","repos_url":"https://api.github.com/users/sakshamsaxena/repos","events_url":"https://api.github.com/users/sakshamsaxena/events{/privacy}","received_events_url":"https://api.github.com/users/sakshamsaxena/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sakshamsaxena/uzay","description":"[WIP] API to serve a blog","fork":false,"url":"https://api.github.com/repos/sakshamsaxena/uzay","forks_url":"https://api.github.com/repos/sakshamsaxena/uzay/forks","keys_url":"https://api.github.com/repos/sakshamsaxena/uzay/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sakshamsaxena/uzay/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sakshamsaxena/uzay/teams","hooks_url":"https://api.github.com/repos/sakshamsaxena/uzay/hooks","issue_events_url":"https://api.github.com/repos/sakshamsaxena/uzay/issues/events{/number}","events_url":"https://api.github.com/repos/sakshamsaxena/uzay/events","assignees_url":"https://api.github.com/repos/sakshamsaxena/uzay/assignees{/user}","branches_url":"https://api.github.com/repos/sakshamsaxena/uzay/branches{/branch}","tags_url":"https://api.github.com/repos/sakshamsaxena/uzay/tags","blobs_url":"https://api.github.com/repos/sakshamsaxena/uzay/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sakshamsaxena/uzay/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sakshamsaxena/uzay/git/refs{/sha}","trees_url":"https://api.github.com/repos/sakshamsaxena/uzay/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sakshamsaxena/uzay/statuses/{sha}","languages_url":"https://api.github.com/repos/sakshamsaxena/uzay/languages","stargazers_url":"https://api.github.com/repos/sakshamsaxena/uzay/stargazers","contributors_url":"https://api.github.com/repos/sakshamsaxena/uzay/contributors","subscribers_url":"https://api.github.com/repos/sakshamsaxena/uzay/subscribers","subscription_url":"https://api.github.com/repos/sakshamsaxena/uzay/subscription","commits_url":"https://api.github.com/repos/sakshamsaxena/uzay/commits{/sha}","git_commits_url":"https://api.github.com/repos/sakshamsaxena/uzay/git/commits{/sha}","comments_url":"https://api.github.com/repos/sakshamsaxena/uzay/comments{/number}","issue_comment_url":"https://api.github.com/repos/sakshamsaxena/uzay/issues/comments{/number}","contents_url":"https://api.github.com/repos/sakshamsaxena/uzay/contents/{+path}","compare_url":"https://api.github.com/repos/sakshamsaxena/uzay/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sakshamsaxena/uzay/merges","archive_url":"https://api.github.com/repos/sakshamsaxena/uzay/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sakshamsaxena/uzay/downloads","issues_url":"https://api.github.com/repos/sakshamsaxena/uzay/issues{/number}","pulls_url":"https://api.github.com/repos/sakshamsaxena/uzay/pulls{/number}","milestones_url":"https://api.github.com/repos/sakshamsaxena/uzay/milestones{/number}","notifications_url":"https://api.github.com/repos/sakshamsaxena/uzay/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sakshamsaxena/uzay/labels{/name}","releases_url":"https://api.github.com/repos/sakshamsaxena/uzay/releases{/id}","deployments_url":"https://api.github.com/repos/sakshamsaxena/uzay/deployments","created_at":"2016-11-06T13:44:31Z","updated_at":"2018-07-09T08:30:00Z","pushed_at":"2018-07-10T12:06:36Z","git_url":"git://github.com/sakshamsaxena/uzay.git","ssh_url":"git@github.com:sakshamsaxena/uzay.git","clone_url":"https://github.com/sakshamsaxena/uzay.git","svn_url":"https://github.com/sakshamsaxena/uzay","homepage":"","size":1145,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"archived":false,"open_issues_count":11,"license":null,"forks":14,"open_issues":11,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/21"},"html":{"href":"https://github.com/sakshamsaxena/uzay/pull/21"},"issue":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/issues/21"},"comments":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/sakshamsaxena/uzay/statuses/01745f21e95dd5f7a39962edfd4a61baa54bda6f"}},"author_association":"NONE"}}
{"actor":{"display_login":"hari-govind"}}