summaryrefslogtreecommitdiffstats
path: root/modules/forms
diff options
context:
space:
mode:
authora1012112796 <1012112796@qq.com>2021-03-01 03:57:45 +0800
committerGitHub <noreply@github.com>2021-02-28 19:57:45 +0000
commit83cf1a894e5a3a60ea72fa6b92744cb0705dd145 (patch)
tree516863d9c6ead4020004d1730d6bb2d91afbf56b /modules/forms
parent3e652860bb66fafe162079553f8640553c18fe79 (diff)
downloadgitea-83cf1a894e5a3a60ea72fa6b92744cb0705dd145.tar.gz
gitea-83cf1a894e5a3a60ea72fa6b92744cb0705dd145.zip
Create tag on ui (#13467)
Support create single tag directly support create tag with message from create release ui Signed-off-by: a1012112796 <1012112796@qq.com> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: zeripath <art27@cantab.net>
Diffstat (limited to 'modules/forms')
-rw-r--r--modules/forms/repo_branch_form.go1
-rw-r--r--modules/forms/repo_form.go2
2 files changed, 3 insertions, 0 deletions
diff --git a/modules/forms/repo_branch_form.go b/modules/forms/repo_branch_form.go
index 5c631f20d4..88a069b831 100644
--- a/modules/forms/repo_branch_form.go
+++ b/modules/forms/repo_branch_form.go
@@ -16,6 +16,7 @@ import (
// NewBranchForm form for creating a new branch
type NewBranchForm struct {
NewBranchName string `binding:"Required;MaxSize(100);GitRefName"`
+ CreateTag bool
}
// Validate validates the fields
diff --git a/modules/forms/repo_form.go b/modules/forms/repo_form.go
index 48af3450f3..2793acdd5b 100644
--- a/modules/forms/repo_form.go
+++ b/modules/forms/repo_form.go
@@ -642,7 +642,9 @@ type NewReleaseForm struct {
Title string `binding:"Required;MaxSize(255)"`
Content string
Draft string
+ TagOnly string
Prerelease bool
+ AddTagMsg bool
Files []string
}