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.2KB

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