0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-13 10:00:04 +01:00
gitea/routers/web/repo
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 Only check online runner when detecting matching runners in workflows (#28286) 2023-12-18 16:06:19 +00:00
setting Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
activity.go
attachment.go
blame.go Use information from previous blame parts (#28572) 2023-12-21 22:48:18 +01:00
branch.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
cherry_pick.go
commit.go Abstract hash function usage (#28138) 2023-12-13 21:02:00 +00:00
compare.go Assign pull request to project during creation (#28227) 2024-01-12 15:25:15 +00:00
download.go
editor_test.go
editor.go
find.go
githttp_test.go
githttp.go Adjust object format interface (#28469) 2023-12-17 11:56:08 +00:00
helper_test.go
helper.go
issue_content_history.go Fix missing check (#28406) 2023-12-10 21:37:10 +02:00
issue_dependency.go
issue_label_test.go
issue_label.go
issue_lock.go
issue_pin.go Fix missing check (#28406) 2023-12-10 21:37:10 +02:00
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go Fix issue dependencies (#27736) 2024-01-12 16:49:02 +00:00
main_test.go
middlewares.go
migrate.go
milestone.go Second part of refactor db.Find (#28194) 2023-12-11 16:56:48 +08:00
packages.go
patch.go
projects_test.go
projects.go
pull_review.go
pull.go Modernize merge button (#28140) 2024-01-15 00:00:47 +02:00
release_test.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
release.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
render.go
repo.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
search.go
topic.go
treelist.go
view_test.go
view.go Add option to disable ambiguous unicode characters detection (#28454) 2023-12-17 14:38:54 +00:00
wiki_test.go
wiki.go