Skip to content

Team review requests get deleted when team member submits unrelated review requestΒ #17251

@jpraet

Description

@jpraet

Gitea Version

1.15.3

Git Version

No response

Operating System

No response

How are you running Gitea?

docker

Database

PostgreSQL

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Description

Team review requests unexpectedly get deleted when a team member submits any review in a (potentially unrelated) pull request.

It looks like the where clause to consider only the current PR is missing here:
https://github.com/go-gitea/gitea/blob/main/models/review.go#L444-L463

Screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions