Merge pull request #52 from pieterlexis/add-assignees-to-issues
Add Assignees struct to IssuesPayload as well
This commit is contained in:
+22
-18
@@ -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"`
|
||||||
@@ -1410,6 +1412,7 @@ type IssuesPayload struct {
|
|||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
SiteAdmin bool `json:"site_admin"`
|
SiteAdmin bool `json:"site_admin"`
|
||||||
} `json:"sender"`
|
} `json:"sender"`
|
||||||
|
Assignee *Assignee `json:"assignee"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LabelPayload contains the information for GitHub's label hook event
|
// LabelPayload contains the information for GitHub's label hook event
|
||||||
@@ -3169,6 +3172,7 @@ type PullRequestPayload struct {
|
|||||||
Type string `json:"type"`
|
Type string `json:"type"`
|
||||||
SiteAdmin bool `json:"site_admin"`
|
SiteAdmin bool `json:"site_admin"`
|
||||||
} `json:"sender"`
|
} `json:"sender"`
|
||||||
|
Assignee *Assignee `json:"assignee"`
|
||||||
Installation struct {
|
Installation struct {
|
||||||
ID int64 `json:"id"`
|
ID int64 `json:"id"`
|
||||||
} `json:"installation"`
|
} `json:"installation"`
|
||||||
|
|||||||
Reference in New Issue
Block a user