Skip to content

fix(sync): Add --head flag to gh pr create for detached branches#230

Merged
stranske merged 1 commit intomainfrom
fix/sync-workflow-pr-create
Dec 28, 2025
Merged

fix(sync): Add --head flag to gh pr create for detached branches#230
stranske merged 1 commit intomainfrom
fix/sync-workflow-pr-create

Conversation

@stranske
Copy link
Copy Markdown
Owner

@stranske stranske commented Dec 28, 2025

Automated Status Summary

Scope

  • Scope section missing from source issue.

Tasks

  • Tasks section missing from source issue.

Acceptance criteria

  • Acceptance criteria section missing from source issue.
  • Head SHA: 130b894
  • Latest Runs: ⏳ queued — Gate
  • Required: gate: ⏳ queued
  • | Workflow / Job | Result | Logs |
  • |----------------|--------|------|
  • | Agents PR meta manager | ❔ in progress | View run |
  • | CI Autofix Loop | ✅ success | View run |
  • | Copilot code review | ❔ in progress | View run |
  • | Gate | ⏳ queued | View run |
  • | Health 40 Sweep | ✅ success | View run |
  • | Health 44 Gate Branch Protection | ❔ in progress | View run |
  • | Health 45 Agents Guard | ✅ success | View run |
  • | Health 50 Security Scan | ❔ in progress | View run |
  • | Maint 52 Validate Workflows | ❌ failure | View run |
  • | PR 11 - Minimal invariant CI | ✅ success | View run |
  • | Selftest CI | ❔ in progress | View run |
  • Head SHA: df56f4f
  • Latest Runs: ❔ in progress — Gate
  • Required: gate: ❔ in progress
  • | Workflow / Job | Result | Logs |
  • |----------------|--------|------|
  • | Agents PR meta manager | ❔ in progress | View run |
  • | CI Autofix Loop | ✅ success | View run |
  • | Copilot code review | ❔ in progress | View run |
  • | Gate | ❔ in progress | View run |
  • | Health 40 Sweep | ✅ success | View run |
  • | Health 44 Gate Branch Protection | ❔ in progress | View run |
  • | Health 45 Agents Guard | ✅ success | View run |
  • | Health 50 Security Scan | ❔ in progress | View run |
  • | Maint 52 Validate Workflows | ✅ success | View run |
  • | PR 11 - Minimal invariant CI | ✅ success | View run |
  • | Selftest CI | ❔ in progress | View run |
  • Head SHA: 1acaa14
  • Latest Runs: ❔ in progress — Gate
  • Required: gate: ❔ in progress
  • | Workflow / Job | Result | Logs |
  • |----------------|--------|------|
  • | Agents PR meta manager | ❔ in progress | View run |
  • | CI Autofix Loop | ✅ success | View run |
  • | Copilot code review | ❔ in progress | View run |
  • | Gate | ❔ in progress | View run |
  • | Health 40 Sweep | ✅ success | View run |
  • | Health 44 Gate Branch Protection | ✅ success | View run |
  • | Health 45 Agents Guard | ✅ success | View run |
  • | Health 50 Security Scan | ❔ in progress | View run |
  • | Maint 52 Validate Workflows | ✅ success | View run |
  • | PR 11 - Minimal invariant CI | ✅ success | View run |
  • | Selftest CI | ✅ success | View run |

Head SHA: 2c4ab49
Latest Runs: ⏳ queued — Gate
Required: gate: ⏳ queued

Workflow / Job Result Logs
Agents PR meta manager ❔ in progress View run
CI Autofix Loop ✅ success View run
Copilot code review ❔ in progress View run
Gate ⏳ queued View run
Health 40 Sweep ❔ in progress View run
Health 44 Gate Branch Protection ❔ in progress View run
Health 45 Agents Guard ✅ success View run
Health 50 Security Scan ❔ in progress View run
Maint 52 Validate Workflows ✅ success View run
PR 11 - Minimal invariant CI ✅ success View run
Selftest CI ❔ in progress View run

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.
Copilot AI review requested due to automatic review settings December 28, 2025 00:00
@stranske stranske temporarily deployed to agent-high-privilege December 28, 2025 00:00 — with GitHub Actions Inactive
@agents-workflows-bot
Copy link
Copy Markdown
Contributor

⚠️ Action Required: Unable to determine source issue for PR #230. The PR title, branch name, or body must contain the issue number (e.g. #123, branch: issue-123, or the hidden marker ).

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 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 the gh pr create command to handle branches without upstream tracking

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions
Copy link
Copy Markdown
Contributor

Automated Status Summary

Head SHA: e9b75a7
Latest Runs: ⏳ pending — Gate
Required contexts: Gate / gate, Health 45 Agents Guard / Enforce agents workflow protections
Required: core tests (3.11): ⏳ pending, core tests (3.12): ⏳ pending, docker smoke: ⏳ pending, gate: ⏳ pending

Workflow / Job Result Logs
(no jobs reported) ⏳ pending

Coverage Overview

  • Coverage history entries: 1

Coverage Trend

Metric Value
Current 77.97%
Baseline 0.00%
Delta +77.97%
Minimum 70.00%
Status ✅ Pass

Updated automatically; will refresh on subsequent CI/Docker completions.


Keepalive checklist

Scope

No scope information available

Tasks

  • No tasks defined

Acceptance criteria

  • No acceptance criteria defined

@github-actions
Copy link
Copy Markdown
Contributor

🤖 Keepalive Loop Status

PR #230 | Agent: Codex | Iteration 0/5

Current State

Metric Value
Iteration progress [----------] 0/5
Action wait (missing-agent-label)
Gate success
Tasks 0/50 complete
Keepalive ❌ disabled
Autofix ❌ disabled

🔍 Failure Classification

| Error type | infrastructure |
| Error category | resource |
| Suggested recovery | Confirm the referenced resource exists (repo, PR, branch, workflow, or file). |

@stranske stranske merged commit 757420d into main Dec 28, 2025
56 checks passed
@stranske stranske deleted the fix/sync-workflow-pr-create branch December 28, 2025 00:02
stranske added a commit that referenced this pull request Jan 9, 2026
…ite 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
stranske added a commit that referenced this pull request Jan 9, 2026
* 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>
stranske added a commit that referenced this pull request Jan 9, 2026
…ite 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants