diff options
Diffstat (limited to 'modules/structs')
-rw-r--r-- | modules/structs/repo_tag.go | 9 |
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"` +} |