aboutsummaryrefslogtreecommitdiffstats
path: root/modules/structs
diff options
context:
space:
mode:
author6543 <6543@obermui.de>2021-06-17 18:04:10 +0200
committerGitHub <noreply@github.com>2021-06-17 18:04:10 +0200
commitf7cd394680f885061144d236abc3c25f30be3147 (patch)
treeb0cceab982c18db7fb48489729dc44fdff8101af /modules/structs
parent19dedc3fa521fdb6456bad2b080bb1aaa6722b24 (diff)
downloadgitea-f7cd394680f885061144d236abc3c25f30be3147.tar.gz
gitea-f7cd394680f885061144d236abc3c25f30be3147.zip
[API] Add repoCreateTag (#16165)
* Add API CreateTag * Add Test * API: expose Tag Message
Diffstat (limited to 'modules/structs')
-rw-r--r--modules/structs/repo_tag.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/structs/repo_tag.go b/modules/structs/repo_tag.go
index b62395cac4..80ee1ccf17 100644
--- a/modules/structs/repo_tag.go
+++ b/modules/structs/repo_tag.go
@@ -7,6 +7,7 @@ package structs
// Tag represents a repository tag
type Tag struct {
Name string `json:"name"`
+ Message string `json:"message"`
ID string `json:"id"`
Commit *CommitMeta `json:"commit"`
ZipballURL string `json:"zipball_url"`
@@ -30,3 +31,11 @@ type AnnotatedTagObject struct {
URL string `json:"url"`
SHA string `json:"sha"`
}
+
+// CreateTagOption options when creating a tag
+type CreateTagOption struct {
+ // required: true
+ TagName string `json:"tag_name" binding:"Required"`
+ Message string `json:"message"`
+ Target string `json:"target"`
+}