From fdf431d0e0ea2ba6e8a13a24669cc4bff7bb14c4 Mon Sep 17 00:00:00 2001 From: Isabel Duan Date: Mon, 6 Apr 2026 15:42:35 -0700 Subject: [PATCH] allow bot to call perf test --- GithubCommentReader/index.js | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/GithubCommentReader/index.js b/GithubCommentReader/index.js index f388181..a422a5e 100644 --- a/GithubCommentReader/index.js +++ b/GithubCommentReader/index.js @@ -255,7 +255,11 @@ const commands = (/** @type {Map} */ (new Map())) .set(/(?:new )?perf test(?: this)?(?: (.+)?)?/, createCommand((request) => { return createPipelineRun({ definitionId: 69, - repositories: { + repositories: request.tsgo ? { + "typescript-go": { + refName: `refs/pull/${request.issueNumber}/merge`, + } + } : { TypeScript: { refName: `refs/pull/${request.issueNumber}/merge`, } @@ -263,9 +267,14 @@ const commands = (/** @type {Map} */ (new Map())) info: request, inputs: { tsperf_preset: request.match[1] || "regular", + ts_go: request.tsgo ? "true" : "false", } }) - })) + }, + /* authorAssociations */ undefined, + /* prOnly */ undefined, + /* tsgoAllowed */ true, + )) .set(/run dt/, createCommand(async (request) => { return queueBuild({ definitionId: 23,