process: add mandatory PR body post-check step (#392)
This commit is contained in:
@@ -59,6 +59,18 @@ scripts/tea_comment.sh 374 /tmp/comment.md
|
||||
- `scripts/tea_comment.sh` accepts stdin with `-` as body source.
|
||||
- The helper fails fast when body looks like escaped-newline text only.
|
||||
|
||||
#### PR Body Post-Check (Mandatory)
|
||||
|
||||
PR 생성 직후 본문이 `\n` 문자열로 깨지지 않았는지 반드시 확인한다.
|
||||
|
||||
```bash
|
||||
python3 scripts/validate_pr_body.py --pr <PR_NUMBER>
|
||||
```
|
||||
|
||||
검증 실패 시:
|
||||
- PR 본문을 API patch 또는 파일 기반 본문으로 즉시 수정
|
||||
- 같은 명령으로 재검증 통과 후에만 리뷰/머지 진행
|
||||
|
||||
#### ❌ TTY Error - Interactive Confirmation Fails
|
||||
```bash
|
||||
~/bin/tea issues create --repo X --title "Y" --description "Z"
|
||||
|
||||
@@ -128,6 +128,16 @@ tea pr create \
|
||||
--description "$PR_BODY"
|
||||
```
|
||||
|
||||
PR 생성 직후 본문 무결성 검증(필수):
|
||||
|
||||
```bash
|
||||
python3 scripts/validate_pr_body.py --pr <PR_NUMBER>
|
||||
```
|
||||
|
||||
강제 규칙:
|
||||
- 검증 실패(`\n` 리터럴, 코드펜스 불균형, 헤더/리스트 누락) 상태에서는 리뷰/머지 금지
|
||||
- 본문 수정 후 같은 명령으로 재검증 통과 필요
|
||||
|
||||
금지 패턴:
|
||||
|
||||
- `-d "line1\nline2"` (웹 UI에 `\n` 문자 그대로 노출될 수 있음)
|
||||
|
||||
Reference in New Issue
Block a user