Add tag check to release draft creation (#3729)

This commit is contained in:
Bwko authored and Lauris BH committed 2018-06-04 08:34:44 +03:00
1 parent fb1daad13d
commit 1f877f8c87
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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