From fc72d3771d7dd5fb4bfb966d33e6b54122dc2497 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 16:20:14 +0000 Subject: [PATCH 1/3] Initial plan From a2bcbc3d72ead6f7d533adb4f86a83bb5203241f Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 16:28:50 +0000 Subject: [PATCH 2/3] Update parent issue template for agentic-workflows failures - Changed parent issue title from "[agentics] Agentic Workflow Issues" to "[agentics] agentic-workflows failures" - Removed "# Agentic Workflow Failures" title from issue body content - Updated tests to match the new title - All handle_agent_failure tests passing Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- actions/setup/js/handle_agent_failure.cjs | 6 ++---- actions/setup/js/handle_agent_failure.test.cjs | 6 +++--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/actions/setup/js/handle_agent_failure.cjs b/actions/setup/js/handle_agent_failure.cjs index 9ace7123a6..15d78d094c 100644 --- a/actions/setup/js/handle_agent_failure.cjs +++ b/actions/setup/js/handle_agent_failure.cjs @@ -53,7 +53,7 @@ async function findPullRequestForCurrentBranch() { */ async function ensureParentIssue(previousParentNumber = null) { const { owner, repo } = context.repo; - const parentTitle = "[agentics] Agentic Workflow Issues"; + const parentTitle = "[agentics] agentic-workflows failures"; const parentLabel = "agentic-workflows"; core.info(`Searching for parent issue: "${parentTitle}"`); @@ -99,9 +99,7 @@ async function ensureParentIssue(previousParentNumber = null) { const creationReason = previousParentNumber ? `creating new parent (previous #${previousParentNumber} reached limit)` : "creating first parent"; core.info(`No suitable parent issue found, ${creationReason}`); - let parentBodyContent = `# Agentic Workflow Failures - -This issue tracks all failures from agentic workflows in this repository. Each failed workflow run creates a sub-issue linked here for organization and easy filtering.`; + let parentBodyContent = `This issue tracks all failures from agentic workflows in this repository. Each failed workflow run creates a sub-issue linked here for organization and easy filtering.`; // Add reference to previous parent if this is a continuation if (previousParentNumber) { diff --git a/actions/setup/js/handle_agent_failure.test.cjs b/actions/setup/js/handle_agent_failure.test.cjs index 41f08bce55..13a394dee7 100644 --- a/actions/setup/js/handle_agent_failure.test.cjs +++ b/actions/setup/js/handle_agent_failure.test.cjs @@ -151,7 +151,7 @@ When prompted, instruct the agent to debug this workflow failure.`; // Verify parent issue was searched for expect(mockGithub.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ - q: expect.stringContaining('repo:test-owner/test-repo is:issue is:open label:agentic-workflows in:title "[agentics] Agentic Workflow Issues"'), + q: expect.stringContaining('repo:test-owner/test-repo is:issue is:open label:agentic-workflows in:title "[agentics] agentic-workflows failures"'), per_page: 1, }); @@ -159,7 +159,7 @@ When prompted, instruct the agent to debug this workflow failure.`; expect(mockGithub.rest.issues.create).toHaveBeenCalledWith({ owner: "test-owner", repo: "test-repo", - title: "[agentics] Agentic Workflow Issues", + title: "[agentics] agentic-workflows failures", body: expect.stringContaining("This issue tracks all failures from agentic workflows"), labels: ["agentic-workflows"], }); @@ -914,7 +914,7 @@ When prompted, instruct the agent to debug this workflow failure.`; // Verify new parent issue was created with reference to old parent const newParentCall = mockGithub.rest.issues.create.mock.calls[0][0]; - expect(newParentCall.title).toBe("[agentics] Agentic Workflow Issues"); + expect(newParentCall.title).toBe("[agentics] agentic-workflows failures"); expect(newParentCall.labels).toEqual(["agentic-workflows"]); expect(newParentCall.body).toContain("continuation parent issue"); expect(newParentCall.body).toContain("previous parent issue #1"); From 24e0d7b8f74c0ff7e0e22454139b18cf337f87a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 21 Jan 2026 17:48:00 +0000 Subject: [PATCH 3/3] Update parent issue title to "[agentic-workflows] Failed runs" - Changed prefix from "[agentics]" to "[agentic-workflows]" - Changed suffix from "agentic-workflows failures" to "Failed runs" - Updated all tests to match the new title - All 20 handle_agent_failure tests passing Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com> --- actions/setup/js/handle_agent_failure.cjs | 2 +- actions/setup/js/handle_agent_failure.test.cjs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/setup/js/handle_agent_failure.cjs b/actions/setup/js/handle_agent_failure.cjs index 15d78d094c..99fa7a3222 100644 --- a/actions/setup/js/handle_agent_failure.cjs +++ b/actions/setup/js/handle_agent_failure.cjs @@ -53,7 +53,7 @@ async function findPullRequestForCurrentBranch() { */ async function ensureParentIssue(previousParentNumber = null) { const { owner, repo } = context.repo; - const parentTitle = "[agentics] agentic-workflows failures"; + const parentTitle = "[agentic-workflows] Failed runs"; const parentLabel = "agentic-workflows"; core.info(`Searching for parent issue: "${parentTitle}"`); diff --git a/actions/setup/js/handle_agent_failure.test.cjs b/actions/setup/js/handle_agent_failure.test.cjs index 13a394dee7..62e4b595f8 100644 --- a/actions/setup/js/handle_agent_failure.test.cjs +++ b/actions/setup/js/handle_agent_failure.test.cjs @@ -151,7 +151,7 @@ When prompted, instruct the agent to debug this workflow failure.`; // Verify parent issue was searched for expect(mockGithub.rest.search.issuesAndPullRequests).toHaveBeenCalledWith({ - q: expect.stringContaining('repo:test-owner/test-repo is:issue is:open label:agentic-workflows in:title "[agentics] agentic-workflows failures"'), + q: expect.stringContaining('repo:test-owner/test-repo is:issue is:open label:agentic-workflows in:title "[agentic-workflows] Failed runs"'), per_page: 1, }); @@ -159,7 +159,7 @@ When prompted, instruct the agent to debug this workflow failure.`; expect(mockGithub.rest.issues.create).toHaveBeenCalledWith({ owner: "test-owner", repo: "test-repo", - title: "[agentics] agentic-workflows failures", + title: "[agentic-workflows] Failed runs", body: expect.stringContaining("This issue tracks all failures from agentic workflows"), labels: ["agentic-workflows"], }); @@ -914,7 +914,7 @@ When prompted, instruct the agent to debug this workflow failure.`; // Verify new parent issue was created with reference to old parent const newParentCall = mockGithub.rest.issues.create.mock.calls[0][0]; - expect(newParentCall.title).toBe("[agentics] agentic-workflows failures"); + expect(newParentCall.title).toBe("[agentic-workflows] Failed runs"); expect(newParentCall.labels).toEqual(["agentic-workflows"]); expect(newParentCall.body).toContain("continuation parent issue"); expect(newParentCall.body).toContain("previous parent issue #1");