Skip to content

Commit 0b47475

Browse files
authored
Add support for review events (#1643)
1 parent 76c3c3d commit 0b47475

2 files changed

Lines changed: 31 additions & 9 deletions

File tree

‎github/github-accessors.go‎

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎github/issues_events.go‎

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,27 @@ type IssueEvent struct {
6565
// review_dismissed
6666
// The review was dismissed and `DismissedReview` will be populated below.
6767
//
68+
// review_requested, review_request_removed
69+
// The Actor requested or removed the request for a review.
70+
// RequestedReviewer and ReviewRequester will be populated below.
71+
//
6872
Event *string `json:"event,omitempty"`
6973

7074
CreatedAt *time.Time `json:"created_at,omitempty"`
7175
Issue *Issue `json:"issue,omitempty"`
7276

7377
// Only present on certain events; see above.
74-
Assignee *User `json:"assignee,omitempty"`
75-
Assigner *User `json:"assigner,omitempty"`
76-
CommitID *string `json:"commit_id,omitempty"`
77-
Milestone *Milestone `json:"milestone,omitempty"`
78-
Label *Label `json:"label,omitempty"`
79-
Rename *Rename `json:"rename,omitempty"`
80-
LockReason *string `json:"lock_reason,omitempty"`
81-
ProjectCard *ProjectCard `json:"project_card,omitempty"`
82-
DismissedReview *DismissedReview `json:"dismissed_review,omitempty"`
78+
Assignee *User `json:"assignee,omitempty"`
79+
Assigner *User `json:"assigner,omitempty"`
80+
CommitID *string `json:"commit_id,omitempty"`
81+
Milestone *Milestone `json:"milestone,omitempty"`
82+
Label *Label `json:"label,omitempty"`
83+
Rename *Rename `json:"rename,omitempty"`
84+
LockReason *string `json:"lock_reason,omitempty"`
85+
ProjectCard *ProjectCard `json:"project_card,omitempty"`
86+
DismissedReview *DismissedReview `json:"dismissed_review,omitempty"`
87+
RequestedReviewer *User `json:"requested_reviewer,omitempty"`
88+
ReviewRequester *User `json:"review_requester,omitempty"`
8389
}
8490

8591
// DismissedReview represents details for 'dismissed_review' events.

0 commit comments

Comments
 (0)