chore(ci): fix agent-fix issue targeting and PR token usage#2200
Merged
naqvitalha merged 2 commits intomainfrom Mar 23, 2026
Merged
chore(ci): fix agent-fix issue targeting and PR token usage#2200naqvitalha merged 2 commits intomainfrom
naqvitalha merged 2 commits intomainfrom
Conversation
Add token verification step and fallback to prevent PRs being created with the wrong token (default GITHUB_TOKEN shows as app/github-actions and can't be merged). Adds post-creation author check.
This was referenced Mar 23, 2026
f684057 to
295287e
Compare
gantonious
approved these changes
Mar 23, 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.
Description
Fixes two issues found in Agent Fix run #23455139708 ($12.70, 136 turns, 60 min):
1. Agent fixed the wrong issue — Was assigned #1914 but fixed #2175 instead. The prompt said "Fix this GitHub issue" without specifying which one. Now passes
#${{ github.event.issue.number }}and title explicitly, matching how agent-triage already works.2. Agent created PR with wrong token — PR #2196 was created as
app/github-actions(unmergeable) because the agent used baregh pr createinstead ofGH_TOKEN="$AGENT_PR_TOKEN". Adds pre-flight token verification, fallback toSHOPIFY_GH_ACCESS_TOKEN, and post-creation author check to the raise-pr skill.Reviewers' hat-rack 🎩
agent-fix.yml: compare the prompt with agent-triage.yml which already passes issue context correctlyraise-pr/SKILL.md: check the new blockquote verification steps are clear enough to prevent the agent from skipping themTest plan
app/github-actions)