0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-25 15:54:37 +01:00
gitea/routers/web
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
..
admin Forbid removing the last admin user (#28337) 2024-01-15 06:51:43 +00:00
auth Normalize oauth email username (#28561) 2024-01-03 18:48:20 -06:00
devtest
events
explore
feed Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
healthcheck
misc Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
org fix wrong link in user and organization profile when using relative url (#28617) 2023-12-27 08:32:27 +00:00
repo Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
shared fix wrong link in user and organization profile when using relative url (#28617) 2023-12-27 08:32:27 +00:00
user Forbid removing the last admin user (#28337) 2024-01-15 06:51:43 +00:00
base.go
githttp.go Refactor CORS handler (#28587) 2023-12-25 20:13:18 +08:00
goget.go
home.go
metrics.go
nodeinfo.go
swagger_json.go
web.go Recommend/convert to use case-sensitive collation for MySQL/MSSQL (#28662) 2024-01-10 11:03:23 +00:00
webfinger.go