From 67e2285cbe0ae1de1f1b02d5601d1c8e9f8d1255 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 17:23:06 +0000 Subject: [PATCH 1/2] Initial plan From fd85d50c3059d7fe58e17c5c8b68f5c620dca68c Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Feb 2026 17:30:05 +0000 Subject: [PATCH 2/2] Fix TypeScript null check error in create_issue.cjs line 488 Wrap temporaryId with String() before passing to normalizeTemporaryId(). TypeScript's strict null checking was complaining that temporaryId could be null even though we checked for error earlier. The String() wrapper satisfies TypeScript's type system while maintaining the same runtime behavior (normalizeTemporaryId already does String() conversion internally). Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- actions/setup/js/create_issue.cjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/actions/setup/js/create_issue.cjs b/actions/setup/js/create_issue.cjs index eb5925f442c..4c49a49b0f2 100644 --- a/actions/setup/js/create_issue.cjs +++ b/actions/setup/js/create_issue.cjs @@ -485,7 +485,9 @@ async function main(config = {}) { createdIssues.push({ ...issue, _repo: qualifiedItemRepo }); // Store the mapping of temporary_id -> {repo, number} - temporaryIdMap.set(normalizeTemporaryId(temporaryId), { repo: qualifiedItemRepo, number: issue.number }); + // temporaryId is guaranteed to be non-null because we checked tempIdResult.error above + const normalizedTempId = normalizeTemporaryId(String(temporaryId)); + temporaryIdMap.set(normalizedTempId, { repo: qualifiedItemRepo, number: issue.number }); core.info(`Stored temporary ID mapping: ${temporaryId} -> ${qualifiedItemRepo}#${issue.number}`); // Track issue for copilot assignment if needed