Skip to content

Commit d09e464

Browse files
feat: Adding 'repo' and 'action' in issues_event
1 parent 3bb05c2 commit d09e464

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

github/issues_events.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ type IssueEvent struct {
1818
// The User that generated this event.
1919
Actor *User `json:"actor,omitempty"`
2020

21+
// The action corresponding to the event.
22+
Action string `json:"action,omitempty"`
23+
2124
// Event identifies the actual type of Event that occurred. Possible
2225
// values are:
2326
//
@@ -74,6 +77,7 @@ type IssueEvent struct {
7477
Issue *Issue `json:"issue,omitempty"`
7578

7679
// Only present on certain events; see above.
80+
Repository *Repository `json:"repository,omitempty"`
7781
Assignee *User `json:"assignee,omitempty"`
7882
Assigner *User `json:"assigner,omitempty"`
7983
CommitID *string `json:"commit_id,omitempty"`

0 commit comments

Comments
 (0)