diff options
author | Brecht Van Lommel | 2023-02-13 07:09:52 +0100 |
---|---|---|
committer | GitHub | 2023-02-13 14:09:52 +0800 |
commit | 49919c636e4788a14f3762a0d9137ee2e0092790 (patch) | |
tree | acac92af0eff851eaea32416e17001ba0776032c /models | |
parent | b6d77229cfbab146da6445467acab2125e9e5edb (diff) |
Pull Requests: setting to allow edits by maintainers by default, tweak UI (#22862)
Add setting to allow edits by maintainers by default, to avoid having to
often ask contributors to enable this.
This also reorganizes the pull request settings UI to improve clarity.
It was unclear which checkbox options were there to control available
merge styles and which merge styles they correspond to.
Now there is a "Merge Styles" label followed by the merge style options
with the same name as in other menus. The remaining checkboxes were
moved to the bottom, ordered rougly by typical order of operations.
---------
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'models')
-rw-r--r-- | models/repo/repo_unit.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/models/repo/repo_unit.go b/models/repo/repo_unit.go index ee450a46c..7c1af95bf 100644 --- a/models/repo/repo_unit.go +++ b/models/repo/repo_unit.go @@ -125,6 +125,7 @@ type PullRequestsConfig struct { AllowRebaseUpdate bool DefaultDeleteBranchAfterMerge bool DefaultMergeStyle MergeStyle + DefaultAllowMaintainerEdit bool } // FromDB fills up a PullRequestsConfig from serialized format. |