You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

repo_tag.go 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. // Copyright 2019 The Gitea Authors. All rights reserved.
  2. // Use of this source code is governed by a MIT-style
  3. // license that can be found in the LICENSE file.
  4. package structs
  5. // Tag represents a repository tag
  6. type Tag struct {
  7. Name string `json:"name"`
  8. Message string `json:"message"`
  9. ID string `json:"id"`
  10. Commit *CommitMeta `json:"commit"`
  11. ZipballURL string `json:"zipball_url"`
  12. TarballURL string `json:"tarball_url"`
  13. }
  14. // AnnotatedTag represents an annotated tag
  15. type AnnotatedTag struct {
  16. Tag string `json:"tag"`
  17. SHA string `json:"sha"`
  18. URL string `json:"url"`
  19. Message string `json:"message"`
  20. Tagger *CommitUser `json:"tagger"`
  21. Object *AnnotatedTagObject `json:"object"`
  22. Verification *PayloadCommitVerification `json:"verification"`
  23. }
  24. // AnnotatedTagObject contains meta information of the tag object
  25. type AnnotatedTagObject struct {
  26. Type string `json:"type"`
  27. URL string `json:"url"`
  28. SHA string `json:"sha"`
  29. }
  30. // CreateTagOption options when creating a tag
  31. type CreateTagOption struct {
  32. // required: true
  33. TagName string `json:"tag_name" binding:"Required"`
  34. Message string `json:"message"`
  35. Target string `json:"target"`
  36. }