You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add branch protection setting for ignoring stale approvals (go-gitea#28498)
Fixesgo-gitea#27114.
* In Gitea 1.12 (go-gitea#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 (go-gitea#12674), the "dismiss review" feature was added.
* This caused confusion with users (go-gitea#25858), as "dismiss" now means 2
different things.
* In Gitea 1.20 (go-gitea#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>
settings.protect_approvals_whitelist_teams = Whitelisted teams for reviews:
2316
2316
settings.dismiss_stale_approvals = Dismiss stale approvals
2317
2317
settings.dismiss_stale_approvals_desc = When new commits that change the content of the pull request are pushed to the branch, old approvals will be dismissed.
2318
+
settings.ignore_stale_approvals = Ignore stale approvals
2319
+
settings.ignore_stale_approvals_desc = Do not count approvals that were made on older commits (stale reviews) towards how many approvals the PR has. Irrelevant if stale reviews are already dismissed.
2318
2320
settings.require_signed_commits = Require Signed Commits
2319
2321
settings.require_signed_commits_desc = Reject pushes to this branch if they are unsigned or unverifiable.
2320
2322
settings.protect_branch_name_pattern = Protected Branch Name Pattern
0 commit comments