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.

31 lines
704 B

  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 base
  5. import "time"
  6. // ReleaseAsset represents a release asset
  7. type ReleaseAsset struct {
  8. URL string
  9. Name string
  10. ContentType *string
  11. Size *int
  12. DownloadCount *int
  13. Created time.Time
  14. Updated time.Time
  15. }
  16. // Release represents a release
  17. type Release struct {
  18. TagName string
  19. TargetCommitish string
  20. Name string
  21. Body string
  22. Draft bool
  23. Prerelease bool
  24. Assets []ReleaseAsset
  25. Created time.Time
  26. Published time.Time
  27. }