opencode-config/docs/decisions/076-pr-179-run-pipeline-origin-head-templates.md
Sergey f67a9298cc
fix(run-pipeline): replace origin/master with origin/HEAD in templates B and C (#179)
* 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>
2026-07-31 21:47:31 +03:00

14 lines
No EOL
1.6 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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`.