From 807e161c64049e564928b69f77a64bd718e5d2c3 Mon Sep 17 00:00:00 2001
From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com>
Date: Tue, 25 Aug 2026 05:32:59 +0000
Subject: [PATCH] Collapse manual PR recovery instructions into details
sections
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
---
actions/setup/js/create_pull_request.cjs | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/actions/setup/js/create_pull_request.cjs b/actions/setup/js/create_pull_request.cjs
index f001e555f75..f2a47731604 100644
--- a/actions/setup/js/create_pull_request.cjs
+++ b/actions/setup/js/create_pull_request.cjs
@@ -1915,7 +1915,8 @@ ${pushErrorSection}
>
> The bundle file is available in the \`agent\` artifact in the workflow run linked above.
-To create a pull request with the changes:
+
+Create the pull request manually
\`\`\`sh
${recoveryInstructions}
@@ -1925,7 +1926,9 @@ git push ${shellQuote(pushRemoteUrl || "origin")} ${shellQuote(branchName)}
# Create the pull request
gh pr create --title ${shellQuote(title)} --base ${shellQuote(baseBranch)} --head ${shellQuote(getPullRequestHeadRef(branchName))} --repo ${shellQuote(`${repoParts.owner}/${repoParts.repo}`)}
-\`\`\``;
+\`\`\`
+
+ `;
try {
const { data: issue, issueRepoParts } = await createFallbackIssue(githubClient, repoParts, title, fallbackBody, mergeFallbackIssueLabels(effectiveFallbackLabels), configAssignees);
@@ -2281,7 +2284,8 @@ ${pushErrorSection}
>
> The patch file is available in the \`agent\` artifact in the workflow run linked above.
-To create a pull request with the changes:
+
+Create the pull request manually
\`\`\`sh
${recoveryInstructions}
@@ -2292,6 +2296,8 @@ git push ${shellQuote(pushRemoteUrl || "origin")} ${shellQuote(branchName)}
# Create the pull request
gh pr create --title ${shellQuote(title)} --base ${shellQuote(baseBranch)} --head ${shellQuote(getPullRequestHeadRef(branchName))} --repo ${shellQuote(`${repoParts.owner}/${repoParts.repo}`)}
\`\`\`
+
+
${patchPreview}`;
try {