From fa27facd59e75d643b5c2c089f1507cad36e168f Mon Sep 17 00:00:00 2001 From: Phil McCloghry-Laing Date: Fri, 21 Aug 2020 09:36:10 +1000 Subject: [PATCH] Set status of thread to "Active" instead of default "Unknown" --- Src/task.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/task.ts b/Src/task.ts index 4ba138e..f3c56a6 100644 --- a/Src/task.ts +++ b/Src/task.ts @@ -36,12 +36,13 @@ export class CreatePRCommentTask { let client = await this.factory.create(pat); let commentObject = { - content : comment + content : comment }; let thread : GitInterfaces.GitPullRequestCommentThread = { comments: [ commentObject - ] + ], + status: GitInterfaces.CommentThreadStatus.Active } let repositoryId = tl.getVariable('Build.Repository.ID'); let pullRequestIdString = tl.getVariable('System.PullRequest.PullRequestId');