@@ -15,7 +15,7 @@ import (
15
15
// Timeline represents an event that occurred around an Issue or Pull Request.
16
16
//
17
17
// It is similar to an IssueEvent but may contain more information.
18
- // GitHub API docs: https://docs.github.com/en/free-pro-team@latest/rest/reference/issues/timeline/
18
+ // GitHub API docs: https://docs.github.com/en/developers/webhooks-and-events/events/issue-event-types
19
19
type Timeline struct {
20
20
ID * int64 `json:"id,omitempty"`
21
21
URL * string `json:"url,omitempty"`
@@ -24,6 +24,18 @@ type Timeline struct {
24
24
// The User object that generated the event.
25
25
Actor * User `json:"actor,omitempty"`
26
26
27
+ // The person who commented on the issue.
28
+ User * User `json:"user,omitempty"`
29
+
30
+ // The person who authored the commit.
31
+ Author * CommitAuthor `json:"author,omitempty"`
32
+ // The person who committed the commit on behalf of the author.
33
+ Committer * CommitAuthor `json:"committer,omitempty"`
34
+ // The SHA of the commit in the pull request.
35
+ SHA * string `json:"sha,omitempty"`
36
+ // The commit message.
37
+ Message * string `json:"message,omitempty"`
38
+
27
39
// Event identifies the actual type of Event that occurred. Possible values
28
40
// are:
29
41
//
@@ -111,6 +123,8 @@ type Timeline struct {
111
123
// The User object which was assigned to (or unassigned from) this Issue or
112
124
// Pull Request. Only provided for 'assigned' and 'unassigned' events.
113
125
Assignee * User `json:"assignee,omitempty"`
126
+ Assigner * User `json:"assigner,omitempty"`
127
+
114
128
// The Milestone object including a 'title' attribute.
115
129
// Only provided for 'milestoned' and 'demilestoned' events.
116
130
Milestone * Milestone `json:"milestone,omitempty"`
@@ -125,6 +139,15 @@ type Timeline struct {
125
139
// 'changes_requested' or 'approved'.
126
140
// Only provided for 'reviewed' events.
127
141
State * string `json:"state,omitempty"`
142
+
143
+ // The person requested to review the pull request.
144
+ Reviewer * User `json:"requested_reviewer,omitempty"`
145
+ // The person who requested a review.
146
+ Requester * User `json:"review_requester,omitempty"`
147
+
148
+ // The review summary text.
149
+ Body * string `json:"body,omitempty"`
150
+ SubmittedAt * time.Time `json:"submitted_at,omitempty"`
128
151
}
129
152
130
153
// Source represents a reference's source.
0 commit comments