diff options
author | Zettat123 <zettat123@gmail.com> | 2023-04-07 09:44:52 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-06 21:44:52 -0400 |
commit | ed7245f997e980fe5daa9e0d298539bc5e62ac59 (patch) | |
tree | dc562e85997c59b645ce31aa6b4b0487c5944bf8 /services/forms | |
parent | 950c93a66a684a84767e9e22a19953d1fc9b43b9 (diff) | |
download | gitea-ed7245f997e980fe5daa9e0d298539bc5e62ac59.tar.gz gitea-ed7245f997e980fe5daa9e0d298539bc5e62ac59.zip |
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)
Diffstat (limited to 'services/forms')
-rw-r--r-- | services/forms/repo_form.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/forms/repo_form.go b/services/forms/repo_form.go index 3bd073c070..41d7dc7d2b 100644 --- a/services/forms/repo_form.go +++ b/services/forms/repo_form.go @@ -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 |