0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-28 10:38:42 +01:00
gitea/modules/structs
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
..
activity.go
activitypub.go
admin_user.go chore(api): support ignore password if login source type is LDAP for creating user API (#28491) 2023-12-19 02:32:45 +00:00
attachment.go
commit_status_test.go
commit_status.go Restore warning commit status (#27504) 2023-10-08 22:16:06 +00:00
cron.go
doc.go
fork.go
git_blob.go
git_hook.go
hook.go
issue_comment.go
issue_label.go
issue_milestone.go
issue_reaction.go
issue_stopwatch.go
issue_test.go
issue_tracked_time.go
issue.go
lfs_lock.go
mirror.go
miscellaneous.go
nodeinfo.go
notifications.go
org_member.go
org_team.go
org.go
package.go Fix package webhook (#27839) 2023-10-31 04:43:38 +00:00
pull_review.go
pull.go
release.go
repo_branch.go Add branch protection setting for ignoring stale approvals (#28498) 2024-01-15 07:20:01 +00:00
repo_collaborator.go
repo_commit.go
repo_file.go
repo_key.go
repo_note.go
repo_refs.go
repo_tag.go
repo_topic.go
repo_tree.go
repo_watch.go
repo_wiki.go
repo.go Fix PushEvent NullPointerException jenkinsci/github-plugin (#27203) 2023-09-24 19:02:47 +00:00
secret.go
settings.go
status.go
task.go
user_app.go
user_email.go
user_gpgkey.go
user_key.go
user.go
visible_type.go