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

1234567891011121314151617181920212223242526272829303132
  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. 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. }