Repository navigation
CI: merge main only for a reason; shepherd stops updating behind branches (Fixes #5134) - #5138
Conversation
…hind branch (Fixes #5134) Owner option A: workers merge main only when the PR is conflicting, a required check fails because of main, or golden masters/generated files need a re-bless. Drops behind->update-branch from shepherd_gh.py and the local ci_shepherd.py; updates pr-worker.md, docs/ci.md, parallel-pr-agents. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
|
No description provided. |
|
PR #5138 @ cd7e67f: 1 failed check(s) == full-suite part 3/3 (failure) -- real |
|
No description provided. |
1 similar comment
|
No description provided. |
Fixes #5134 (owner decision, option A).
What
tests/tools/shepherd_gh.py: removed the behind ->update_branchrule indecide()and theupdate_branchop inapply(). The marker-pair approval carry-over stays (PRs the bot updated earlier, and plain merges of main by workers, keepshepherd:merge).tests/tools/box/ci_shepherd.py(same mechanism, local fallback): removed behind ->gh pr update-branch; a green PR GitHub callsbehindnow logs that it is not updated..claude/agents/gitgalaxy-pr-worker.md,docs/ci.md,parallel-pr-agentsskill, a stale comment inshepherd-reconcile.yml: merge main only for a conflict, a main-caused required-check failure, or a re-bless after a sibling merge that moved golden masters/generated files.Class: automation/guidance that updates a PR branch from main just to keep it current.
Tests:
test_shepherd_gh.pyandtest_ci_shepherd.pynow assert no update is made in any behind state (green, pending, failed, held, auto-merge, unlabelled); 90 pass.pr_gates.py --fast6/6,--ratchets7/7.Cross-repo: none. No parsing logic touched; no golden re-bless.
After merge: count merge-main commits per PR for 3 days. The owner clears classic branch-protection
strict: trueby hand; while set, GitHub reports green PRs asbehindandpr_checkrefuses them.🤖 Generated with Claude Code