Merge pull request #28 from rtnpro/parse-github-pull-request-labels

Parse Github pull request labels from pull request payload.
This commit is contained in:
Dean Karn
2018-04-08 09:15:30 -07:00
committed by GitHub
+7
View File
@@ -2791,6 +2791,13 @@ type PullRequestPayload struct {
Type string `json:"type"`
SiteAdmin bool `json:"site_admin"`
} `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 {
Label string `json:"label"`
Ref string `json:"ref"`