Fix #5799 - swagger for mergePullRequest (#5996)

This commit is contained in:
Thomas Loubiou 2019-02-08 09:08:38 +01:00 committed by zeripath
parent 2e85e70e38
commit 7fb09f035a
4 changed files with 42 additions and 0 deletions

View file

@ -364,7 +364,10 @@ func (f *InitializeLabelsForm) Validate(ctx *macaron.Context, errs binding.Error
// \/ \/ |__| \/ \/
// MergePullRequestForm form for merging Pull Request
// swagger:model MergePullRequestOption
type MergePullRequestForm struct {
// required: true
// enum: merge, rebase, rebase-merge, squash
Do string `binding:"Required;In(merge,rebase,rebase-merge,squash)"`
MergeTitleField string
MergeMessageField string