Modified assignees field in issue struct for preperation of go-gitea/gitea#1884 (#97)

* Modified assignees field in issue struct for preperation of go-gitea/gitea#1884

* Modified assignees field in pr struct for preperation of go-gitea/gitea#1884

* Re-Added `Assignee`
This commit is contained in:
kolaente 2018-03-06 02:22:45 +01:00 committed by Bo-Yi Wu
parent cdbef99766
commit fa91af7569
2 changed files with 2 additions and 0 deletions

View file

@ -39,6 +39,7 @@ type Issue struct {
Labels []*Label `json:"labels"` Labels []*Label `json:"labels"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
Assignee *User `json:"assignee"` Assignee *User `json:"assignee"`
Assignees []*User `json:"assignees"`
// Whether the issue is open or closed // Whether the issue is open or closed
// //
// type: string // type: string

View file

@ -22,6 +22,7 @@ type PullRequest struct {
Labels []*Label `json:"labels"` Labels []*Label `json:"labels"`
Milestone *Milestone `json:"milestone"` Milestone *Milestone `json:"milestone"`
Assignee *User `json:"assignee"` Assignee *User `json:"assignee"`
Assignees []*User `json:"assignees"`
State StateType `json:"state"` State StateType `json:"state"`
Comments int `json:"comments"` Comments int `json:"comments"`