diff options
Diffstat (limited to 'services')
-rw-r--r-- | services/convert/convert.go | 1 | ||||
-rw-r--r-- | services/forms/repo_form.go | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/services/convert/convert.go b/services/convert/convert.go index 8dc311dae9..c8cad2a2ad 100644 --- a/services/convert/convert.go +++ b/services/convert/convert.go @@ -158,6 +158,7 @@ func ToBranchProtection(ctx context.Context, bp *git_model.ProtectedBranch, repo return &api.BranchProtection{ BranchName: branchName, RuleName: bp.RuleName, + Priority: bp.Priority, EnablePush: bp.CanPush, EnablePushWhitelist: bp.EnableWhitelist, PushWhitelistUsernames: pushWhitelistUsernames, diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 8e663084f8..7647c74e46 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -228,6 +228,10 @@ func (f *ProtectBranchForm) Validate(req *http.Request, errs binding.Errors) bin return middleware.Validate(errs, ctx.Data, f, ctx.Locale) } +type ProtectBranchPriorityForm struct { + IDs []int64 +} + // __ __ ___. .__ __ // / \ / \ ____\_ |__ | |__ ____ ____ | | __ // \ \/\/ // __ \| __ \| | \ / _ \ / _ \| |/ / |