forgejo/models/fixtures/TestAddTeamReviewRequest
forgejo-backport-action 17f23d48d6 [v12.0/forgejo] fix: PR not blocked by review request for a whitelisted team (#8516)
**Backport:** https://codeberg.org/forgejo/forgejo/pulls/8511

Fixes #8491.

Previous behavior always updated the newly created review to set the `official` flag to false.  This logic was removed.

The likely reason that this logic existed was that team reviews were being marked as official based upon `doer`, rather than the target team, which seems undesirable.  The expected behavior was retained by removing the check for `IsOfficialReviewer(..., doer)`, ensuring that when making a review request for a team, it doesn't matter *who* makes the request.

Co-authored-by: Mathieu Fenniak <mathieu@fenniak.net>
Reviewed-on: https://codeberg.org/forgejo/forgejo/pulls/8516
Reviewed-by: Gusted <gusted@noreply.codeberg.org>
Co-authored-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
Co-committed-by: forgejo-backport-action <forgejo-backport-action@noreply.codeberg.org>
2025-07-16 00:06:22 +02:00
..
issue.yml [v12.0/forgejo] fix: PR not blocked by review request for a whitelisted team (#8516) 2025-07-16 00:06:22 +02:00
protected_branch.yml [v12.0/forgejo] fix: PR not blocked by review request for a whitelisted team (#8516) 2025-07-16 00:06:22 +02:00
pull_request.yml [v12.0/forgejo] fix: PR not blocked by review request for a whitelisted team (#8516) 2025-07-16 00:06:22 +02:00