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/services/convert
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
..
activity.go For API attachments, use API URL (#25639) 2 years ago
attachment.go Fix attachment download bug (#27486) 1 year ago
convert.go Add branch protection setting for ignoring stale approvals (#28498) 1 year ago
git_commit.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
git_commit_test.go Adjust object format interface (#28469) 1 year ago
issue.go Final round of `db.DefaultContext` refactor (#27587) 1 year ago
issue_comment.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
issue_test.go Move `convert` package to services (#22264) 2 years ago
main_test.go make writing main test easier (#27270) 1 year ago
mirror.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
notification.go Even more `db.DefaultContext` refactor (#27352) 1 year ago
package.go Fix package webhook (#27839) 1 year ago
pull.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
pull_review.go Fix `convert.ToTeams` on empty input (#28426) 1 year ago
pull_test.go Fix `Permission` in API returned repository struct (#25388) 2 years ago
release.go add Upload URL to release API (#26663) 1 year ago
release_test.go add Upload URL to release API (#26663) 1 year ago
repository.go Move more functions to db.Find (#28419) 1 year ago
secret.go feat: implement organization secret creation API (#26566) 1 year ago
status.go refactor improve NoBetterThan (#26126) 2 years ago
user.go Fix API leaking Usermail if not logged in (#25097) 2 years ago
user_test.go Add context cache as a request level cache (#22294) 2 years ago
utils.go Move `convert` package to services (#22264) 2 years ago
utils_test.go Rewrite queue (#24505) 2 years ago
wiki.go Make wiki title supports dashes and improve wiki name related features (#24143) 2 years ago