Parse Github pull request labels from pull request payload.

This commit is contained in:
Ratnadeep Debnath
2018-04-02 12:14:20 +05:30
parent f2acbcde40
commit 9e4b7fa61b
+7
View File
@@ -2791,6 +2791,13 @@ type PullRequestPayload struct {
Type string `json:"type"` Type string `json:"type"`
SiteAdmin bool `json:"site_admin"` SiteAdmin bool `json:"site_admin"`
} `json:"requested_reviewers,omitempty"` } `json:"requested_reviewers,omitempty"`
Labels []struct {
ID int64 `json:"id"`
URL string `json:"url"`
Name string `json:"name"`
Color string `json:"color"`
Default bool `json:"default"`
} `json:"labels"`
Head struct { Head struct {
Label string `json:"label"` Label string `json:"label"`
Ref string `json:"ref"` Ref string `json:"ref"`