Skip to content

Commit

Permalink
Add missing fields to Star event (#1869)
Browse files Browse the repository at this point in the history
Fixes: #1868.
  • Loading branch information
jloh committed May 7, 2021
1 parent b3962ed commit 85c1b28
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 0 deletions.
5 changes: 5 additions & 0 deletions github/event_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,11 @@ type StarEvent struct {

// StarredAt is the time the star was created. It will be null for the "deleted" action.
StarredAt *Timestamp `json:"starred_at,omitempty"`

// The following fields are only populated by Webhook events.
Org *Organization `json:"organization,omitempty"`
Repo *Repository `json:"repository,omitempty"`
Sender *User `json:"sender,omitempty"`
}

// StatusEvent is triggered when the status of a Git commit changes.
Expand Down
24 changes: 24 additions & 0 deletions github/github-accessors.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions github/github-accessors_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 85c1b28

Please sign in to comment.