← Back to Pull requests

fix: remove gh repo sync call that always fails before push #344

Merged
SKSCody merged 1 files (17 lines) on Nov 13, 2026 13:13 UTC
View on GitHub
SKSCody SKSCody commented on Nov 12, 2026 21:24 UTC
Author

Problem


PushChanges first runs:

gh repo sync --source -b <branch>

--source takes a value, so -b is parsed as the source repo and the branch name becomes the destination repo argument. gh rejects this locally, before any network call, every time:

$ gh repo sync --source -b some/branch
expected the "[HOST/]OWNER/REPO" format, got "-b"

So push has always fallen through to the git push -u origin <branch> fallback. Even with correct flags, gh repo sync can't push a local branch (it syncs a destination from a source), so the call can't do what its comment says.

Fix


Remove the dead call and run git push -u origin <branch> directly. Behavior is unchanged; it just skips a subprocess that always fails.

Testing


  • Verified the gh argument parsing manually with gh 2.103.3 (output above).

  • No new tests: the removed path never succeeded, and PushChanges on this path needs an authenticated gh.
  • 🤖 Generated with Claude Code

    Diff: 17 lines (+6 / -11) across 1 files Reviewer: jayshrivastava Review duration: 948m
    All Vouch review confidence checks passed
    Residual risk 0.08 = Change Risk (0.25) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.25 · 17 lines diff across 1 files
    0.25
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.54 · 3 substantive comment(s)
    0.54
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    70%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.173
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    5 items
    github-actions[bot] github-actions[bot] commented on Nov 12, 2026 21:25 UTC
    Bot

    All contributors have signed the CLA ✍️ ✅<br/><sub>Posted by the *CLA Assistant Lite bot*.</sub>

    SKSCody SKSCody commented on Nov 12, 2026 21:32 UTC
    Author

    I have read the CLA Document and I hereby sign the CLA

    jayshrivastava jayshrivastava approved these changes on Nov 13, 2026 13:12 UTC
    Approved Reviewer

    Approved these changes.

    jayshrivastava jayshrivastava commented on Nov 13, 2026 13:13 UTC
    Contributor

    Thanks for this contribution! LGTM

    Assignees
    SKSCody SKSCody
    Labels
    risk: low confidence: 70.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 25.3% (LOW) · Higher = larger blast radius
    25.3%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 70.1% · Lower = rushed or shallow review
    70.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 7.6% · Safe to merge
    7.6%