GitHub PullRequestReviewCommentEvent at 2014-07-24 07:47:38
Repository: psdock
Actor: robinmonjo
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/applidget/psdock/pulls/comments/15333883","id":15333883,"diff_hunk":"@@ -0,0 +1,56 @@\n+package psdock\n+\n+import (\n+\t\"log\"\n+\t\"os\"\n+\t\"os/exec\"\n+\t\"os/user\"\n+\t\"strconv\"\n+\t\"strings\"\n+\t\"syscall\"\n+)\n+\n+//SetEnvVars sets the environment variables for the launched process\n+//Note:if we precise a variable already present in the user's environment,\n+//the value will be the one we have given.\n+//The $PATH variable is not empty by default. If we override it, the elements we\n+//provide will be appended to the default $PATH (/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin)\n+func SetEnvVars(c *exec.Cmd, envVars string) {\n+\t//We first have to manually copy all the current environment variables to c.Env\n+\tc.Env = append(c.Env, os.Environ()...)","path":"context.go","position":20,"original_position":20,"commit_id":"621dcd77a53485d5376d681c6aad73650bbe440b","original_commit_id":"621dcd77a53485d5376d681c6aad73650bbe440b","user":{"login":"robinmonjo","id":1815076,"avatar_url":"https://avatars.githubusercontent.com/u/1815076?","gravatar_id":"35f2e8e3667d1eaaf7288a4252172062","url":"https://api.github.com/users/robinmonjo","html_url":"https://github.com/robinmonjo","followers_url":"https://api.github.com/users/robinmonjo/followers","following_url":"https://api.github.com/users/robinmonjo/following{/other_user}","gists_url":"https://api.github.com/users/robinmonjo/gists{/gist_id}","starred_url":"https://api.github.com/users/robinmonjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robinmonjo/subscriptions","organizations_url":"https://api.github.com/users/robinmonjo/orgs","repos_url":"https://api.github.com/users/robinmonjo/repos","events_url":"https://api.github.com/users/robinmonjo/events{/privacy}","received_events_url":"https://api.github.com/users/robinmonjo/received_events","type":"User","site_admin":false},"body":"yes ok, forgot about that","created_at":"2014-07-24T07:47:38Z","updated_at":"2014-07-24T07:47:38Z","html_url":"https://github.com/applidget/psdock/pull/3#discussion_r15333883","pull_request_url":"https://api.github.com/repos/applidget/psdock/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/applidget/psdock/pulls/comments/15333883"},"html":{"href":"https://github.com/applidget/psdock/pull/3#discussion_r15333883"},"pull_request":{"href":"https://api.github.com/repos/applidget/psdock/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/applidget/psdock/pulls/3","id":18777936,"html_url":"https://github.com/applidget/psdock/pull/3","diff_url":"https://github.com/applidget/psdock/pull/3.diff","patch_url":"https://github.com/applidget/psdock/pull/3.patch","issue_url":"https://api.github.com/repos/applidget/psdock/issues/3","number":3,"state":"open","title":"Watch process","user":{"login":"efatih","id":8222178,"avatar_url":"https://avatars.githubusercontent.com/u/8222178?","gravatar_id":"7ce5e711d47f6ce3b0e6583ba6a2e64e","url":"https://api.github.com/users/efatih","html_url":"https://github.com/efatih","followers_url":"https://api.github.com/users/efatih/followers","following_url":"https://api.github.com/users/efatih/following{/other_user}","gists_url":"https://api.github.com/users/efatih/gists{/gist_id}","starred_url":"https://api.github.com/users/efatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efatih/subscriptions","organizations_url":"https://api.github.com/users/efatih/orgs","repos_url":"https://api.github.com/users/efatih/repos","events_url":"https://api.github.com/users/efatih/events{/privacy}","received_events_url":"https://api.github.com/users/efatih/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-07-23T14:18:17Z","updated_at":"2014-07-24T07:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"61c7e9bb2948314f300489e58306467cdddc16e7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/applidget/psdock/pulls/3/commits","review_comments_url":"https://api.github.com/repos/applidget/psdock/pulls/3/comments","review_comment_url":"https://api.github.com/repos/applidget/psdock/pulls/comments/{number}","comments_url":"https://api.github.com/repos/applidget/psdock/issues/3/comments","statuses_url":"https://api.github.com/repos/applidget/psdock/statuses/621dcd77a53485d5376d681c6aad73650bbe440b","head":{"label":"efatih:watchProcess","ref":"watchProcess","sha":"621dcd77a53485d5376d681c6aad73650bbe440b","user":{"login":"efatih","id":8222178,"avatar_url":"https://avatars.githubusercontent.com/u/8222178?","gravatar_id":"7ce5e711d47f6ce3b0e6583ba6a2e64e","url":"https://api.github.com/users/efatih","html_url":"https://github.com/efatih","followers_url":"https://api.github.com/users/efatih/followers","following_url":"https://api.github.com/users/efatih/following{/other_user}","gists_url":"https://api.github.com/users/efatih/gists{/gist_id}","starred_url":"https://api.github.com/users/efatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efatih/subscriptions","organizations_url":"https://api.github.com/users/efatih/orgs","repos_url":"https://api.github.com/users/efatih/repos","events_url":"https://api.github.com/users/efatih/events{/privacy}","received_events_url":"https://api.github.com/users/efatih/received_events","type":"User","site_admin":false},"repo":{"id":22057377,"name":"psdock","full_name":"efatih/psdock","owner":{"login":"efatih","id":8222178,"avatar_url":"https://avatars.githubusercontent.com/u/8222178?","gravatar_id":"7ce5e711d47f6ce3b0e6583ba6a2e64e","url":"https://api.github.com/users/efatih","html_url":"https://github.com/efatih","followers_url":"https://api.github.com/users/efatih/followers","following_url":"https://api.github.com/users/efatih/following{/other_user}","gists_url":"https://api.github.com/users/efatih/gists{/gist_id}","starred_url":"https://api.github.com/users/efatih/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efatih/subscriptions","organizations_url":"https://api.github.com/users/efatih/orgs","repos_url":"https://api.github.com/users/efatih/repos","events_url":"https://api.github.com/users/efatih/events{/privacy}","received_events_url":"https://api.github.com/users/efatih/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/efatih/psdock","description":"","fork":true,"url":"https://api.github.com/repos/efatih/psdock","forks_url":"https://api.github.com/repos/efatih/psdock/forks","keys_url":"https://api.github.com/repos/efatih/psdock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/efatih/psdock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/efatih/psdock/teams","hooks_url":"https://api.github.com/repos/efatih/psdock/hooks","issue_events_url":"https://api.github.com/repos/efatih/psdock/issues/events{/number}","events_url":"https://api.github.com/repos/efatih/psdock/events","assignees_url":"https://api.github.com/repos/efatih/psdock/assignees{/user}","branches_url":"https://api.github.com/repos/efatih/psdock/branches{/branch}","tags_url":"https://api.github.com/repos/efatih/psdock/tags","blobs_url":"https://api.github.com/repos/efatih/psdock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/efatih/psdock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/efatih/psdock/git/refs{/sha}","trees_url":"https://api.github.com/repos/efatih/psdock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/efatih/psdock/statuses/{sha}","languages_url":"https://api.github.com/repos/efatih/psdock/languages","stargazers_url":"https://api.github.com/repos/efatih/psdock/stargazers","contributors_url":"https://api.github.com/repos/efatih/psdock/contributors","subscribers_url":"https://api.github.com/repos/efatih/psdock/subscribers","subscription_url":"https://api.github.com/repos/efatih/psdock/subscription","commits_url":"https://api.github.com/repos/efatih/psdock/commits{/sha}","git_commits_url":"https://api.github.com/repos/efatih/psdock/git/commits{/sha}","comments_url":"https://api.github.com/repos/efatih/psdock/comments{/number}","issue_comment_url":"https://api.github.com/repos/efatih/psdock/issues/comments/{number}","contents_url":"https://api.github.com/repos/efatih/psdock/contents/{+path}","compare_url":"https://api.github.com/repos/efatih/psdock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/efatih/psdock/merges","archive_url":"https://api.github.com/repos/efatih/psdock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/efatih/psdock/downloads","issues_url":"https://api.github.com/repos/efatih/psdock/issues{/number}","pulls_url":"https://api.github.com/repos/efatih/psdock/pulls{/number}","milestones_url":"https://api.github.com/repos/efatih/psdock/milestones{/number}","notifications_url":"https://api.github.com/repos/efatih/psdock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/efatih/psdock/labels{/name}","releases_url":"https://api.github.com/repos/efatih/psdock/releases{/id}","created_at":"2014-07-21T08:38:47Z","updated_at":"2014-07-22T08:14:46Z","pushed_at":"2014-07-23T16:49:31Z","git_url":"git://github.com/efatih/psdock.git","ssh_url":"git@github.com:efatih/psdock.git","clone_url":"https://github.com/efatih/psdock.git","svn_url":"https://github.com/efatih/psdock","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":false,"has_downloads":true,"has_wiki":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"applidget:master","ref":"master","sha":"86d2baf6765861a16feb524ffa6ea85617c07e3d","user":{"login":"applidget","id":1300756,"avatar_url":"https://avatars.githubusercontent.com/u/1300756?","gravatar_id":"0a0d77ccace353a80940e97ed25e2ca3","url":"https://api.github.com/users/applidget","html_url":"https://github.com/applidget","followers_url":"https://api.github.com/users/applidget/followers","following_url":"https://api.github.com/users/applidget/following{/other_user}","gists_url":"https://api.github.com/users/applidget/gists{/gist_id}","starred_url":"https://api.github.com/users/applidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applidget/subscriptions","organizations_url":"https://api.github.com/users/applidget/orgs","repos_url":"https://api.github.com/users/applidget/repos","events_url":"https://api.github.com/users/applidget/events{/privacy}","received_events_url":"https://api.github.com/users/applidget/received_events","type":"Organization","site_admin":false},"repo":{"id":21987957,"name":"psdock","full_name":"applidget/psdock","owner":{"login":"applidget","id":1300756,"avatar_url":"https://avatars.githubusercontent.com/u/1300756?","gravatar_id":"0a0d77ccace353a80940e97ed25e2ca3","url":"https://api.github.com/users/applidget","html_url":"https://github.com/applidget","followers_url":"https://api.github.com/users/applidget/followers","following_url":"https://api.github.com/users/applidget/following{/other_user}","gists_url":"https://api.github.com/users/applidget/gists{/gist_id}","starred_url":"https://api.github.com/users/applidget/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applidget/subscriptions","organizations_url":"https://api.github.com/users/applidget/orgs","repos_url":"https://api.github.com/users/applidget/repos","events_url":"https://api.github.com/users/applidget/events{/privacy}","received_events_url":"https://api.github.com/users/applidget/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/applidget/psdock","description":"","fork":false,"url":"https://api.github.com/repos/applidget/psdock","forks_url":"https://api.github.com/repos/applidget/psdock/forks","keys_url":"https://api.github.com/repos/applidget/psdock/keys{/key_id}","collaborators_url":"https://api.github.com/repos/applidget/psdock/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/applidget/psdock/teams","hooks_url":"https://api.github.com/repos/applidget/psdock/hooks","issue_events_url":"https://api.github.com/repos/applidget/psdock/issues/events{/number}","events_url":"https://api.github.com/repos/applidget/psdock/events","assignees_url":"https://api.github.com/repos/applidget/psdock/assignees{/user}","branches_url":"https://api.github.com/repos/applidget/psdock/branches{/branch}","tags_url":"https://api.github.com/repos/applidget/psdock/tags","blobs_url":"https://api.github.com/repos/applidget/psdock/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/applidget/psdock/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/applidget/psdock/git/refs{/sha}","trees_url":"https://api.github.com/repos/applidget/psdock/git/trees{/sha}","statuses_url":"https://api.github.com/repos/applidget/psdock/statuses/{sha}","languages_url":"https://api.github.com/repos/applidget/psdock/languages","stargazers_url":"https://api.github.com/repos/applidget/psdock/stargazers","contributors_url":"https://api.github.com/repos/applidget/psdock/contributors","subscribers_url":"https://api.github.com/repos/applidget/psdock/subscribers","subscription_url":"https://api.github.com/repos/applidget/psdock/subscription","commits_url":"https://api.github.com/repos/applidget/psdock/commits{/sha}","git_commits_url":"https://api.github.com/repos/applidget/psdock/git/commits{/sha}","comments_url":"https://api.github.com/repos/applidget/psdock/comments{/number}","issue_comment_url":"https://api.github.com/repos/applidget/psdock/issues/comments/{number}","contents_url":"https://api.github.com/repos/applidget/psdock/contents/{+path}","compare_url":"https://api.github.com/repos/applidget/psdock/compare/{base}...{head}","merges_url":"https://api.github.com/repos/applidget/psdock/merges","archive_url":"https://api.github.com/repos/applidget/psdock/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/applidget/psdock/downloads","issues_url":"https://api.github.com/repos/applidget/psdock/issues{/number}","pulls_url":"https://api.github.com/repos/applidget/psdock/pulls{/number}","milestones_url":"https://api.github.com/repos/applidget/psdock/milestones{/number}","notifications_url":"https://api.github.com/repos/applidget/psdock/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/applidget/psdock/labels{/name}","releases_url":"https://api.github.com/repos/applidget/psdock/releases{/id}","created_at":"2014-07-18T17:06:44Z","updated_at":"2014-07-21T08:29:59Z","pushed_at":"2014-07-22T08:09:54Z","git_url":"git://github.com/applidget/psdock.git","ssh_url":"git@github.com:applidget/psdock.git","clone_url":"https://github.com/applidget/psdock.git","svn_url":"https://github.com/applidget/psdock","homepage":null,"size":0,"stargazers_count":0,"watchers_count":0,"language":"Shell","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/applidget/psdock/pulls/3"},"html":{"href":"https://github.com/applidget/psdock/pull/3"},"issue":{"href":"https://api.github.com/repos/applidget/psdock/issues/3"},"comments":{"href":"https://api.github.com/repos/applidget/psdock/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/applidget/psdock/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/applidget/psdock/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/applidget/psdock/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/applidget/psdock/statuses/621dcd77a53485d5376d681c6aad73650bbe440b"}}}}