Add Label to issuespayload (#58)

This commit is contained in:
Manjunath A Kumatagi
2019-02-12 20:20:05 +05:30
committed by Dean Karn
parent dee47c0482
commit b2ca22db96
+10
View File
@@ -1493,6 +1493,7 @@ type IssuesPayload struct {
SiteAdmin bool `json:"site_admin"`
} `json:"sender"`
Assignee *Assignee `json:"assignee"`
Label *Label `json:"label"`
}
// LabelPayload contains the information for GitHub's label hook event
@@ -5187,3 +5188,12 @@ type Parent struct {
URL string `json:"url"`
Sha string `json:"sha"`
}
// Label contains Issue's Label information
type Label struct {
ID int64 `json:"id"`
URL string `json:"url"`
Name string `json:"name"`
Color string `json:"color"`
Default bool `json:"default"`
}