Closed
Description
- Gitea version (or commit ref): 1.13.6
- Git version: 2.25.1
- Operating system: Ubuntu 20.04
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes :
- https://try.gitea.io/fnetx/Documentation/pulls/126 / https://try.gitea.io/api/swagger#/repository/repoCreatePullReview (see screenshot for details)
- No
- Log gist: N/A
Description
Hello, while using the repo/CreatePullReview API it seems we cannot create a pending review with file comments only :
gitea/routers/api/v1/repo/pull_review.go
Line 498 in ab77a24
This also seems to mean that the review, event if "pending" is "published" and sends notifications and is visble in the history.
This behaviour is annoying and prevents a correct usage of file reviews via the API IMHO.
What I need to do is : be able to start pending reviews with file comments, and publish the review only when submitting the review with one of these statuses : Commented, Rejected, Approved.
Or is there something I'm doing wrong ?