aboutsummaryrefslogtreecommitdiffstats
path: root/services/automerge
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2023-02-21 22:42:07 +0800
committerGitHub <noreply@github.com>2023-02-21 08:42:07 -0600
commitc8c2a31818527f7377ddb9fb111a55d0c058ebe7 (patch)
tree5ebb1653b112dbf66e00d9ec34755382cfd5c6cf /services/automerge
parent1fcf96ad0166420cbdb013365ecae42e3537b42a (diff)
downloadgitea-c8c2a31818527f7377ddb9fb111a55d0c058ebe7.tar.gz
gitea-c8c2a31818527f7377ddb9fb111a55d0c058ebe7.zip
Add force_merge to merge request and fix checking mergable (#23010)
Fix #23000.
Diffstat (limited to 'services/automerge')
-rw-r--r--services/automerge/automerge.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/automerge/automerge.go b/services/automerge/automerge.go
index 74cfb8da8f..9946047640 100644
--- a/services/automerge/automerge.go
+++ b/services/automerge/automerge.go
@@ -230,7 +230,7 @@ func handlePull(pullID int64, sha string) {
return
}
- if err := pull_service.CheckPullMergable(ctx, doer, &perm, pr, false, false); err != nil {
+ if err := pull_service.CheckPullMergable(ctx, doer, &perm, pr, pull_service.MergeCheckTypeGeneral, false); err != nil {
if errors.Is(pull_service.ErrUserNotAllowedToMerge, err) {
log.Info("%-v was scheduled to automerge by an unauthorized user", pr)
return