{"action":"created","comment":{"url":"https://api.github.com/repos/node-modules/cfork/pulls/comments/88618523","pull_request_review_id":9186859,"id":88618523,"diff_hunk":"@@ -241,6 +242,6 @@ function fork(options) {\n       cluster.settings = settings;\n       cluster.setupMaster();\n     }\n-    return cluster.fork();\n+    return cluster.fork(attachedEnv);","path":"index.js","position":13,"original_position":13,"commit_id":"3c4f9346f68a0a4c259b9bd8f0509349b8d6f4a9","original_commit_id":"3c4f9346f68a0a4c259b9bd8f0509349b8d6f4a9","user":{"login":"XadillaX","id":2842176,"avatar_url":"https://avatars.githubusercontent.com/u/2842176?v=3","gravatar_id":"","url":"https://api.github.com/users/XadillaX","html_url":"https://github.com/XadillaX","followers_url":"https://api.github.com/users/XadillaX/followers","following_url":"https://api.github.com/users/XadillaX/following{/other_user}","gists_url":"https://api.github.com/users/XadillaX/gists{/gist_id}","starred_url":"https://api.github.com/users/XadillaX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XadillaX/subscriptions","organizations_url":"https://api.github.com/users/XadillaX/orgs","repos_url":"https://api.github.com/users/XadillaX/repos","events_url":"https://api.github.com/users/XadillaX/events{/privacy}","received_events_url":"https://api.github.com/users/XadillaX/received_events","type":"User","site_admin":false},"body":"我测试了一下，好像是额外变量的，原变量一样会被加过去。","created_at":"2016-11-18T08:51:49Z","updated_at":"2016-11-18T08:51:50Z","html_url":"https://github.com/node-modules/cfork/pull/100#discussion_r88618523","pull_request_url":"https://api.github.com/repos/node-modules/cfork/pulls/100","_links":{"self":{"href":"https://api.github.com/repos/node-modules/cfork/pulls/comments/88618523"},"html":{"href":"https://github.com/node-modules/cfork/pull/100#discussion_r88618523"},"pull_request":{"href":"https://api.github.com/repos/node-modules/cfork/pulls/100"}}},"pull_request":{"url":"https://api.github.com/repos/node-modules/cfork/pulls/100","id":94320299,"html_url":"https://github.com/node-modules/cfork/pull/100","diff_url":"https://github.com/node-modules/cfork/pull/100.diff","patch_url":"https://github.com/node-modules/cfork/pull/100.patch","issue_url":"https://api.github.com/repos/node-modules/cfork/issues/100","number":100,"state":"open","locked":false,"title":"Add environment variables support for workers","user":{"login":"XadillaX","id":2842176,"avatar_url":"https://avatars.githubusercontent.com/u/2842176?v=3","gravatar_id":"","url":"https://api.github.com/users/XadillaX","html_url":"https://github.com/XadillaX","followers_url":"https://api.github.com/users/XadillaX/followers","following_url":"https://api.github.com/users/XadillaX/following{/other_user}","gists_url":"https://api.github.com/users/XadillaX/gists{/gist_id}","starred_url":"https://api.github.com/users/XadillaX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XadillaX/subscriptions","organizations_url":"https://api.github.com/users/XadillaX/orgs","repos_url":"https://api.github.com/users/XadillaX/repos","events_url":"https://api.github.com/users/XadillaX/events{/privacy}","received_events_url":"https://api.github.com/users/XadillaX/received_events","type":"User","site_admin":false},"body":"There's a parameter in `cluster.fork()` called `env`, it used to be the attached environment variable.","created_at":"2016-11-18T08:23:48Z","updated_at":"2016-11-18T08:51:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"50bbcbdf6dd892490af6c0afeb1d3af354a4a262","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/node-modules/cfork/pulls/100/commits","review_comments_url":"https://api.github.com/repos/node-modules/cfork/pulls/100/comments","review_comment_url":"https://api.github.com/repos/node-modules/cfork/pulls/comments{/number}","comments_url":"https://api.github.com/repos/node-modules/cfork/issues/100/comments","statuses_url":"https://api.github.com/repos/node-modules/cfork/statuses/3c4f9346f68a0a4c259b9bd8f0509349b8d6f4a9","head":{"label":"XadillaX:master","ref":"master","sha":"3c4f9346f68a0a4c259b9bd8f0509349b8d6f4a9","user":{"login":"XadillaX","id":2842176,"avatar_url":"https://avatars.githubusercontent.com/u/2842176?v=3","gravatar_id":"","url":"https://api.github.com/users/XadillaX","html_url":"https://github.com/XadillaX","followers_url":"https://api.github.com/users/XadillaX/followers","following_url":"https://api.github.com/users/XadillaX/following{/other_user}","gists_url":"https://api.github.com/users/XadillaX/gists{/gist_id}","starred_url":"https://api.github.com/users/XadillaX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XadillaX/subscriptions","organizations_url":"https://api.github.com/users/XadillaX/orgs","repos_url":"https://api.github.com/users/XadillaX/repos","events_url":"https://api.github.com/users/XadillaX/events{/privacy}","received_events_url":"https://api.github.com/users/XadillaX/received_events","type":"User","site_admin":false},"repo":{"id":74101066,"name":"cfork","full_name":"XadillaX/cfork","owner":{"login":"XadillaX","id":2842176,"avatar_url":"https://avatars.githubusercontent.com/u/2842176?v=3","gravatar_id":"","url":"https://api.github.com/users/XadillaX","html_url":"https://github.com/XadillaX","followers_url":"https://api.github.com/users/XadillaX/followers","following_url":"https://api.github.com/users/XadillaX/following{/other_user}","gists_url":"https://api.github.com/users/XadillaX/gists{/gist_id}","starred_url":"https://api.github.com/users/XadillaX/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/XadillaX/subscriptions","organizations_url":"https://api.github.com/users/XadillaX/orgs","repos_url":"https://api.github.com/users/XadillaX/repos","events_url":"https://api.github.com/users/XadillaX/events{/privacy}","received_events_url":"https://api.github.com/users/XadillaX/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/XadillaX/cfork","description":"cluster fork and restart easy way","fork":true,"url":"https://api.github.com/repos/XadillaX/cfork","forks_url":"https://api.github.com/repos/XadillaX/cfork/forks","keys_url":"https://api.github.com/repos/XadillaX/cfork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/XadillaX/cfork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/XadillaX/cfork/teams","hooks_url":"https://api.github.com/repos/XadillaX/cfork/hooks","issue_events_url":"https://api.github.com/repos/XadillaX/cfork/issues/events{/number}","events_url":"https://api.github.com/repos/XadillaX/cfork/events","assignees_url":"https://api.github.com/repos/XadillaX/cfork/assignees{/user}","branches_url":"https://api.github.com/repos/XadillaX/cfork/branches{/branch}","tags_url":"https://api.github.com/repos/XadillaX/cfork/tags","blobs_url":"https://api.github.com/repos/XadillaX/cfork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/XadillaX/cfork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/XadillaX/cfork/git/refs{/sha}","trees_url":"https://api.github.com/repos/XadillaX/cfork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/XadillaX/cfork/statuses/{sha}","languages_url":"https://api.github.com/repos/XadillaX/cfork/languages","stargazers_url":"https://api.github.com/repos/XadillaX/cfork/stargazers","contributors_url":"https://api.github.com/repos/XadillaX/cfork/contributors","subscribers_url":"https://api.github.com/repos/XadillaX/cfork/subscribers","subscription_url":"https://api.github.com/repos/XadillaX/cfork/subscription","commits_url":"https://api.github.com/repos/XadillaX/cfork/commits{/sha}","git_commits_url":"https://api.github.com/repos/XadillaX/cfork/git/commits{/sha}","comments_url":"https://api.github.com/repos/XadillaX/cfork/comments{/number}","issue_comment_url":"https://api.github.com/repos/XadillaX/cfork/issues/comments{/number}","contents_url":"https://api.github.com/repos/XadillaX/cfork/contents/{+path}","compare_url":"https://api.github.com/repos/XadillaX/cfork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/XadillaX/cfork/merges","archive_url":"https://api.github.com/repos/XadillaX/cfork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/XadillaX/cfork/downloads","issues_url":"https://api.github.com/repos/XadillaX/cfork/issues{/number}","pulls_url":"https://api.github.com/repos/XadillaX/cfork/pulls{/number}","milestones_url":"https://api.github.com/repos/XadillaX/cfork/milestones{/number}","notifications_url":"https://api.github.com/repos/XadillaX/cfork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/XadillaX/cfork/labels{/name}","releases_url":"https://api.github.com/repos/XadillaX/cfork/releases{/id}","deployments_url":"https://api.github.com/repos/XadillaX/cfork/deployments","created_at":"2016-11-18T06:17:36Z","updated_at":"2016-11-18T06:17:38Z","pushed_at":"2016-11-18T08:22:17Z","git_url":"git://github.com/XadillaX/cfork.git","ssh_url":"git@github.com:XadillaX/cfork.git","clone_url":"https://github.com/XadillaX/cfork.git","svn_url":"https://github.com/XadillaX/cfork","homepage":null,"size":95,"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":"node-modules:master","ref":"master","sha":"73cbd2d1e632ac51d19a45691ac8f3b6dabeb99b","user":{"login":"node-modules","id":7125868,"avatar_url":"https://avatars.githubusercontent.com/u/7125868?v=3","gravatar_id":"","url":"https://api.github.com/users/node-modules","html_url":"https://github.com/node-modules","followers_url":"https://api.github.com/users/node-modules/followers","following_url":"https://api.github.com/users/node-modules/following{/other_user}","gists_url":"https://api.github.com/users/node-modules/gists{/gist_id}","starred_url":"https://api.github.com/users/node-modules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/node-modules/subscriptions","organizations_url":"https://api.github.com/users/node-modules/orgs","repos_url":"https://api.github.com/users/node-modules/repos","events_url":"https://api.github.com/users/node-modules/events{/privacy}","received_events_url":"https://api.github.com/users/node-modules/received_events","type":"Organization","site_admin":false},"repo":{"id":22600468,"name":"cfork","full_name":"node-modules/cfork","owner":{"login":"node-modules","id":7125868,"avatar_url":"https://avatars.githubusercontent.com/u/7125868?v=3","gravatar_id":"","url":"https://api.github.com/users/node-modules","html_url":"https://github.com/node-modules","followers_url":"https://api.github.com/users/node-modules/followers","following_url":"https://api.github.com/users/node-modules/following{/other_user}","gists_url":"https://api.github.com/users/node-modules/gists{/gist_id}","starred_url":"https://api.github.com/users/node-modules/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/node-modules/subscriptions","organizations_url":"https://api.github.com/users/node-modules/orgs","repos_url":"https://api.github.com/users/node-modules/repos","events_url":"https://api.github.com/users/node-modules/events{/privacy}","received_events_url":"https://api.github.com/users/node-modules/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/node-modules/cfork","description":"cluster fork and restart easy way","fork":false,"url":"https://api.github.com/repos/node-modules/cfork","forks_url":"https://api.github.com/repos/node-modules/cfork/forks","keys_url":"https://api.github.com/repos/node-modules/cfork/keys{/key_id}","collaborators_url":"https://api.github.com/repos/node-modules/cfork/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/node-modules/cfork/teams","hooks_url":"https://api.github.com/repos/node-modules/cfork/hooks","issue_events_url":"https://api.github.com/repos/node-modules/cfork/issues/events{/number}","events_url":"https://api.github.com/repos/node-modules/cfork/events","assignees_url":"https://api.github.com/repos/node-modules/cfork/assignees{/user}","branches_url":"https://api.github.com/repos/node-modules/cfork/branches{/branch}","tags_url":"https://api.github.com/repos/node-modules/cfork/tags","blobs_url":"https://api.github.com/repos/node-modules/cfork/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/node-modules/cfork/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/node-modules/cfork/git/refs{/sha}","trees_url":"https://api.github.com/repos/node-modules/cfork/git/trees{/sha}","statuses_url":"https://api.github.com/repos/node-modules/cfork/statuses/{sha}","languages_url":"https://api.github.com/repos/node-modules/cfork/languages","stargazers_url":"https://api.github.com/repos/node-modules/cfork/stargazers","contributors_url":"https://api.github.com/repos/node-modules/cfork/contributors","subscribers_url":"https://api.github.com/repos/node-modules/cfork/subscribers","subscription_url":"https://api.github.com/repos/node-modules/cfork/subscription","commits_url":"https://api.github.com/repos/node-modules/cfork/commits{/sha}","git_commits_url":"https://api.github.com/repos/node-modules/cfork/git/commits{/sha}","comments_url":"https://api.github.com/repos/node-modules/cfork/comments{/number}","issue_comment_url":"https://api.github.com/repos/node-modules/cfork/issues/comments{/number}","contents_url":"https://api.github.com/repos/node-modules/cfork/contents/{+path}","compare_url":"https://api.github.com/repos/node-modules/cfork/compare/{base}...{head}","merges_url":"https://api.github.com/repos/node-modules/cfork/merges","archive_url":"https://api.github.com/repos/node-modules/cfork/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/node-modules/cfork/downloads","issues_url":"https://api.github.com/repos/node-modules/cfork/issues{/number}","pulls_url":"https://api.github.com/repos/node-modules/cfork/pulls{/number}","milestones_url":"https://api.github.com/repos/node-modules/cfork/milestones{/number}","notifications_url":"https://api.github.com/repos/node-modules/cfork/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/node-modules/cfork/labels{/name}","releases_url":"https://api.github.com/repos/node-modules/cfork/releases{/id}","deployments_url":"https://api.github.com/repos/node-modules/cfork/deployments","created_at":"2014-08-04T10:34:05Z","updated_at":"2016-11-17T09:10:01Z","pushed_at":"2016-11-18T08:23:48Z","git_url":"git://github.com/node-modules/cfork.git","ssh_url":"git@github.com:node-modules/cfork.git","clone_url":"https://github.com/node-modules/cfork.git","svn_url":"https://github.com/node-modules/cfork","homepage":null,"size":95,"stargazers_count":58,"watchers_count":58,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":19,"mirror_url":null,"open_issues_count":3,"forks":19,"open_issues":3,"watchers":58,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/node-modules/cfork/pulls/100"},"html":{"href":"https://github.com/node-modules/cfork/pull/100"},"issue":{"href":"https://api.github.com/repos/node-modules/cfork/issues/100"},"comments":{"href":"https://api.github.com/repos/node-modules/cfork/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/node-modules/cfork/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/node-modules/cfork/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/node-modules/cfork/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/node-modules/cfork/statuses/3c4f9346f68a0a4c259b9bd8f0509349b8d6f4a9"}}}}
{"actor":{"display_login":"XadillaX"}}