Fix typo in artifact script (#57698)

This commit is contained in:
Jake Bailey 2024-03-08 10:57:32 -08:00 committed by GitHub
parent 016b4aff11
commit 77bb09055b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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,