Add Label to issuespayload (#58)
This commit is contained in:
committed by
Dean Karn
parent
dee47c0482
commit
b2ca22db96
@@ -1493,6 +1493,7 @@ type IssuesPayload struct {
|
|||||||
SiteAdmin bool `json:"site_admin"`
|
SiteAdmin bool `json:"site_admin"`
|
||||||
} `json:"sender"`
|
} `json:"sender"`
|
||||||
Assignee *Assignee `json:"assignee"`
|
Assignee *Assignee `json:"assignee"`
|
||||||
|
Label *Label `json:"label"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// LabelPayload contains the information for GitHub's label hook event
|
// LabelPayload contains the information for GitHub's label hook event
|
||||||
@@ -5187,3 +5188,12 @@ type Parent struct {
|
|||||||
URL string `json:"url"`
|
URL string `json:"url"`
|
||||||
Sha string `json:"sha"`
|
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"`
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user