From a42b22546a263cacee783edb605f3b45243d6f6f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 2 Apr 2026 06:37:25 +0000 Subject: [PATCH 1/2] fix: correct JSDoc type annotation for coreObj parameter in parse_mcp_gateway_log.cjs The type annotation was using `{typeof core}` which caused TypeScript error TS2502 (self-referential type annotation). Fixed to use `{typeof import('@actions/core')}` to match the pattern used in other files in the codebase. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- actions/setup/js/parse_mcp_gateway_log.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/setup/js/parse_mcp_gateway_log.cjs b/actions/setup/js/parse_mcp_gateway_log.cjs index 1fa186f82df..3e709abc92c 100644 --- a/actions/setup/js/parse_mcp_gateway_log.cjs +++ b/actions/setup/js/parse_mcp_gateway_log.cjs @@ -139,7 +139,7 @@ function generateTokenUsageSummary(summary) { * Appends the token usage section to the step summary if data is present, then writes it. * This is the final call in each main() exit path — it consolidates the summary write * so callers don't need to chain addRaw() + write() themselves. - * @param {typeof core} coreObj - The GitHub Actions core object + * @param {typeof import('@actions/core')} coreObj - The GitHub Actions core object */ function writeStepSummaryWithTokenUsage(coreObj) { if (!fs.existsSync(TOKEN_USAGE_PATH)) { From a35285052d744b6100419861c20120d8157ae1c3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 2 Apr 2026 10:14:02 +0000 Subject: [PATCH 2/2] fix: add missing debug mock to parse_mcp_gateway_log test Agent-Logs-Url: https://github.com/github/gh-aw/sessions/0d495997-5624-4cd7-88dc-8842493f5f33 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- actions/setup/js/parse_mcp_gateway_log.test.cjs | 1 + 1 file changed, 1 insertion(+) diff --git a/actions/setup/js/parse_mcp_gateway_log.test.cjs b/actions/setup/js/parse_mcp_gateway_log.test.cjs index c75359d15ba..013e3e4fd10 100644 --- a/actions/setup/js/parse_mcp_gateway_log.test.cjs +++ b/actions/setup/js/parse_mcp_gateway_log.test.cjs @@ -279,6 +279,7 @@ Some content here.`; // Mock core and fs for the test const mockCore = { info: vi.fn(), + debug: vi.fn(), startGroup: vi.fn(), endGroup: vi.fn(), notice: vi.fn(),