* 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>
14 lines
No EOL
1 KiB
Markdown
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). |