Skip to content

Commit 1b6492c

Browse files
author
Dean Karn
authored
Merge pull request #26 from kuiro5/add-requested-reviewers
Add RequestedReviewers to PullRequestPayload
2 parents b6e930d + ea44f69 commit 1b6492c

File tree

1 file changed

+33
-14
lines changed

1 file changed

+33
-14
lines changed

github/payload.go

+33-14
Original file line numberDiff line numberDiff line change
@@ -2759,20 +2759,39 @@ type PullRequestPayload struct {
27592759
Type string `json:"type"`
27602760
SiteAdmin bool `json:"site_admin"`
27612761
} `json:"user"`
2762-
Body string `json:"body"`
2763-
CreatedAt time.Time `json:"created_at"`
2764-
UpdatedAt time.Time `json:"updated_at"`
2765-
ClosedAt *time.Time `json:"closed_at"`
2766-
MergedAt *time.Time `json:"merged_at"`
2767-
MergeCommitSha *string `json:"merge_commit_sha"`
2768-
Assignee *Assignee `json:"assignee"`
2769-
Milestone *Milestone `json:"milestone"`
2770-
CommitsURL string `json:"commits_url"`
2771-
ReviewCommentsURL string `json:"review_comments_url"`
2772-
ReviewCommentURL string `json:"review_comment_url"`
2773-
CommentsURL string `json:"comments_url"`
2774-
StatusesURL string `json:"statuses_url"`
2775-
Head struct {
2762+
Body string `json:"body"`
2763+
CreatedAt time.Time `json:"created_at"`
2764+
UpdatedAt time.Time `json:"updated_at"`
2765+
ClosedAt *time.Time `json:"closed_at"`
2766+
MergedAt *time.Time `json:"merged_at"`
2767+
MergeCommitSha *string `json:"merge_commit_sha"`
2768+
Assignee *Assignee `json:"assignee"`
2769+
Milestone *Milestone `json:"milestone"`
2770+
CommitsURL string `json:"commits_url"`
2771+
ReviewCommentsURL string `json:"review_comments_url"`
2772+
ReviewCommentURL string `json:"review_comment_url"`
2773+
CommentsURL string `json:"comments_url"`
2774+
StatusesURL string `json:"statuses_url"`
2775+
RequestedReviewers []struct {
2776+
Login string `json:"login"`
2777+
ID int `json:"id"`
2778+
AvatarURL string `json:"avatar_url"`
2779+
GravatarID string `json:"gravatar_id"`
2780+
URL string `json:"url"`
2781+
HTMLURL string `json:"html_url"`
2782+
FollowersURL string `json:"followers_url"`
2783+
FollowingURL string `json:"following_url"`
2784+
GistsURL string `json:"gists_url"`
2785+
StarredURL string `json:"starred_url"`
2786+
SubscriptionsURL string `json:"subscriptions_url"`
2787+
OrganizationsURL string `json:"organizations_url"`
2788+
ReposURL string `json:"repos_url"`
2789+
EventsURL string `json:"events_url"`
2790+
ReceivedEventsURL string `json:"received_events_url"`
2791+
Type string `json:"type"`
2792+
SiteAdmin bool `json:"site_admin"`
2793+
} `json:"requested_reviewers,omitempty"`
2794+
Head struct {
27762795
Label string `json:"label"`
27772796
Ref string `json:"ref"`
27782797
Sha string `json:"sha"`

0 commit comments

Comments
 (0)