* fix(run-pipeline): replace origin/master with origin/HEAD in templates B and C * docs(handoff): add handoff and ADR for run-pipeline origin/HEAD fix * docs(handoff): set PR number --------- Co-authored-by: opencode-agent <agent@opencode.local>
1.6 KiB
ADR-076: Replace origin/master with origin/HEAD in run-pipeline templates B and C (PR #179)
Статус
Accepted (2026-07-31)
Контекст
.opencode/skills/run-pipeline/SKILL.md содержал два шаблона для саб-агентов (Template B — docs-review, Template C — code_review) с захардкоженным origin/master...HEAD. На репозиториях с default branch main (а не master) это падает с fatal: ambiguous argument 'origin/master...HEAD'. PR #163 уже устранил аналогичную проблему в docs-reviewer.md, но run-pipeline/SKILL.md остался вне scope. Зеркало ~/.config/opencode/skills/run-pipeline/SKILL.md рассинхронизировано не было (содержало те же устаревшие строки).
Решение
Заменить origin/master...HEAD → origin/HEAD...HEAD в обоих шаблонах (line 73 Template B, line 104 Template C) в repo-local .opencode/ и в зеркале ~/.config/opencode/. origin/HEAD — git-симлинк на default branch репо, детерминированно работает независимо от имени default branch (master/main).
Альтернативы
- Полностью drop
origin/<branch>...HEADв пользуgh pr diff M— отклонено: меняет контракт invocation-prompt для саб-агентов и выходит за scope issue #164 (чистый fix). - Hardcode
origin/main...HEAD— отклонено: переносит баг на репо сmaster.