0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-01-19 13:30:54 +01:00
gitea/models
Jimmy Praet 5d3fdd1212
Add branch protection setting for ignoring stale approvals (#28498)
Fixes #27114.

* In Gitea 1.12 (#9532), a "dismiss stale approvals" branch protection
setting was introduced, for ignoring stale reviews when verifying the
approval count of a pull request.
* In Gitea 1.14 (#12674), the "dismiss review" feature was added.
* This caused confusion with users (#25858), as "dismiss" now means 2
different things.
* In Gitea 1.20 (#25882), the behavior of the "dismiss stale approvals"
branch protection was modified to actually dismiss the stale review.

For some users this new behavior of dismissing the stale reviews is not
desirable.

So this PR reintroduces the old behavior as a new "ignore stale
approvals" branch protection setting.

---------

Co-authored-by: delvh <dev.lh@web.de>
2024-01-15 07:20:01 +00:00
..
actions
activities Speed up loading the dashboard on mysql/mariadb (#28546) 2024-01-14 15:34:25 +01:00
admin
asymkey Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
auth Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
avatars
db Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
dbfs
fixtures Fix comment permissions (#28213) 2023-11-25 17:21:21 +00:00
git Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
issues Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
migrations Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
organization
packages
perm
project
pull
repo Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
secret
shared/types
system
unit
unittest
user Forbid removing the last admin user (#28337) 2024-01-15 06:51:43 +00:00
webhook
error.go Forbid removing the last admin user (#28337) 2024-01-15 06:51:43 +00:00
fixture_generation.go
fixture_test.go
main_test.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_test.go Penultimate round of db.DefaultContext refactor (#27414) 2023-10-11 04:24:07 +00:00
repo_transfer_test.go
repo_transfer.go
repo.go