{"action":"closed","number":51,"pull_request":{"url":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls/51","id":119882725,"html_url":"https://github.com/jorangreef/sudo-prompt/pull/51","diff_url":"https://github.com/jorangreef/sudo-prompt/pull/51.diff","patch_url":"https://github.com/jorangreef/sudo-prompt/pull/51.patch","issue_url":"https://api.github.com/repos/jorangreef/sudo-prompt/issues/51","number":51,"state":"closed","locked":false,"title":"Allow to pass options to child_process.exec()","user":{"login":"jhermsmeier","id":244907,"avatar_url":"https://avatars3.githubusercontent.com/u/244907?v=4","gravatar_id":"","url":"https://api.github.com/users/jhermsmeier","html_url":"https://github.com/jhermsmeier","followers_url":"https://api.github.com/users/jhermsmeier/followers","following_url":"https://api.github.com/users/jhermsmeier/following{/other_user}","gists_url":"https://api.github.com/users/jhermsmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/jhermsmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhermsmeier/subscriptions","organizations_url":"https://api.github.com/users/jhermsmeier/orgs","repos_url":"https://api.github.com/users/jhermsmeier/repos","events_url":"https://api.github.com/users/jhermsmeier/events{/privacy}","received_events_url":"https://api.github.com/users/jhermsmeier/received_events","type":"User","site_admin":false},"body":"This enables passing options, such as environment variables, to the spawned child process.\r\n\r\nWe're using this in Etcher, and need to set a few env vars, which we're currently manually prepending to the command (see https://github.com/resin-io/etcher/pull/1376#discussion_r115559021) – this would greatly simplify the process.","created_at":"2017-05-10T13:27:45Z","updated_at":"2017-11-02T07:19:43Z","closed_at":"2017-11-02T07:19:43Z","merged_at":null,"merge_commit_sha":"f1802159d9ffada4b632908416729e4bb938c8ec","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls/51/commits","review_comments_url":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls/51/comments","review_comment_url":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jorangreef/sudo-prompt/issues/51/comments","statuses_url":"https://api.github.com/repos/jorangreef/sudo-prompt/statuses/cda4bd622780a7d9d53becbfc2532809e9b7f836","head":{"label":"jhermsmeier:child-process-env","ref":"child-process-env","sha":"cda4bd622780a7d9d53becbfc2532809e9b7f836","user":{"login":"jhermsmeier","id":244907,"avatar_url":"https://avatars3.githubusercontent.com/u/244907?v=4","gravatar_id":"","url":"https://api.github.com/users/jhermsmeier","html_url":"https://github.com/jhermsmeier","followers_url":"https://api.github.com/users/jhermsmeier/followers","following_url":"https://api.github.com/users/jhermsmeier/following{/other_user}","gists_url":"https://api.github.com/users/jhermsmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/jhermsmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhermsmeier/subscriptions","organizations_url":"https://api.github.com/users/jhermsmeier/orgs","repos_url":"https://api.github.com/users/jhermsmeier/repos","events_url":"https://api.github.com/users/jhermsmeier/events{/privacy}","received_events_url":"https://api.github.com/users/jhermsmeier/received_events","type":"User","site_admin":false},"repo":{"id":90776498,"name":"sudo-prompt","full_name":"jhermsmeier/sudo-prompt","owner":{"login":"jhermsmeier","id":244907,"avatar_url":"https://avatars3.githubusercontent.com/u/244907?v=4","gravatar_id":"","url":"https://api.github.com/users/jhermsmeier","html_url":"https://github.com/jhermsmeier","followers_url":"https://api.github.com/users/jhermsmeier/followers","following_url":"https://api.github.com/users/jhermsmeier/following{/other_user}","gists_url":"https://api.github.com/users/jhermsmeier/gists{/gist_id}","starred_url":"https://api.github.com/users/jhermsmeier/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jhermsmeier/subscriptions","organizations_url":"https://api.github.com/users/jhermsmeier/orgs","repos_url":"https://api.github.com/users/jhermsmeier/repos","events_url":"https://api.github.com/users/jhermsmeier/events{/privacy}","received_events_url":"https://api.github.com/users/jhermsmeier/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jhermsmeier/sudo-prompt","description":"Run a command using sudo, prompting the user with an OS dialog if necessary.","fork":true,"url":"https://api.github.com/repos/jhermsmeier/sudo-prompt","forks_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/forks","keys_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/teams","hooks_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/hooks","issue_events_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/issues/events{/number}","events_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/events","assignees_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/assignees{/user}","branches_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/branches{/branch}","tags_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/tags","blobs_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/git/refs{/sha}","trees_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/statuses/{sha}","languages_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/languages","stargazers_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/stargazers","contributors_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/contributors","subscribers_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/subscribers","subscription_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/subscription","commits_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/commits{/sha}","git_commits_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/git/commits{/sha}","comments_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/comments{/number}","issue_comment_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/issues/comments{/number}","contents_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/contents/{+path}","compare_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/merges","archive_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/downloads","issues_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/issues{/number}","pulls_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/pulls{/number}","milestones_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/milestones{/number}","notifications_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/labels{/name}","releases_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/releases{/id}","deployments_url":"https://api.github.com/repos/jhermsmeier/sudo-prompt/deployments","created_at":"2017-05-09T18:01:03Z","updated_at":"2017-05-09T18:01:04Z","pushed_at":"2017-05-10T13:13:26Z","git_url":"git://github.com/jhermsmeier/sudo-prompt.git","ssh_url":"git@github.com:jhermsmeier/sudo-prompt.git","clone_url":"https://github.com/jhermsmeier/sudo-prompt.git","svn_url":"https://github.com/jhermsmeier/sudo-prompt","homepage":"","size":876,"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,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jorangreef:master","ref":"master","sha":"394dac03cca5193908d93d5981f138ca9cc67b30","user":{"login":"jorangreef","id":413206,"avatar_url":"https://avatars0.githubusercontent.com/u/413206?v=4","gravatar_id":"","url":"https://api.github.com/users/jorangreef","html_url":"https://github.com/jorangreef","followers_url":"https://api.github.com/users/jorangreef/followers","following_url":"https://api.github.com/users/jorangreef/following{/other_user}","gists_url":"https://api.github.com/users/jorangreef/gists{/gist_id}","starred_url":"https://api.github.com/users/jorangreef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorangreef/subscriptions","organizations_url":"https://api.github.com/users/jorangreef/orgs","repos_url":"https://api.github.com/users/jorangreef/repos","events_url":"https://api.github.com/users/jorangreef/events{/privacy}","received_events_url":"https://api.github.com/users/jorangreef/received_events","type":"User","site_admin":false},"repo":{"id":37066088,"name":"sudo-prompt","full_name":"jorangreef/sudo-prompt","owner":{"login":"jorangreef","id":413206,"avatar_url":"https://avatars0.githubusercontent.com/u/413206?v=4","gravatar_id":"","url":"https://api.github.com/users/jorangreef","html_url":"https://github.com/jorangreef","followers_url":"https://api.github.com/users/jorangreef/followers","following_url":"https://api.github.com/users/jorangreef/following{/other_user}","gists_url":"https://api.github.com/users/jorangreef/gists{/gist_id}","starred_url":"https://api.github.com/users/jorangreef/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jorangreef/subscriptions","organizations_url":"https://api.github.com/users/jorangreef/orgs","repos_url":"https://api.github.com/users/jorangreef/repos","events_url":"https://api.github.com/users/jorangreef/events{/privacy}","received_events_url":"https://api.github.com/users/jorangreef/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jorangreef/sudo-prompt","description":"Run a command using sudo, prompting the user with an OS dialog if necessary.","fork":false,"url":"https://api.github.com/repos/jorangreef/sudo-prompt","forks_url":"https://api.github.com/repos/jorangreef/sudo-prompt/forks","keys_url":"https://api.github.com/repos/jorangreef/sudo-prompt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jorangreef/sudo-prompt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jorangreef/sudo-prompt/teams","hooks_url":"https://api.github.com/repos/jorangreef/sudo-prompt/hooks","issue_events_url":"https://api.github.com/repos/jorangreef/sudo-prompt/issues/events{/number}","events_url":"https://api.github.com/repos/jorangreef/sudo-prompt/events","assignees_url":"https://api.github.com/repos/jorangreef/sudo-prompt/assignees{/user}","branches_url":"https://api.github.com/repos/jorangreef/sudo-prompt/branches{/branch}","tags_url":"https://api.github.com/repos/jorangreef/sudo-prompt/tags","blobs_url":"https://api.github.com/repos/jorangreef/sudo-prompt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jorangreef/sudo-prompt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jorangreef/sudo-prompt/git/refs{/sha}","trees_url":"https://api.github.com/repos/jorangreef/sudo-prompt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jorangreef/sudo-prompt/statuses/{sha}","languages_url":"https://api.github.com/repos/jorangreef/sudo-prompt/languages","stargazers_url":"https://api.github.com/repos/jorangreef/sudo-prompt/stargazers","contributors_url":"https://api.github.com/repos/jorangreef/sudo-prompt/contributors","subscribers_url":"https://api.github.com/repos/jorangreef/sudo-prompt/subscribers","subscription_url":"https://api.github.com/repos/jorangreef/sudo-prompt/subscription","commits_url":"https://api.github.com/repos/jorangreef/sudo-prompt/commits{/sha}","git_commits_url":"https://api.github.com/repos/jorangreef/sudo-prompt/git/commits{/sha}","comments_url":"https://api.github.com/repos/jorangreef/sudo-prompt/comments{/number}","issue_comment_url":"https://api.github.com/repos/jorangreef/sudo-prompt/issues/comments{/number}","contents_url":"https://api.github.com/repos/jorangreef/sudo-prompt/contents/{+path}","compare_url":"https://api.github.com/repos/jorangreef/sudo-prompt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jorangreef/sudo-prompt/merges","archive_url":"https://api.github.com/repos/jorangreef/sudo-prompt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jorangreef/sudo-prompt/downloads","issues_url":"https://api.github.com/repos/jorangreef/sudo-prompt/issues{/number}","pulls_url":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls{/number}","milestones_url":"https://api.github.com/repos/jorangreef/sudo-prompt/milestones{/number}","notifications_url":"https://api.github.com/repos/jorangreef/sudo-prompt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jorangreef/sudo-prompt/labels{/name}","releases_url":"https://api.github.com/repos/jorangreef/sudo-prompt/releases{/id}","deployments_url":"https://api.github.com/repos/jorangreef/sudo-prompt/deployments","created_at":"2015-06-08T12:41:53Z","updated_at":"2017-10-31T07:42:38Z","pushed_at":"2017-07-18T13:18:30Z","git_url":"git://github.com/jorangreef/sudo-prompt.git","ssh_url":"git@github.com:jorangreef/sudo-prompt.git","clone_url":"https://github.com/jorangreef/sudo-prompt.git","svn_url":"https://github.com/jorangreef/sudo-prompt","homepage":"","size":876,"stargazers_count":123,"watchers_count":123,"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":4,"forks":14,"open_issues":4,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls/51"},"html":{"href":"https://github.com/jorangreef/sudo-prompt/pull/51"},"issue":{"href":"https://api.github.com/repos/jorangreef/sudo-prompt/issues/51"},"comments":{"href":"https://api.github.com/repos/jorangreef/sudo-prompt/issues/51/comments"},"review_comments":{"href":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls/51/comments"},"review_comment":{"href":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jorangreef/sudo-prompt/pulls/51/commits"},"statuses":{"href":"https://api.github.com/repos/jorangreef/sudo-prompt/statuses/cda4bd622780a7d9d53becbfc2532809e9b7f836"}},"author_association":"NONE","merged":false,"mergeable":true,"rebaseable":true,"mergeable_state":"clean","merged_by":null,"comments":5,"review_comments":0,"maintainer_can_modify":false,"commits":1,"additions":5,"deletions":5,"changed_files":1}}
{"actor":{"display_login":"jorangreef"}}