{"action":"created","comment":{"url":"https://api.github.com/repos/openSUSE/cheetah/pulls/comments/47898549","id":47898549,"diff_hunk":"@@ -757,6 +757,33 @@ def create_command(source, name: \"command\")\n           expect(Cheetah.run(\"/bin/false\", stdout: :capture, allowed_exitstatus: 1)).to eq([\"\", 1])\n         end\n       end\n+\n+      describe \"changing environment\" do\n+        let(:command) do\n+          create_command(<<-EOT)\n+            echo -n ${CHEETAH_TEST?\"NOT SET\"}\n+          EOT\n+        end\n+\n+        it \"runs command with given env\" do\n+          expect(\n+            Cheetah.run(command, stdout: :capture, env: { \"CHEETAH_TEST\" => \"OK\" })\n+          ).to eq \"OK\"\n+        end\n+\n+        it \"do not change env outside call\" do","path":"spec/cheetah_spec.rb","position":18,"original_position":18,"commit_id":"7586d49fa4d293bcbe00ecc3db69484104f695da","original_commit_id":"7586d49fa4d293bcbe00ecc3db69484104f695da","user":{"login":"mvidner","id":102056,"avatar_url":"https://avatars.githubusercontent.com/u/102056?v=3","gravatar_id":"","url":"https://api.github.com/users/mvidner","html_url":"https://github.com/mvidner","followers_url":"https://api.github.com/users/mvidner/followers","following_url":"https://api.github.com/users/mvidner/following{/other_user}","gists_url":"https://api.github.com/users/mvidner/gists{/gist_id}","starred_url":"https://api.github.com/users/mvidner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mvidner/subscriptions","organizations_url":"https://api.github.com/users/mvidner/orgs","repos_url":"https://api.github.com/users/mvidner/repos","events_url":"https://api.github.com/users/mvidner/events{/privacy}","received_events_url":"https://api.github.com/users/mvidner/received_events","type":"User","site_admin":false},"body":"\"does not change ENV outside the call\"","created_at":"2015-12-17T12:09:48Z","updated_at":"2015-12-17T12:09:48Z","html_url":"https://github.com/openSUSE/cheetah/pull/32#discussion_r47898549","pull_request_url":"https://api.github.com/repos/openSUSE/cheetah/pulls/32","_links":{"self":{"href":"https://api.github.com/repos/openSUSE/cheetah/pulls/comments/47898549"},"html":{"href":"https://github.com/openSUSE/cheetah/pull/32#discussion_r47898549"},"pull_request":{"href":"https://api.github.com/repos/openSUSE/cheetah/pulls/32"}}},"pull_request":{"url":"https://api.github.com/repos/openSUSE/cheetah/pulls/32","id":53850597,"html_url":"https://github.com/openSUSE/cheetah/pull/32","diff_url":"https://github.com/openSUSE/cheetah/pull/32.diff","patch_url":"https://github.com/openSUSE/cheetah/pull/32.patch","issue_url":"https://api.github.com/repos/openSUSE/cheetah/issues/32","number":32,"state":"open","locked":false,"title":"allow passign env to cheetah (gh#17)","user":{"login":"jreidinger","id":478871,"avatar_url":"https://avatars.githubusercontent.com/u/478871?v=3","gravatar_id":"","url":"https://api.github.com/users/jreidinger","html_url":"https://github.com/jreidinger","followers_url":"https://api.github.com/users/jreidinger/followers","following_url":"https://api.github.com/users/jreidinger/following{/other_user}","gists_url":"https://api.github.com/users/jreidinger/gists{/gist_id}","starred_url":"https://api.github.com/users/jreidinger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jreidinger/subscriptions","organizations_url":"https://api.github.com/users/jreidinger/orgs","repos_url":"https://api.github.com/users/jreidinger/repos","events_url":"https://api.github.com/users/jreidinger/events{/privacy}","received_events_url":"https://api.github.com/users/jreidinger/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-16T14:51:51Z","updated_at":"2015-12-17T12:09:48Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b79abbbb08ad8ab76c0e34bb9044f2bb8bab18a5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/openSUSE/cheetah/pulls/32/commits","review_comments_url":"https://api.github.com/repos/openSUSE/cheetah/pulls/32/comments","review_comment_url":"https://api.github.com/repos/openSUSE/cheetah/pulls/comments{/number}","comments_url":"https://api.github.com/repos/openSUSE/cheetah/issues/32/comments","statuses_url":"https://api.github.com/repos/openSUSE/cheetah/statuses/7586d49fa4d293bcbe00ecc3db69484104f695da","head":{"label":"openSUSE:env_support","ref":"env_support","sha":"7586d49fa4d293bcbe00ecc3db69484104f695da","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":3798666,"name":"cheetah","full_name":"openSUSE/cheetah","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/cheetah","description":"Simple library for executing external commands safely and conveniently","fork":false,"url":"https://api.github.com/repos/openSUSE/cheetah","forks_url":"https://api.github.com/repos/openSUSE/cheetah/forks","keys_url":"https://api.github.com/repos/openSUSE/cheetah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/cheetah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/cheetah/teams","hooks_url":"https://api.github.com/repos/openSUSE/cheetah/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/cheetah/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/cheetah/events","assignees_url":"https://api.github.com/repos/openSUSE/cheetah/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/cheetah/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/cheetah/tags","blobs_url":"https://api.github.com/repos/openSUSE/cheetah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/cheetah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/cheetah/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/cheetah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/cheetah/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/cheetah/languages","stargazers_url":"https://api.github.com/repos/openSUSE/cheetah/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/cheetah/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/cheetah/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/cheetah/subscription","commits_url":"https://api.github.com/repos/openSUSE/cheetah/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/cheetah/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/cheetah/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/cheetah/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/cheetah/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/cheetah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/cheetah/merges","archive_url":"https://api.github.com/repos/openSUSE/cheetah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/cheetah/downloads","issues_url":"https://api.github.com/repos/openSUSE/cheetah/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/cheetah/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/cheetah/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/cheetah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/cheetah/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/cheetah/releases{/id}","created_at":"2012-03-22T14:40:12Z","updated_at":"2015-03-17T15:50:00Z","pushed_at":"2015-12-17T11:18:11Z","git_url":"git://github.com/openSUSE/cheetah.git","ssh_url":"git@github.com:openSUSE/cheetah.git","clone_url":"https://github.com/openSUSE/cheetah.git","svn_url":"https://github.com/openSUSE/cheetah","homepage":"","size":146,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":11,"default_branch":"master"}},"base":{"label":"openSUSE:master","ref":"master","sha":"aef298cb06405c3b1cf622a80ae3d51315411fb3","user":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"repo":{"id":3798666,"name":"cheetah","full_name":"openSUSE/cheetah","owner":{"login":"openSUSE","id":623819,"avatar_url":"https://avatars.githubusercontent.com/u/623819?v=3","gravatar_id":"","url":"https://api.github.com/users/openSUSE","html_url":"https://github.com/openSUSE","followers_url":"https://api.github.com/users/openSUSE/followers","following_url":"https://api.github.com/users/openSUSE/following{/other_user}","gists_url":"https://api.github.com/users/openSUSE/gists{/gist_id}","starred_url":"https://api.github.com/users/openSUSE/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/openSUSE/subscriptions","organizations_url":"https://api.github.com/users/openSUSE/orgs","repos_url":"https://api.github.com/users/openSUSE/repos","events_url":"https://api.github.com/users/openSUSE/events{/privacy}","received_events_url":"https://api.github.com/users/openSUSE/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/openSUSE/cheetah","description":"Simple library for executing external commands safely and conveniently","fork":false,"url":"https://api.github.com/repos/openSUSE/cheetah","forks_url":"https://api.github.com/repos/openSUSE/cheetah/forks","keys_url":"https://api.github.com/repos/openSUSE/cheetah/keys{/key_id}","collaborators_url":"https://api.github.com/repos/openSUSE/cheetah/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/openSUSE/cheetah/teams","hooks_url":"https://api.github.com/repos/openSUSE/cheetah/hooks","issue_events_url":"https://api.github.com/repos/openSUSE/cheetah/issues/events{/number}","events_url":"https://api.github.com/repos/openSUSE/cheetah/events","assignees_url":"https://api.github.com/repos/openSUSE/cheetah/assignees{/user}","branches_url":"https://api.github.com/repos/openSUSE/cheetah/branches{/branch}","tags_url":"https://api.github.com/repos/openSUSE/cheetah/tags","blobs_url":"https://api.github.com/repos/openSUSE/cheetah/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/openSUSE/cheetah/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/openSUSE/cheetah/git/refs{/sha}","trees_url":"https://api.github.com/repos/openSUSE/cheetah/git/trees{/sha}","statuses_url":"https://api.github.com/repos/openSUSE/cheetah/statuses/{sha}","languages_url":"https://api.github.com/repos/openSUSE/cheetah/languages","stargazers_url":"https://api.github.com/repos/openSUSE/cheetah/stargazers","contributors_url":"https://api.github.com/repos/openSUSE/cheetah/contributors","subscribers_url":"https://api.github.com/repos/openSUSE/cheetah/subscribers","subscription_url":"https://api.github.com/repos/openSUSE/cheetah/subscription","commits_url":"https://api.github.com/repos/openSUSE/cheetah/commits{/sha}","git_commits_url":"https://api.github.com/repos/openSUSE/cheetah/git/commits{/sha}","comments_url":"https://api.github.com/repos/openSUSE/cheetah/comments{/number}","issue_comment_url":"https://api.github.com/repos/openSUSE/cheetah/issues/comments{/number}","contents_url":"https://api.github.com/repos/openSUSE/cheetah/contents/{+path}","compare_url":"https://api.github.com/repos/openSUSE/cheetah/compare/{base}...{head}","merges_url":"https://api.github.com/repos/openSUSE/cheetah/merges","archive_url":"https://api.github.com/repos/openSUSE/cheetah/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/openSUSE/cheetah/downloads","issues_url":"https://api.github.com/repos/openSUSE/cheetah/issues{/number}","pulls_url":"https://api.github.com/repos/openSUSE/cheetah/pulls{/number}","milestones_url":"https://api.github.com/repos/openSUSE/cheetah/milestones{/number}","notifications_url":"https://api.github.com/repos/openSUSE/cheetah/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/openSUSE/cheetah/labels{/name}","releases_url":"https://api.github.com/repos/openSUSE/cheetah/releases{/id}","created_at":"2012-03-22T14:40:12Z","updated_at":"2015-03-17T15:50:00Z","pushed_at":"2015-12-17T11:18:11Z","git_url":"git://github.com/openSUSE/cheetah.git","ssh_url":"git@github.com:openSUSE/cheetah.git","clone_url":"https://github.com/openSUSE/cheetah.git","svn_url":"https://github.com/openSUSE/cheetah","homepage":"","size":146,"stargazers_count":11,"watchers_count":11,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":7,"mirror_url":null,"open_issues_count":6,"forks":7,"open_issues":6,"watchers":11,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/openSUSE/cheetah/pulls/32"},"html":{"href":"https://github.com/openSUSE/cheetah/pull/32"},"issue":{"href":"https://api.github.com/repos/openSUSE/cheetah/issues/32"},"comments":{"href":"https://api.github.com/repos/openSUSE/cheetah/issues/32/comments"},"review_comments":{"href":"https://api.github.com/repos/openSUSE/cheetah/pulls/32/comments"},"review_comment":{"href":"https://api.github.com/repos/openSUSE/cheetah/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/openSUSE/cheetah/pulls/32/commits"},"statuses":{"href":"https://api.github.com/repos/openSUSE/cheetah/statuses/7586d49fa4d293bcbe00ecc3db69484104f695da"}}}}