opencode-config/docs/decisions/090-pr-207-enforce-watch-out-pending-headings.md
Sergey 0c1e3e7d39
feat(create-pr): enforce Watch out and Pending headings in PR body (#207)
* feat(create-pr): enforce Watch out and Pending headings

* test(create-pr): cover Watch out and Pending headings

* docs(handoff): add handoff and ADR for PR #207

---------

Co-authored-by: opencode-agent <agent@opencode.local>
2026-08-01 03:28:35 +03:00

14 lines
No EOL
1 KiB
Markdown

# ADR-090: Enforce Watch out and Pending headings in PR body
## Статус
Accepted (2026-08-01)
## Контекст
Pipeline migration убирает DOCS phase. Handoff файлы удаляются. PR body должен стать единственным source of truth для review/memory. Раньше PR body валидировал только `## Что сделано` и `## Почему` — недостаточно для замены handoff.
## Решение
Расширить create-pr.ts validation до 4 heading'ов: `## Что сделано`, `## Почему`, `## Watch out` (required, em-dash если пусто), `## Pending` (required heading, content optional). Substring check (body.includes) — same as existing pattern.
## Альтернативы
1. Regex-based validation — отвергнута (несоответствует текущему pattern).
2. Опциональные heading'и — отвергнуто (цель — единый source of truth, requires enforcement).