fix(sync): Add --head flag to gh pr create for detached branches#230
fix(sync): Add --head flag to gh pr create for detached branches#230
Conversation
When pushing to consumer repos with a token-embedded URL, the local branch doesn't have upstream tracking configured. This causes `gh pr create` to fail with: aborted: you must first push the current branch to a remote, or use the --head flag Fix by explicitly specifying --head "$branch" in the gh pr create command.
There was a problem hiding this comment.
Pull request overview
This PR fixes a bug where gh pr create fails with "you must first push the current branch to a remote, or use the --head flag" when branches are pushed without upstream tracking configuration. The fix adds the --head "$branch" flag to explicitly specify the branch name.
Key changes:
- Added
--head "$branch"flag to thegh pr createcommand to handle branches without upstream tracking
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Automated Status SummaryHead SHA: e9b75a7
Coverage Overview
Coverage Trend
Updated automatically; will refresh on subsequent CI/Docker completions. Keepalive checklistScopeNo scope information available Tasks
Acceptance criteria
|
🤖 Keepalive Loop StatusPR #230 | Agent: Codex | Iteration 0/5 Current State
🔍 Failure Classification| Error type | infrastructure | |
* Update langchain-post-code-rollout: mark completed items, add test suite issues - Mark GitHub Models 401 authentication as resolved - Mark conflict resolution as fully deployed - Add links to test suite issues #227-#230 in Manager-Database - Update Implementation Priority table with current status - Update What's Next section with completed items struck through * Update docs/plans/langchain-post-code-rollout.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> * Update docs/plans/langchain-post-code-rollout.md Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Automated Status Summary
Scope
Tasks
Acceptance criteria
Head SHA: 2c4ab49
Latest Runs: ⏳ queued — Gate
Required: gate: ⏳ queued