Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

issue_milestone.go 1.1KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. // Copyright 2016 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 structs
  5. import (
  6. "time"
  7. )
  8. // Milestone milestone is a collection of issues on one repository
  9. type Milestone struct {
  10. ID int64 `json:"id"`
  11. Title string `json:"title"`
  12. Description string `json:"description"`
  13. State StateType `json:"state"`
  14. OpenIssues int `json:"open_issues"`
  15. ClosedIssues int `json:"closed_issues"`
  16. // swagger:strfmt date-time
  17. Closed *time.Time `json:"closed_at"`
  18. // swagger:strfmt date-time
  19. Deadline *time.Time `json:"due_on"`
  20. }
  21. // CreateMilestoneOption options for creating a milestone
  22. type CreateMilestoneOption struct {
  23. Title string `json:"title"`
  24. Description string `json:"description"`
  25. // swagger:strfmt date-time
  26. Deadline *time.Time `json:"due_on"`
  27. }
  28. // EditMilestoneOption options for editing a milestone
  29. type EditMilestoneOption struct {
  30. Title string `json:"title"`
  31. Description *string `json:"description"`
  32. State *string `json:"state"`
  33. Deadline *time.Time `json:"due_on"`
  34. }