From 77bb09055bfdd59b4213fde6d0dc399cff603f26 Mon Sep 17 00:00:00 2001 From: Jake Bailey <5341706+jakebailey@users.noreply.github.com> Date: Fri, 8 Mar 2024 10:57:32 -0800 Subject: [PATCH] Fix typo in artifact script (#57698) --- scripts/post-vsts-artifact-comment.mjs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/post-vsts-artifact-comment.mjs b/scripts/post-vsts-artifact-comment.mjs index 4185efd80ee..31ddd3f6ed4 100644 --- a/scripts/post-vsts-artifact-comment.mjs +++ b/scripts/post-vsts-artifact-comment.mjs @@ -18,6 +18,7 @@ const REQUESTING_USER = mustGetEnv("REQUESTING_USER"); const SOURCE_ISSUE = +mustGetEnv("SOURCE_ISSUE"); const BUILD_BUILDID = +mustGetEnv("BUILD_BUILDID"); const DISTINCT_ID = mustGetEnv("DISTINCT_ID"); +const STATUS_COMMENT = +mustGetEnv("STATUS_COMMENT"); const gh = new Octokit({ auth: process.argv[2], @@ -83,7 +84,7 @@ let posted = false; for (let i = 0; i < 5; i++) { // Get status comment contents const statusComment = await gh.rest.issues.getComment({ - comment_id: SOURCE_ISSUE, + comment_id: STATUS_COMMENT, owner: "microsoft", repo: "TypeScript", }); @@ -98,7 +99,7 @@ for (let i = 0; i < 5; i++) { // Update status comment await gh.rest.issues.updateComment({ - comment_id: SOURCE_ISSUE, + comment_id: STATUS_COMMENT, owner: "microsoft", repo: "TypeScript", body: newComment,