-
-
-
-
- package structs
-
- import (
- "time"
- )
-
-
- type Milestone struct {
- ID int64 `json:"id"`
- Title string `json:"title"`
- Description string `json:"description"`
- State StateType `json:"state"`
- OpenIssues int `json:"open_issues"`
- ClosedIssues int `json:"closed_issues"`
-
- Closed *time.Time `json:"closed_at"`
-
- Deadline *time.Time `json:"due_on"`
- }
-
-
- type CreateMilestoneOption struct {
- Title string `json:"title"`
- Description string `json:"description"`
-
- Deadline *time.Time `json:"due_on"`
- }
-
-
- type EditMilestoneOption struct {
- Title string `json:"title"`
- Description *string `json:"description"`
- State *string `json:"state"`
- Deadline *time.Time `json:"due_on"`
- }
|