diff options
Diffstat (limited to 'routers/repo/setting.go')
-rw-r--r-- | routers/repo/setting.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/routers/repo/setting.go b/routers/repo/setting.go index 8cb551707c..342451b8ad 100644 --- a/routers/repo/setting.go +++ b/routers/repo/setting.go @@ -211,7 +211,12 @@ func SettingsPost(ctx *context.Context, form auth.RepoSettingForm) { units = append(units, models.RepoUnit{ RepoID: repo.ID, Type: models.UnitTypePullRequests, - Config: new(models.UnitConfig), + Config: &models.PullRequestsConfig{ + IgnoreWhitespaceConflicts: form.PullsIgnoreWhitespace, + AllowMerge: form.PullsAllowMerge, + AllowRebase: form.PullsAllowRebase, + AllowSquash: form.PullsAllowSquash, + }, }) } |