You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gitea/models/git
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>
1 year ago
..
branch.go Fix schedule tasks bugs (#28691) 1 year ago
branch_list.go Second part of refactor `db.Find` (#28194) 1 year ago
branch_test.go Fix schedule tasks bugs (#28691) 1 year ago
commit_status.go Improve ObjectFormat interface (#28496) 1 year ago
commit_status_test.go Restore warning commit status (#27504) 1 year ago
lfs.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 1 year ago
lfs_lock.go Introduce path Clean/Join helper functions (#23495) 2 years ago
main_test.go make writing main test easier (#27270) 1 year ago
protected_banch_list_test.go Fix branch protection priority (#24045) 2 years ago
protected_branch.go Add branch protection setting for ignoring stale approvals (#28498) 1 year ago
protected_branch_list.go Sync branches into databases (#22743) 2 years ago
protected_branch_test.go Supports wildcard protected branch (#20825) 2 years ago
protected_tag.go Refactor some legacy code and remove unused code (#28622) 1 year ago
protected_tag_test.go Implement FSFE REUSE for golang files (#21840) 2 years ago