release.go 662 B

12345678910111213141516171819202122
  1. // Copyright 2017 The Gogs 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 gogs
  5. import (
  6. "time"
  7. )
  8. // Release represents a release API object.
  9. type Release struct {
  10. ID int64 `json:"id"`
  11. TagName string `json:"tag_name"`
  12. TargetCommitish string `json:"target_commitish"`
  13. Name string `json:"name"`
  14. Body string `json:"body"`
  15. Draft bool `json:"draft"`
  16. Prerelease bool `json:"prerelease"`
  17. Author *User `json:"author"`
  18. Created time.Time `json:"created_at"`
  19. }