Skip to content

[API] Cannot create a pending review without body (but with a file comment) #15933

Closed
@PhenX

Description

@PhenX

Description

Hello, while using the repo/CreatePullReview API it seems we cannot create a pending review with file comments only :

ctx.Error(http.StatusUnprocessableEntity, "", fmt.Errorf("review event %s need body", event))

image

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedmodifies/apiThis PR adds API routes or modifies themtype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions