{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/comments/102985499","pull_request_review_id":23762225,"id":102985499,"diff_hunk":"@@ -0,0 +1,100 @@\n+using System;\n+using System.Collections.Generic;\n+using System.IO;\n+using System.Threading.Tasks;\n+using Microsoft.VisualStudio.Services.Agent.Util;\n+using Microsoft.VisualStudio.Services.Agent.Worker.Handlers;\n+\n+namespace Microsoft.VisualStudio.Services.Agent.Worker\n+{\n+    // This class is for internal testing and is not publicly supported. This will be removed from the agent at a later time.\n+    public class ScriptJobExtension : AgentService","path":"src/Agent.Worker/ScriptJobExtension.cs","position":11,"original_position":11,"commit_id":"372d818f03fca914c1b78833ba9efbea54c5db9c","original_commit_id":"372d818f03fca914c1b78833ba9efbea54c5db9c","user":{"login":"TingluoHuang","id":1750815,"avatar_url":"https://avatars.githubusercontent.com/u/1750815?v=3","gravatar_id":"","url":"https://api.github.com/users/TingluoHuang","html_url":"https://github.com/TingluoHuang","followers_url":"https://api.github.com/users/TingluoHuang/followers","following_url":"https://api.github.com/users/TingluoHuang/following{/other_user}","gists_url":"https://api.github.com/users/TingluoHuang/gists{/gist_id}","starred_url":"https://api.github.com/users/TingluoHuang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TingluoHuang/subscriptions","organizations_url":"https://api.github.com/users/TingluoHuang/orgs","repos_url":"https://api.github.com/users/TingluoHuang/repos","events_url":"https://api.github.com/users/TingluoHuang/events{/privacy}","received_events_url":"https://api.github.com/users/TingluoHuang/received_events","type":"User","site_admin":false},"body":"in your Powershell script, you will get the accesstoken via environment variable INPUT_ACCESSTOKEN. \r\nI don't want you use PowerShellHandler since it's a deprecated handler.","created_at":"2017-02-24T17:05:10Z","updated_at":"2017-02-24T17:05:10Z","html_url":"https://github.com/Microsoft/vsts-agent/pull/785#discussion_r102985499","pull_request_url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/785","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/comments/102985499"},"html":{"href":"https://github.com/Microsoft/vsts-agent/pull/785#discussion_r102985499"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/785"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/785","id":105265372,"html_url":"https://github.com/Microsoft/vsts-agent/pull/785","diff_url":"https://github.com/Microsoft/vsts-agent/pull/785.diff","patch_url":"https://github.com/Microsoft/vsts-agent/pull/785.patch","issue_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/785","number":785,"state":"open","locked":false,"title":"Added script job extention.","user":{"login":"KirillPa","id":25642465,"avatar_url":"https://avatars.githubusercontent.com/u/25642465?v=3","gravatar_id":"","url":"https://api.github.com/users/KirillPa","html_url":"https://github.com/KirillPa","followers_url":"https://api.github.com/users/KirillPa/followers","following_url":"https://api.github.com/users/KirillPa/following{/other_user}","gists_url":"https://api.github.com/users/KirillPa/gists{/gist_id}","starred_url":"https://api.github.com/users/KirillPa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirillPa/subscriptions","organizations_url":"https://api.github.com/users/KirillPa/orgs","repos_url":"https://api.github.com/users/KirillPa/repos","events_url":"https://api.github.com/users/KirillPa/events{/privacy}","received_events_url":"https://api.github.com/users/KirillPa/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-02-08T17:31:52Z","updated_at":"2017-02-24T17:05:10Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6c2310b6d46c655a9aa2115989113067515ae3db","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/785/commits","review_comments_url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/785/comments","review_comment_url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/785/comments","statuses_url":"https://api.github.com/repos/Microsoft/vsts-agent/statuses/372d818f03fca914c1b78833ba9efbea54c5db9c","head":{"label":"KirillPa:AddPrePostScripts","ref":"AddPrePostScripts","sha":"372d818f03fca914c1b78833ba9efbea54c5db9c","user":{"login":"KirillPa","id":25642465,"avatar_url":"https://avatars.githubusercontent.com/u/25642465?v=3","gravatar_id":"","url":"https://api.github.com/users/KirillPa","html_url":"https://github.com/KirillPa","followers_url":"https://api.github.com/users/KirillPa/followers","following_url":"https://api.github.com/users/KirillPa/following{/other_user}","gists_url":"https://api.github.com/users/KirillPa/gists{/gist_id}","starred_url":"https://api.github.com/users/KirillPa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirillPa/subscriptions","organizations_url":"https://api.github.com/users/KirillPa/orgs","repos_url":"https://api.github.com/users/KirillPa/repos","events_url":"https://api.github.com/users/KirillPa/events{/privacy}","received_events_url":"https://api.github.com/users/KirillPa/received_events","type":"User","site_admin":false},"repo":{"id":81349668,"name":"vsts-agent","full_name":"KirillPa/vsts-agent","owner":{"login":"KirillPa","id":25642465,"avatar_url":"https://avatars.githubusercontent.com/u/25642465?v=3","gravatar_id":"","url":"https://api.github.com/users/KirillPa","html_url":"https://github.com/KirillPa","followers_url":"https://api.github.com/users/KirillPa/followers","following_url":"https://api.github.com/users/KirillPa/following{/other_user}","gists_url":"https://api.github.com/users/KirillPa/gists{/gist_id}","starred_url":"https://api.github.com/users/KirillPa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KirillPa/subscriptions","organizations_url":"https://api.github.com/users/KirillPa/orgs","repos_url":"https://api.github.com/users/KirillPa/repos","events_url":"https://api.github.com/users/KirillPa/events{/privacy}","received_events_url":"https://api.github.com/users/KirillPa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/KirillPa/vsts-agent","description":"Visual Studio Team Services Build and Release Agent","fork":true,"url":"https://api.github.com/repos/KirillPa/vsts-agent","forks_url":"https://api.github.com/repos/KirillPa/vsts-agent/forks","keys_url":"https://api.github.com/repos/KirillPa/vsts-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/KirillPa/vsts-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/KirillPa/vsts-agent/teams","hooks_url":"https://api.github.com/repos/KirillPa/vsts-agent/hooks","issue_events_url":"https://api.github.com/repos/KirillPa/vsts-agent/issues/events{/number}","events_url":"https://api.github.com/repos/KirillPa/vsts-agent/events","assignees_url":"https://api.github.com/repos/KirillPa/vsts-agent/assignees{/user}","branches_url":"https://api.github.com/repos/KirillPa/vsts-agent/branches{/branch}","tags_url":"https://api.github.com/repos/KirillPa/vsts-agent/tags","blobs_url":"https://api.github.com/repos/KirillPa/vsts-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/KirillPa/vsts-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/KirillPa/vsts-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/KirillPa/vsts-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/KirillPa/vsts-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/KirillPa/vsts-agent/languages","stargazers_url":"https://api.github.com/repos/KirillPa/vsts-agent/stargazers","contributors_url":"https://api.github.com/repos/KirillPa/vsts-agent/contributors","subscribers_url":"https://api.github.com/repos/KirillPa/vsts-agent/subscribers","subscription_url":"https://api.github.com/repos/KirillPa/vsts-agent/subscription","commits_url":"https://api.github.com/repos/KirillPa/vsts-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/KirillPa/vsts-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/KirillPa/vsts-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/KirillPa/vsts-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/KirillPa/vsts-agent/contents/{+path}","compare_url":"https://api.github.com/repos/KirillPa/vsts-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/KirillPa/vsts-agent/merges","archive_url":"https://api.github.com/repos/KirillPa/vsts-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/KirillPa/vsts-agent/downloads","issues_url":"https://api.github.com/repos/KirillPa/vsts-agent/issues{/number}","pulls_url":"https://api.github.com/repos/KirillPa/vsts-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/KirillPa/vsts-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/KirillPa/vsts-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/KirillPa/vsts-agent/labels{/name}","releases_url":"https://api.github.com/repos/KirillPa/vsts-agent/releases{/id}","deployments_url":"https://api.github.com/repos/KirillPa/vsts-agent/deployments","created_at":"2017-02-08T16:22:22Z","updated_at":"2017-02-08T16:22:25Z","pushed_at":"2017-02-22T21:02:29Z","git_url":"git://github.com/KirillPa/vsts-agent.git","ssh_url":"git@github.com:KirillPa/vsts-agent.git","clone_url":"https://github.com/KirillPa/vsts-agent.git","svn_url":"https://github.com/KirillPa/vsts-agent","homepage":null,"size":2940,"stargazers_count":0,"watchers_count":0,"language":"C#","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":"Microsoft:master","ref":"master","sha":"3f4467d505c79045f68e84002f473634a0520c4f","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":53052789,"name":"vsts-agent","full_name":"Microsoft/vsts-agent","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/vsts-agent","description":"Visual Studio Team Services Build and Release Agent","fork":false,"url":"https://api.github.com/repos/Microsoft/vsts-agent","forks_url":"https://api.github.com/repos/Microsoft/vsts-agent/forks","keys_url":"https://api.github.com/repos/Microsoft/vsts-agent/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/vsts-agent/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/vsts-agent/teams","hooks_url":"https://api.github.com/repos/Microsoft/vsts-agent/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/vsts-agent/events","assignees_url":"https://api.github.com/repos/Microsoft/vsts-agent/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/vsts-agent/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/vsts-agent/tags","blobs_url":"https://api.github.com/repos/Microsoft/vsts-agent/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/vsts-agent/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/vsts-agent/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/vsts-agent/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/vsts-agent/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/vsts-agent/languages","stargazers_url":"https://api.github.com/repos/Microsoft/vsts-agent/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/vsts-agent/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/vsts-agent/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/vsts-agent/subscription","commits_url":"https://api.github.com/repos/Microsoft/vsts-agent/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/vsts-agent/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/vsts-agent/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/vsts-agent/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/vsts-agent/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/vsts-agent/merges","archive_url":"https://api.github.com/repos/Microsoft/vsts-agent/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/vsts-agent/downloads","issues_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/vsts-agent/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/vsts-agent/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/vsts-agent/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/vsts-agent/releases{/id}","deployments_url":"https://api.github.com/repos/Microsoft/vsts-agent/deployments","created_at":"2016-03-03T13:36:48Z","updated_at":"2017-02-24T12:14:58Z","pushed_at":"2017-02-24T16:55:03Z","git_url":"git://github.com/Microsoft/vsts-agent.git","ssh_url":"git@github.com:Microsoft/vsts-agent.git","clone_url":"https://github.com/Microsoft/vsts-agent.git","svn_url":"https://github.com/Microsoft/vsts-agent","homepage":null,"size":3071,"stargazers_count":198,"watchers_count":198,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":112,"mirror_url":null,"open_issues_count":61,"forks":112,"open_issues":61,"watchers":198,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/785"},"html":{"href":"https://github.com/Microsoft/vsts-agent/pull/785"},"issue":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/issues/785"},"comments":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/issues/785/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/785/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/785/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/statuses/372d818f03fca914c1b78833ba9efbea54c5db9c"}}}}
{"actor":{"display_login":"TingluoHuang"}}