0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-12-11 10:34:59 +01:00
gitea/models/issues
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
..
assignees_test.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
assignees.go
comment_code.go
comment_list.go
comment_test.go
comment.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00
content_history_test.go
content_history.go
dependency_test.go
dependency.go
issue_index.go
issue_label_test.go
issue_label.go
issue_list_test.go
issue_list.go
issue_lock.go
issue_project.go
issue_search.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
issue_stats.go
issue_test.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
issue_update.go
issue_user_test.go
issue_user.go
issue_watch_test.go
issue_watch.go
issue_xref_test.go
issue_xref.go
issue.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
label_test.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
label.go Refactor deletion (#28610) 2023-12-25 21:25:29 +01:00
main_test.go
milestone_list.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
milestone_test.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
milestone.go Refactor timeutil package (#28623) 2023-12-28 10:09:57 +00:00
pull_list.go
pull_test.go
pull.go Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
reaction_test.go
reaction.go
review_list.go
review_test.go
review.go Refactor some legacy code and remove unused code (#28622) 2023-12-28 09:38:59 +00:00
stopwatch_test.go
stopwatch.go Remove deadcode under models/issues (#28536) 2023-12-19 20:12:02 +01:00
tracked_time_test.go
tracked_time.go Move more functions to db.Find (#28419) 2024-01-15 02:19:25 +00:00