{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/comments/57530236","id":57530236,"diff_hunk":"@@ -0,0 +1,339 @@\n+﻿using Microsoft.TeamFoundation.Build.WebApi;\n+using Microsoft.TeamFoundation.DistributedTask.WebApi;\n+using Microsoft.VisualStudio.Services.Agent.Util;\n+using Microsoft.VisualStudio.Services.Common;\n+using System;\n+using System.Collections.Generic;\n+using System.IO;\n+using System.Linq;\n+using System.Threading;\n+using System.Threading.Tasks;\n+\n+namespace Microsoft.VisualStudio.Services.Agent.Worker.Build\n+{\n+    public sealed class ArtifactCommands : AgentService, ICommandExtension\n+    {\n+        public Type ExtensionType\n+        {\n+            get\n+            {\n+                return typeof(ICommandExtension);\n+            }\n+        }\n+\n+        public string CommandArea\n+        {\n+            get\n+            {\n+                return \"artifact\";\n+            }\n+        }\n+\n+        public void ProcessCommand(IExecutionContext context, Command command)\n+        {\n+            if (string.Equals(command.Event, WellKnownArtifactCommand.Associate, StringComparison.OrdinalIgnoreCase))\n+            {\n+                ProcessArtifactAssociateCommand(context, command.Properties, command.Data);\n+            }\n+            else if (string.Equals(command.Event, WellKnownArtifactCommand.Upload, StringComparison.OrdinalIgnoreCase))\n+            {\n+                ProcessArtifactUploadCommand(context, command.Properties, command.Data);\n+            }\n+            else\n+            {\n+                throw new Exception(StringUtil.Loc(\"ArtifactCommandNotFound\", command.Event));\n+            }\n+\n+            return;\n+        }\n+\n+        private void ProcessArtifactAssociateCommand(IExecutionContext context, Dictionary<string, string> eventProperties, string data)\n+        {\n+            ArgUtil.NotNull(context, nameof(context));\n+            ArgUtil.NotNull(context.Endpoints, nameof(context.Endpoints));\n+\n+            ServiceEndpoint systemConnection = context.Endpoints.FirstOrDefault(e => string.Equals(e.Name, ServiceEndpoints.SystemVssConnection, StringComparison.OrdinalIgnoreCase));\n+            ArgUtil.NotNull(systemConnection, nameof(systemConnection));\n+            ArgUtil.NotNull(systemConnection.Url, nameof(systemConnection.Url));\n+\n+            Uri projectUrl = systemConnection.Url;\n+            VssCredentials projectCredential = ApiUtil.GetVssCredential(systemConnection);\n+\n+            Guid projectId = context.Variables.System_TeamProjectId ?? Guid.Empty;\n+            ArgUtil.NotEmpty(projectId, nameof(projectId));\n+\n+            int? buildId = context.Variables.Build_BuildId;\n+            ArgUtil.NotNull(buildId, nameof(buildId));\n+\n+            string artifactName;\n+            if (!eventProperties.TryGetValue(ArtifactAssociateEventProperties.ArtifactName, out artifactName))\n+            {\n+                throw new Exception(StringUtil.Loc(\"ArtifactNameRequired\"));\n+            }\n+\n+            string artifactLocation = data;\n+            if (string.IsNullOrEmpty(artifactLocation))\n+            {\n+                throw new Exception(StringUtil.Loc(\"ArtifactLocationRequired\"));\n+            }\n+\n+            string artifactType;\n+            if (!eventProperties.TryGetValue(ArtifactAssociateEventProperties.ArtifactType, out artifactType))\n+            {\n+                artifactType = InferArtifactResourceType(context, artifactLocation);\n+            }\n+\n+            if (string.IsNullOrEmpty(artifactType))\n+            {\n+                throw new Exception(StringUtil.Loc(\"ArtifactTypeRequired\"));\n+            }\n+\n+            var propertyDictionary = ExtractArtifactProperties(eventProperties);\n+\n+            string artifactData = \"\";\n+            if (IsContainerPath(artifactLocation) ||\n+                IsValidServerPath(artifactLocation))\n+            {\n+                //if artifactlocation is a file container path or a tfvc server path\n+                artifactData = artifactLocation;\n+            }\n+            else if (IsUncSharePath(context, artifactLocation))\n+            {\n+                //if artifactlocation is a UNC share path\n+                artifactData = new Uri(artifactLocation).LocalPath;\n+            }\n+            else\n+            {\n+                throw new Exception(StringUtil.Loc(\"ArtifactLocationNotSupport\", artifactLocation));\n+            }\n+\n+            // queue async command task to associate artifact.\n+            context.Debug($\"Associate artifact: {artifactName} with build: {buildId.Value} at backend.\");\n+            var commandContext = HostContext.CreateService<IAsyncCommandContext>();\n+            commandContext.InitializeCommandContext(context, StringUtil.Loc(\"AssociateArtifact\"));\n+            commandContext.Task = AssociateArtifactAsync(commandContext,\n+                                                         projectUrl,\n+                                                         projectCredential,\n+                                                         projectId,\n+                                                         buildId.Value,\n+                                                         artifactName,\n+                                                         artifactType,\n+                                                         artifactData,\n+                                                         propertyDictionary,\n+                                                         context.CancellationToken);\n+            context.AsyncCommands.Add(commandContext);\n+        }\n+\n+        private void ProcessArtifactUploadCommand(IExecutionContext context, Dictionary<string, string> eventProperties, string data)\n+        {\n+            ArgUtil.NotNull(context, nameof(context));\n+            ArgUtil.NotNull(context.Endpoints, nameof(context.Endpoints));\n+\n+            ServiceEndpoint systemConnection = context.Endpoints.FirstOrDefault(e => string.Equals(e.Name, ServiceEndpoints.SystemVssConnection, StringComparison.OrdinalIgnoreCase));\n+            ArgUtil.NotNull(systemConnection, nameof(systemConnection));\n+            ArgUtil.NotNull(systemConnection.Url, nameof(systemConnection.Url));\n+\n+            Uri projectUrl = systemConnection.Url;\n+            VssCredentials projectCredential = ApiUtil.GetVssCredential(systemConnection);\n+\n+            Guid projectId = context.Variables.System_TeamProjectId ?? Guid.Empty;\n+            ArgUtil.NotEmpty(projectId, nameof(projectId));\n+\n+            int? buildId = context.Variables.Build_BuildId;\n+            ArgUtil.NotNull(buildId, nameof(buildId));\n+\n+            long? containerId = context.Variables.Build_ContainerId;\n+            ArgUtil.NotNull(containerId, nameof(containerId));\n+\n+            string artifactName;\n+            if (!eventProperties.TryGetValue(ArtifactAssociateEventProperties.ArtifactName, out artifactName))\n+            {\n+                throw new Exception(StringUtil.Loc(\"ArtifactNameRequired\"));\n+            }\n+\n+            string containerFolder;\n+            if (!eventProperties.TryGetValue(ArtifactUploadEventProperties.ContainerFolder, out containerFolder))\n+            {\n+                containerFolder = artifactName;\n+            }\n+\n+            var propertyDictionary = ExtractArtifactProperties(eventProperties);\n+\n+            string localPath = data;\n+            if (string.IsNullOrEmpty(localPath))\n+            {\n+                throw new Exception(StringUtil.Loc(\"ArtifactLocationRequired\"));\n+            }\n+\n+            string fullPath = Path.GetFullPath(localPath);\n+            if (!File.Exists(fullPath) && !Directory.Exists(fullPath))\n+            {\n+                // if localPath is not a file or folder on disk\n+                throw new FileNotFoundException(StringUtil.Loc(\"PathNotExist\", localPath));\n+            }\n+            else if (Directory.Exists(fullPath) && Directory.GetFiles(fullPath, \"*\", SearchOption.AllDirectories).Length == 0)\n+            {\n+                // if localPath is a folder but the folder contains nothing\n+                context.Warning(StringUtil.Loc(\"DirectoryIsEmpty\", fullPath));","path":"src/Agent.Worker/Build/ArtifactCommands.cs","position":177,"original_position":177,"commit_id":"52b804af07d23da253a47b667b4e7ded41678fe6","original_commit_id":"52b804af07d23da253a47b667b4e7ded41678fe6","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":"I agree a better message will be great.\r\nwhat about this: \"Directory: {0} is empty, nothing will be added to build artifact {1}.\"?\r\nsince this is a warning, it will show in build summary page, this might help customer figure out what happened to their artifact at the first time.","created_at":"2016-03-27T15:29:06Z","updated_at":"2016-03-27T15:29:06Z","html_url":"https://github.com/Microsoft/vsts-agent/pull/34#discussion_r57530236","pull_request_url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/34","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/comments/57530236"},"html":{"href":"https://github.com/Microsoft/vsts-agent/pull/34#discussion_r57530236"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/34"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/34","id":64082826,"html_url":"https://github.com/Microsoft/vsts-agent/pull/34","diff_url":"https://github.com/Microsoft/vsts-agent/pull/34.diff","patch_url":"https://github.com/Microsoft/vsts-agent/pull/34.patch","issue_url":"https://api.github.com/repos/Microsoft/vsts-agent/issues/34","number":34,"state":"open","locked":false,"title":"Associate/Upload artifact","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":"","created_at":"2016-03-24T19:02:39Z","updated_at":"2016-03-27T15:29:06Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3bb0fa5c8973a4794747777a8864850d530d9d4a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/34/commits","review_comments_url":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/34/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/34/comments","statuses_url":"https://api.github.com/repos/Microsoft/vsts-agent/statuses/52b804af07d23da253a47b667b4e7ded41678fe6","head":{"label":"Microsoft:users/tihuang/artifact","ref":"users/tihuang/artifact","sha":"52b804af07d23da253a47b667b4e7ded41678fe6","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":"2016-03-24T18:22:59Z","pushed_at":"2016-03-27T02:54:54Z","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":543,"stargazers_count":18,"watchers_count":18,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":18,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"b360d1d083605ee33d4e3a13f17cf68176f48615","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":"2016-03-24T18:22:59Z","pushed_at":"2016-03-27T02:54:54Z","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":543,"stargazers_count":18,"watchers_count":18,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":18,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/34"},"html":{"href":"https://github.com/Microsoft/vsts-agent/pull/34"},"issue":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/issues/34"},"comments":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/issues/34/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/pulls/34/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/34/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/vsts-agent/statuses/52b804af07d23da253a47b667b4e7ded41678fe6"}}}}