Skip to content

Commit b2ca22d

Browse files
mkumatagDean Karn
authored andcommitted
Add Label to issuespayload (#58)
1 parent dee47c0 commit b2ca22d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

github/payload.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,7 @@ type IssuesPayload struct {
14931493
SiteAdmin bool `json:"site_admin"`
14941494
} `json:"sender"`
14951495
Assignee *Assignee `json:"assignee"`
1496+
Label *Label `json:"label"`
14961497
}
14971498

14981499
// LabelPayload contains the information for GitHub's label hook event
@@ -5187,3 +5188,12 @@ type Parent struct {
51875188
URL string `json:"url"`
51885189
Sha string `json:"sha"`
51895190
}
5191+
5192+
// Label contains Issue's Label information
5193+
type Label struct {
5194+
ID int64 `json:"id"`
5195+
URL string `json:"url"`
5196+
Name string `json:"name"`
5197+
Color string `json:"color"`
5198+
Default bool `json:"default"`
5199+
}

0 commit comments

Comments
 (0)