feat: add hierarchical review numbering and pr description header
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user