feat: add hierarchical review numbering and pr description header

This commit is contained in:
2026-04-08 23:48:24 +08:00
parent 56f436592d
commit ed67986320
8 changed files with 36 additions and 6 deletions
+3 -1
View File
@@ -12,6 +12,7 @@ fn render_md_reads_json_and_outputs_markdown_to_stdout() {
"repo": "org/repo",
"pr_index": 1,
"title": "t",
"description": "PR body",
"state": "open",
"author": "a",
"base_branch": "main",
@@ -54,6 +55,7 @@ fn render_md_writes_to_out_file_when_requested() {
"repo": "org/repo",
"pr_index": 2,
"title": "t2",
"description": "PR body",
"state": "open",
"author": "a",
"base_branch": "main",
@@ -220,7 +222,7 @@ fn fetch_writes_markdown_to_stdout_by_default() {
assert!(stdout.contains("# org/repo `#7` Fix parser"));
assert!(stdout.contains("## Commits"));
assert!(stdout.contains("## Diff Stat"));
assert!(stdout.contains("## Review 1 (COMMENT)"));
assert!(stdout.contains("## Review 7.1 (COMMENT)"));
}
#[test]