Add Assignees struct to IssuesPayload as well

This commit is contained in:
Pieter Lexis
2018-11-05 14:39:37 +01:00
parent dfc330f6eb
commit b3a5a8edf7
+20 -18
View File
@@ -1109,15 +1109,16 @@ type IssueCommentPayload struct {
Name string `json:"name"` Name string `json:"name"`
Color string `json:"color"` Color string `json:"color"`
} `json:"labels"` } `json:"labels"`
State string `json:"state"` State string `json:"state"`
Locked bool `json:"locked"` Locked bool `json:"locked"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Milestone *Milestone `json:"milestone"` Assignees []*Assignee `json:"assignees"`
Comments int64 `json:"comments"` Milestone *Milestone `json:"milestone"`
CreatedAt time.Time `json:"created_at"` Comments int64 `json:"comments"`
UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"`
ClosedAt *time.Time `json:"closed_at"` UpdatedAt time.Time `json:"updated_at"`
Body string `json:"body"` ClosedAt *time.Time `json:"closed_at"`
Body string `json:"body"`
} `json:"issue"` } `json:"issue"`
Comment struct { Comment struct {
URL string `json:"url"` URL string `json:"url"`
@@ -1294,15 +1295,16 @@ type IssuesPayload struct {
Color string `json:"color"` Color string `json:"color"`
Default bool `json:"default"` Default bool `json:"default"`
} `json:"labels"` } `json:"labels"`
State string `json:"state"` State string `json:"state"`
Locked bool `json:"locked"` Locked bool `json:"locked"`
Assignee *Assignee `json:"assignee"` Assignee *Assignee `json:"assignee"`
Milestone *Milestone `json:"milestone"` Assignees []*Assignee `json:"assignees"`
Comments int64 `json:"comments"` Milestone *Milestone `json:"milestone"`
CreatedAt time.Time `json:"created_at"` Comments int64 `json:"comments"`
UpdatedAt time.Time `json:"updated_at"` CreatedAt time.Time `json:"created_at"`
ClosedAt *time.Time `json:"closed_at"` UpdatedAt time.Time `json:"updated_at"`
Body string `json:"body"` ClosedAt *time.Time `json:"closed_at"`
Body string `json:"body"`
} `json:"issue"` } `json:"issue"`
Repository struct { Repository struct {
ID int64 `json:"id"` ID int64 `json:"id"`