Skip to content

[github] Code radiator: file an issue if PR creation fails - #25814

Merged
rolfbjarne merged 2 commits into
mainfrom
dev/rolf/rolfbjarne-code-radiator-issue-fallback
Jun 25, 2026
Merged

rolfbjarne merged 2 commits into
mainfrom
dev/rolf/rolfbjarne-code-radiator-issue-fallback

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

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

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>
Copilot AI review requested due to automatic review settings June 25, 2026 07:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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-issue to 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
rolfbjarne enabled auto-merge (squash) June 25, 2026 09:28
dalexsoto
dalexsoto previously approved these changes Jun 25, 2026
@rolfbjarne
rolfbjarne merged commit a0cb586 into main Jun 25, 2026
12 checks passed
@rolfbjarne
rolfbjarne deleted the dev/rolf/rolfbjarne-code-radiator-issue-fallback branch June 25, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants