feat: enforce output version v1 and add version subcommand

This commit is contained in:
2026-04-08 23:59:55 +08:00
parent a6daaff0fa
commit c4fa0eadcc
14 changed files with 117 additions and 10 deletions
+8
View File
@@ -54,12 +54,20 @@ gitea-pr-review render-md --in pr.json
gitea-pr-review render-md --in pr.json --out pr.md
```
### 3) Show current document version
```bash
gitea-pr-review version
# v1
```
## Markdown Output Shape (Example)
````md
# <repo> `#<pr-index>` <pr-title>
> Numbering: Review `<pr>.<review>`; Comment `<pr>.<review>.<comment>`; Reply `<pr>.<review>.<comment>.<reply>`
> version: v1
> fetched at: <fetch-time-rfc3339>
<pr description>