diff options
author | Bwko <bouwko@gmail.com> | 2018-06-04 07:34:44 +0200 |
---|---|---|
committer | Lauris BH <lauris@nix.lv> | 2018-06-04 08:34:44 +0300 |
commit | 1f877f8c875891d3647c9a6413abc02aa5787109 (patch) | |
tree | 176b0f9113b9ec36040cac5aea7e714634b55d40 /modules/auth | |
parent | fb1daad13d26f34617e91891b45617471ffb5520 (diff) | |
download | gitea-1f877f8c875891d3647c9a6413abc02aa5787109.tar.gz gitea-1f877f8c875891d3647c9a6413abc02aa5787109.zip |
Add tag check to release draft creation (#3729)
Diffstat (limited to 'modules/auth')
-rw-r--r-- | modules/auth/repo_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/auth/repo_form.go b/modules/auth/repo_form.go index e3471fff5d..4ea1ba90ec 100644 --- a/modules/auth/repo_form.go +++ b/modules/auth/repo_form.go @@ -371,7 +371,7 @@ func (f *MergePullRequestForm) Validate(ctx *macaron.Context, errs binding.Error // NewReleaseForm form for creating release type NewReleaseForm struct { - TagName string `binding:"Required"` + TagName string `binding:"Required;GitRefName"` Target string `form:"tag_target" binding:"Required"` Title string `binding:"Required"` Content string |