File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -647,12 +647,16 @@ type UpdateAllowEditsForm struct {
647647
648648// NewReleaseForm form for creating release
649649type NewReleaseForm struct {
650- TagName string `binding:"Required;GitRefName;MaxSize(255)"`
651- Target string `form:"tag_target" binding:"Required;MaxSize(255)"`
652- Title string `binding:"MaxSize(255)"`
653- Content string
654- Draft string
655- TagOnly string
650+ TagName string `binding:"Required;GitRefName;MaxSize(255)"`
651+ Target string `form:"tag_target" binding:"Required;MaxSize(255)"`
652+ Title string `binding:"MaxSize(255)"`
653+ Content string
654+ Draft string
655+
656+ // TODO: ideally it should be a bool. The "string" type here was used to accept the value of `<input type="submit" value="Tag Only">`.
657+ // As now, the tmpl code had been refactor to `<button value="1">Tag Only</button>`, so the type could be safely refactored to "bool" in the future.
658+ TagOnly string
659+
656660 Prerelease bool
657661 AddTagMsg bool
658662 Files []string
You can’t perform that action at this time.
0 commit comments