opencode-config/docs/handoff/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

1.1 KiB
Raw Permalink Blame History


pr: 207 title: feat(create-pr): enforce Watch out and Pending headings in PR body

Что сделано

Расширена валидация PR body в create-pr.ts с 2 heading'ов до 4 — добавлены обязательные ## Watch out и ## Pending. Обновлены RULES string, execute() validation, description. Добавлены тесты в test_create_pr_tool.py (3 теста) и test_create_pr_tool.ts (3 теста).

Почему

Pipeline migration убирает DOCS phase — handoff файлы удаляются, PR body становится единственным source of truth. Нужно чтобы PR body содержал всю информацию ранее жившую в handoff (включая Watch out и Pending).

Pending

Удаление handoff файлов и обновление pipeline-status.py — отдельный issue (out of scope).

Watch out

## Watch out: — (em-dash) валиден если нет gotchas. ## Pending: — валиден если нет follow-ups. Validation = substring check (body.includes), не regex. PR title validation не трогать.