From 1f08d956796c76ba8db9e734e9482e97a508ad89 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 19:52:51 +0000 Subject: [PATCH 1/2] Initial plan From c3bcd742c6c3cc17f38479a7f9fea215e9db4a57 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 20:05:52 +0000 Subject: [PATCH 2/2] fix: Update close_older_issues test assertions for enhanced logging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The close_older_issues.cjs implementation was updated to use more detailed and formatted log messages. This commit updates the test assertions to match the new message formats: - Warning message now includes ⚠️ emoji prefix - Info message now includes ✓ emoji and "operation complete" suffix Fixes #11053 fallout - resolves 2 JavaScript test failures in close_older_issues.test.cjs that were blocking CI. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- actions/setup/js/close_older_issues.test.cjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/actions/setup/js/close_older_issues.test.cjs b/actions/setup/js/close_older_issues.test.cjs index d3e211b4de..f45dd877b7 100644 --- a/actions/setup/js/close_older_issues.test.cjs +++ b/actions/setup/js/close_older_issues.test.cjs @@ -276,7 +276,7 @@ describe("close_older_issues", () => { const results = await closeOlderIssues(mockGithub, "owner", "repo", "", [], newIssue, "Test Workflow", "https://github.com/owner/repo/actions/runs/123"); expect(results).toHaveLength(MAX_CLOSE_COUNT); - expect(global.core.warning).toHaveBeenCalledWith(`Found 15 older issues, but only closing the first ${MAX_CLOSE_COUNT}`); + expect(global.core.warning).toHaveBeenCalledWith(`⚠️ Found 15 older issues, but only closing the first ${MAX_CLOSE_COUNT}`); }); it("should continue on error for individual issues", async () => { @@ -328,7 +328,7 @@ describe("close_older_issues", () => { const results = await closeOlderIssues(mockGithub, "owner", "repo", "Prefix", [], newIssue, "Test Workflow", "https://github.com/owner/repo/actions/runs/123"); expect(results).toHaveLength(0); - expect(global.core.info).toHaveBeenCalledWith("No older issues found to close"); + expect(global.core.info).toHaveBeenCalledWith("✓ No older issues found to close - operation complete"); }); }); });