forgejo/models
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
..
actions [v12.0/forgejo] fix: disable Forgejo Actions email notifications on recovery (#8390) 2025-07-02 20:03:18 +02:00
activities Federated user activity following: Isolated model changes (#8078) 2025-06-21 12:02:58 +02:00
admin
asymkey
auth
avatars
db [v12.0/forgejo] fix: use parent context for new transactions (#8474) 2025-07-10 14:44:56 +02:00
dbfs
fixtures [v12.0/forgejo] fix: PR not blocked by review request for a whitelisted team (#8516) 2025-07-16 00:06:22 +02:00
forgefed Federated user activity following: Isolated model changes (#8078) 2025-06-21 12:02:58 +02:00
forgejo/semver
forgejo_migrations [v12.0/forgejo] fix: corrupted wiki unit default permission (#8234 follow-up) (#8439) 2025-07-07 20:23:20 +02:00
git
issues [v12.0/forgejo] fix: PR not blocked by review request for a whitelisted team (#8516) 2025-07-16 00:06:22 +02:00
migrations
moderation [v12.0/forgejo] fix: abuse reports string data types (#8319) 2025-06-27 16:30:23 +02:00
organization
packages [v12.0/forgejo] several fixes of ALT Package registry (#8480) 2025-07-10 21:57:46 +02:00
perm
project
pull fix: do not ignore automerge while a PR is checking for conflicts (#8189) 2025-06-17 10:58:07 +02:00
quota
repo [v12.0/forgejo] fix: corrupted wiki unit default permission (#8234 follow-up) (#8439) 2025-07-07 20:23:20 +02:00
secret
shared/types
system
unit
unittest
user [v12.0/forgejo] fix: user activation with uppercase email address (#8386) 2025-07-02 13:54:45 +02:00
webhook
error.go
main_test.go
org.go
org_team.go
org_team_test.go
org_test.go
repo.go
repo_test.go
repo_transfer.go
repo_transfer_test.go