Repository navigation
Fix Code Radiator: prevent upstream unsetting that breaks safeoutputs PR creation - #25563
Merged
Merged
Conversation
β¦tream unsetting
The previous run failed because the agent unset the upstream tracking branch
"as recommended", which caused safeoutputs create_pull_request to report
"No changes to commit - no commits found" even though commits existed.
Root cause: safeoutputs uses @{upstream}..HEAD to detect commits to push.
When the upstream is unset, this comparison fails and the tool finds no commits.
Fix:
- Remove the manual `git push` instruction (agent job has contents:read only)
- Add explicit note to NOT unset upstream tracking branch
- Add note to always provide base branch when calling create_pull_request
- Update Important Notes to clarify correct safeoutputs usage pattern
Co-authored-by: rolfbjarne <249268+rolfbjarne@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Code Radiator workflow failure
Fix Code Radiator: prevent upstream unsetting that breaks safeoutputs PR creation
May 28, 2026
rolfbjarne
approved these changes
May 28, 2026
rolfbjarne
marked this pull request as ready for review
May 28, 2026 10:57
rolfbjarne
enabled auto-merge (squash)
May 28, 2026 10:58
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the Code Radiator agentic workflow instructions to route branch pushing and PR creation through safeoutputs, preserving upstream tracking so create_pull_request can detect commits correctly.
Changes:
- Replaces manual
git pushguidance with safeoutputscreate_pull_requestinstructions. - Adds explicit guidance to keep upstream tracking and always provide
base. - Regenerates the compiled workflow lock file and updates the gh-aw setup action lock.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
.github/workflows/code-radiator.md |
Updates the workflow prompt for safeoutputs-based PR creation and upstream handling. |
.github/workflows/code-radiator.lock.yml |
Regenerated compiled workflow reflecting the prompt and gh-aw version updates. |
.github/aw/actions-lock.json |
Updates the pinned github/gh-aw-actions/setup version and SHA. |
| - Base: the target branch | ||
| - Head: the local branch | ||
| - Enable automerge (merge strategy) on the new PR. | ||
| After creating the PR, enable automerge (merge strategy) using the GitHub MCP `enable_auto_merge` tool or `gh pr merge --auto --merge`. |
dalexsoto
approved these changes
May 28, 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.
The Code Radiator workflow consistently failed with
"No changes to commit - no commits found"fromsafeoutputs create_pull_requestdespite the agent having verified commits viagit log origin/base..HEAD.Root Cause
The safeoutputs
create_pull_requesttool detects pushable commits using@{upstream}..HEAD. The agent was unsetting the upstream tracking branch after creating the merge branch (to avoid accidentally pushing to the target branch via plaingit push), which caused the tool to find no commits. The manualgit push origin "<local-branch>"instruction was also broken β the agent job only hascontents: readpermission.Changes (
code-radiator.md)git pushinstruction β the agent cannot push (read-only token); safeoutputs handles all pushingdo NOT unset upstreamwarning β explains that@{upstream}is how the tool detects commits; unsetting it silently breaks PR creationbaseparameter when callingsafeoutputs create_pull_requestas a backup reference for commit detectionghCLI for PR operations" with clear guidance to use safeoutputs for push/create andgh/MCP tools only for non-push operations