diff --git a/actions/setup/js/handle_agent_failure.cjs b/actions/setup/js/handle_agent_failure.cjs
index c050f709d04..08a7173cb1a 100644
--- a/actions/setup/js/handle_agent_failure.cjs
+++ b/actions/setup/js/handle_agent_failure.cjs
@@ -369,8 +369,9 @@ function buildCodePushFailureContext(codePushFailureErrors, pullRequest = null,
yamlSnippet += ` ${yamlKey}:\n protected-files: fallback-to-issue\n`;
}
yamlSnippet += "```\n";
- context += "\nTo review and apply these changes manually, configure `protected-files: fallback-to-issue` — the agent will create a review issue with instructions instead of blocking:\n";
+ context += "\n\n⚙️ Configure protected-files: fallback-to-issue
\n\n";
context += yamlSnippet;
+ context += " \n";
}
// Patch size exceeded section
diff --git a/actions/setup/md/manifest_protection_push_failed_fallback.md b/actions/setup/md/manifest_protection_push_failed_fallback.md
index c58ec133890..b38890d13f7 100644
--- a/actions/setup/md/manifest_protection_push_failed_fallback.md
+++ b/actions/setup/md/manifest_protection_push_failed_fallback.md
@@ -9,7 +9,8 @@
>
> The push was rejected because GitHub Actions does not have `workflows` permission to push these changes, and is never allowed to make such changes, or other authorization being used does not have this permission. A human must create the pull request manually.
-To create a pull request with the changes:
+
+📋 Create the pull request manually
```sh
# Download the patch from the workflow run
@@ -26,4 +27,6 @@ git push origin {branch_name}
gh pr create --title '{title}' --base {base_branch} --head {branch_name} --repo {repo}
```
+
+
{footer}
diff --git a/actions/setup/md/manifest_protection_push_to_pr_fallback.md b/actions/setup/md/manifest_protection_push_to_pr_fallback.md
index 7c1292b19be..567ad7ef57e 100644
--- a/actions/setup/md/manifest_protection_push_to_pr_fallback.md
+++ b/actions/setup/md/manifest_protection_push_to_pr_fallback.md
@@ -9,12 +9,13 @@
---
+
+📋 Apply the patch after review
+
The patch is available in the workflow run artifacts:
**Workflow Run:** [View run details and download patch artifact]({run_url})
-To apply the patch after review:
-
```sh
# Download the artifact from the workflow run
gh run download {run_id} -n agent -D /tmp/agent-{run_id}
@@ -26,4 +27,6 @@ git am --3way /tmp/agent-{run_id}/{patch_file_name}
git push origin {branch_name}
```
+
+
To route changes like this to a review issue instead of blocking, configure `protected-files: fallback-to-issue` in your workflow configuration.