1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Add DefaultMergeStyle option to repository (#14789)

Fixes #12293
This commit is contained in:
parnic
2021-03-27 09:55:40 -05:00
committed by GitHub
parent 6b836ac5f7
commit f4d27498bd
11 changed files with 70 additions and 2 deletions

View File

@@ -322,6 +322,7 @@ func SettingsPost(ctx *context.Context) {
AllowSquash: form.PullsAllowSquash,
AllowManualMerge: form.PullsAllowManualMerge,
AutodetectManualMerge: form.EnableAutodetectManualMerge,
DefaultMergeStyle: models.MergeStyle(form.PullsDefaultMergeStyle),
},
})
} else if !models.UnitTypePullRequests.UnitGlobalDisabled() {