1
1
mirror of https://github.com/go-gitea/gitea synced 2025-07-22 18:28:37 +00:00

Title can be empty when creating tag only (#23917)

Fixes #23809

Make the title not required. If the title is empty when creating release
(not tag), an error message will be displayed.

![image](https://user-images.githubusercontent.com/15528715/229761056-c52e338b-5f25-4d7d-bb44-2cb0304abcee.png)
This commit is contained in:
Zettat123
2023-04-07 09:44:52 +08:00
committed by GitHub
parent 950c93a66a
commit ed7245f997
4 changed files with 9 additions and 2 deletions

View File

@@ -693,7 +693,7 @@ type UpdateAllowEditsForm struct {
type NewReleaseForm struct {
TagName string `binding:"Required;GitRefName;MaxSize(255)"`
Target string `form:"tag_target" binding:"Required;MaxSize(255)"`
Title string `binding:"Required;MaxSize(255)"`
Title string `binding:"MaxSize(255)"`
Content string
Draft string
TagOnly string