Skip to content

Commit 8db8abb

Browse files
author
Dean Karn
authored
Merge pull request #28 from rtnpro/parse-github-pull-request-labels
Parse Github pull request labels from pull request payload.
2 parents f2acbcd + 9e4b7fa commit 8db8abb

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

github/payload.go

+7
Original file line numberDiff line numberDiff line change
@@ -2791,6 +2791,13 @@ type PullRequestPayload struct {
27912791
Type string `json:"type"`
27922792
SiteAdmin bool `json:"site_admin"`
27932793
} `json:"requested_reviewers,omitempty"`
2794+
Labels []struct {
2795+
ID int64 `json:"id"`
2796+
URL string `json:"url"`
2797+
Name string `json:"name"`
2798+
Color string `json:"color"`
2799+
Default bool `json:"default"`
2800+
} `json:"labels"`
27942801
Head struct {
27952802
Label string `json:"label"`
27962803
Ref string `json:"ref"`

0 commit comments

Comments
 (0)