aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorThomas Loubiou <xabufr@users.noreply.github.com>2019-02-08 09:08:38 +0100
committerzeripath <art27@cantab.net>2019-02-08 08:08:38 +0000
commit7fb09f035ac8b10191c154ed4395a8e02d3c5e8d (patch)
treef1d9b0363a3fca79788b48e8a8d67d9169530549 /modules
parent2e85e70e38d421c9d0b643c7dbd2b0f4c5ed0cbc (diff)
downloadgitea-7fb09f035ac8b10191c154ed4395a8e02d3c5e8d.tar.gz
gitea-7fb09f035ac8b10191c154ed4395a8e02d3c5e8d.zip
Fix #5799 - swagger for mergePullRequest (#5996)
Diffstat (limited to 'modules')
-rw-r--r--modules/auth/repo_form.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go
index ff64d9a56b..3f5078171a 100644
--- a/modules/auth/repo_form.go
+++ b/modules/auth/repo_form.go
@@ -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