Repository navigation
[github] Code radiator: file an issue if PR creation fails - #25814
Merged
rolfbjarne merged 2 commits intoJun 25, 2026
Merged
Conversation
Add fallback logic so that when the create_pull_request safeoutput tool fails, the workflow files a GitHub issue to track the failure instead of silently dropping it. This ensures merge failures are visible and can be resolved manually. Changes: - Add create-issue safe-output (max: 10) - Add fallback section (step 2f) describing issue creation on failure - Update summary to report PR creation failures with issue links Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Code Radiator agentic workflow to ensure PR creation failures are visible by adding a fallback path that files a GitHub issue when create_pull_request fails, and surfaces these failures in the end-of-run summary.
Changes:
- Add
create-issueto the workflow’s safe-outputs tool allowlist. - Document a fallback step to create an issue when PR creation fails (and continue processing other branches).
- Update the summary requirements to include PR-creation failures with links to the filed issues.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
.github/workflows/code-radiator.md |
Adds create-issue safe-output configuration and documents issue-filing fallback + summary reporting for PR-creation failures. |
.github/workflows/code-radiator.lock.yml |
Regenerated compiled workflow to include create_issue safe-output tooling/schema and outputs for created issue URL/number. |
Comment on lines
210
to
+214
| After creating the PR, enable automerge (merge strategy) using the GitHub MCP `enable_auto_merge` tool or `gh pr merge --auto --merge`. | ||
|
|
||
| #### f. Fallback: file an issue if PR creation fails | ||
|
|
||
| If the `create_pull_request` safeoutput tool fails (e.g., due to permission errors, branch |
Comment on lines
+218
to
+220
| Use the `create_issue` safeoutput tool with: | ||
| - `title`: `🤖 Code radiator: failed to create merge PR for '<target>'` | ||
| - `body`: Include: |
| - The source branch (`main`). | ||
| - The local branch name that was prepared. | ||
| - The error message from the failed PR creation attempt. | ||
| - A note that this issue was automatically filed by the code-radiator workflow. |
rolfbjarne
enabled auto-merge (squash)
June 25, 2026 09:28
dalexsoto
previously approved these changes
Jun 25, 2026
…ode-radiator-issue-fallback
dalexsoto
approved these changes
Jun 25, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add fallback logic so that when the create_pull_request safeoutput
tool fails, the workflow files a GitHub issue to track the failure
instead of silently dropping it. This ensures merge failures are
visible and can be resolved manually.
Changes: