Skip to content

Commit cdc59eb

Browse files
author
Dean Karn
authored
Merge pull request #51 from pieterlexis/add-assignees
GitHub Payloads: Add `Assignees` where needed
2 parents 24279cc + a39ebc1 commit cdc59eb

File tree

1 file changed

+28
-26
lines changed

1 file changed

+28
-26
lines changed

github/payload.go

Lines changed: 28 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2757,19 +2757,20 @@ type PullRequestPayload struct {
27572757
Type string `json:"type"`
27582758
SiteAdmin bool `json:"site_admin"`
27592759
} `json:"user"`
2760-
Body string `json:"body"`
2761-
CreatedAt time.Time `json:"created_at"`
2762-
UpdatedAt time.Time `json:"updated_at"`
2763-
ClosedAt *time.Time `json:"closed_at"`
2764-
MergedAt *time.Time `json:"merged_at"`
2765-
MergeCommitSha *string `json:"merge_commit_sha"`
2766-
Assignee *Assignee `json:"assignee"`
2767-
Milestone *Milestone `json:"milestone"`
2768-
CommitsURL string `json:"commits_url"`
2769-
ReviewCommentsURL string `json:"review_comments_url"`
2770-
ReviewCommentURL string `json:"review_comment_url"`
2771-
CommentsURL string `json:"comments_url"`
2772-
StatusesURL string `json:"statuses_url"`
2760+
Body string `json:"body"`
2761+
CreatedAt time.Time `json:"created_at"`
2762+
UpdatedAt time.Time `json:"updated_at"`
2763+
ClosedAt *time.Time `json:"closed_at"`
2764+
MergedAt *time.Time `json:"merged_at"`
2765+
MergeCommitSha *string `json:"merge_commit_sha"`
2766+
Assignee *Assignee `json:"assignee"`
2767+
Assignees []*Assignee `json:"assignees"`
2768+
Milestone *Milestone `json:"milestone"`
2769+
CommitsURL string `json:"commits_url"`
2770+
ReviewCommentsURL string `json:"review_comments_url"`
2771+
ReviewCommentURL string `json:"review_comment_url"`
2772+
CommentsURL string `json:"comments_url"`
2773+
StatusesURL string `json:"statuses_url"`
27732774
RequestedReviewers []struct {
27742775
Login string `json:"login"`
27752776
ID int `json:"id"`
@@ -3694,19 +3695,20 @@ type PullRequestReviewCommentPayload struct {
36943695
Type string `json:"type"`
36953696
SiteAdmin bool `json:"site_admin"`
36963697
} `json:"user"`
3697-
Body string `json:"body"`
3698-
CreatedAt time.Time `json:"created_at"`
3699-
UpdatedAt time.Time `json:"updated_at"`
3700-
ClosedAt *time.Time `json:"closed_at"`
3701-
MergedAt *time.Time `json:"merged_at"`
3702-
MergeCommitSha string `json:"merge_commit_sha"`
3703-
Assignee *Assignee `json:"assignee"`
3704-
Milestone *Milestone `json:"milestone"`
3705-
CommitsURL string `json:"commits_url"`
3706-
ReviewCommentsURL string `json:"review_comments_url"`
3707-
ReviewCommentURL string `json:"review_comment_url"`
3708-
CommentsURL string `json:"comments_url"`
3709-
StatusesURL string `json:"statuses_url"`
3698+
Body string `json:"body"`
3699+
CreatedAt time.Time `json:"created_at"`
3700+
UpdatedAt time.Time `json:"updated_at"`
3701+
ClosedAt *time.Time `json:"closed_at"`
3702+
MergedAt *time.Time `json:"merged_at"`
3703+
MergeCommitSha string `json:"merge_commit_sha"`
3704+
Assignee *Assignee `json:"assignee"`
3705+
Assignees []*Assignee `json:"assignees"`
3706+
Milestone *Milestone `json:"milestone"`
3707+
CommitsURL string `json:"commits_url"`
3708+
ReviewCommentsURL string `json:"review_comments_url"`
3709+
ReviewCommentURL string `json:"review_comment_url"`
3710+
CommentsURL string `json:"comments_url"`
3711+
StatusesURL string `json:"statuses_url"`
37103712
Head struct {
37113713
Label string `json:"label"`
37123714
Ref string `json:"ref"`

0 commit comments

Comments
 (0)