{"action":"created","issue":{"url":"https://api.github.com/repos/docker/docker/issues/12659","labels_url":"https://api.github.com/repos/docker/docker/issues/12659/labels{/name}","comments_url":"https://api.github.com/repos/docker/docker/issues/12659/comments","events_url":"https://api.github.com/repos/docker/docker/issues/12659/events","html_url":"https://github.com/docker/docker/pull/12659","id":70263454,"number":12659,"title":"reuse same code for setting pipes in run/exec","user":{"login":"dqminh","id":62707,"avatar_url":"https://avatars.githubusercontent.com/u/62707?v=3","gravatar_id":"","url":"https://api.github.com/users/dqminh","html_url":"https://github.com/dqminh","followers_url":"https://api.github.com/users/dqminh/followers","following_url":"https://api.github.com/users/dqminh/following{/other_user}","gists_url":"https://api.github.com/users/dqminh/gists{/gist_id}","starred_url":"https://api.github.com/users/dqminh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dqminh/subscriptions","organizations_url":"https://api.github.com/users/dqminh/orgs","repos_url":"https://api.github.com/users/dqminh/repos","events_url":"https://api.github.com/users/dqminh/events{/privacy}","received_events_url":"https://api.github.com/users/dqminh/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/docker/labels/status/2-needs-code-review","name":"status/2-needs-code-review","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-04-22T23:44:15Z","updated_at":"2015-04-23T23:32:18Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/docker/docker/pulls/12659","html_url":"https://github.com/docker/docker/pull/12659","diff_url":"https://github.com/docker/docker/pull/12659.diff","patch_url":"https://github.com/docker/docker/pull/12659.patch"},"body":"Fixes https://github.com/docker/docker/issues/12546\r\n\r\nThe command's stdin pipe has to be an *os.File, otherwise bad things happen. This tries to reuse some code of `run` to setup the pipes because `run` code path already took care of that."},"comment":{"url":"https://api.github.com/repos/docker/docker/issues/comments/95747135","html_url":"https://github.com/docker/docker/pull/12659#issuecomment-95747135","issue_url":"https://api.github.com/repos/docker/docker/issues/12659","id":95747135,"user":{"login":"cpuguy83","id":799078,"avatar_url":"https://avatars.githubusercontent.com/u/799078?v=3","gravatar_id":"","url":"https://api.github.com/users/cpuguy83","html_url":"https://github.com/cpuguy83","followers_url":"https://api.github.com/users/cpuguy83/followers","following_url":"https://api.github.com/users/cpuguy83/following{/other_user}","gists_url":"https://api.github.com/users/cpuguy83/gists{/gist_id}","starred_url":"https://api.github.com/users/cpuguy83/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cpuguy83/subscriptions","organizations_url":"https://api.github.com/users/cpuguy83/orgs","repos_url":"https://api.github.com/users/cpuguy83/repos","events_url":"https://api.github.com/users/cpuguy83/events{/privacy}","received_events_url":"https://api.github.com/users/cpuguy83/received_events","type":"User","site_admin":false},"created_at":"2015-04-23T23:32:17Z","updated_at":"2015-04-23T23:32:17Z","body":"LGTM"}}