diff --git a/github/event_types.go b/github/event_types.go index 8ba922a2b74..d3e2123547d 100644 --- a/github/event_types.go +++ b/github/event_types.go @@ -707,6 +707,7 @@ type PushEventRepository struct { PushedAt *Timestamp `json:"pushed_at,omitempty"` UpdatedAt *Timestamp `json:"updated_at,omitempty"` Homepage *string `json:"homepage,omitempty"` + PullsURL *string `json:"pulls_url,omitempty"` Size *int `json:"size,omitempty"` StargazersCount *int `json:"stargazers_count,omitempty"` WatchersCount *int `json:"watchers_count,omitempty"` diff --git a/github/github-accessors.go b/github/github-accessors.go index 13e60abb843..7c89cb60d0b 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -8860,6 +8860,14 @@ func (p *PushEventRepository) GetPrivate() bool { return *p.Private } +// GetPullsURL returns the PullsURL field if it's non-nil, zero value otherwise. +func (p *PushEventRepository) GetPullsURL() string { + if p == nil || p.PullsURL == nil { + return "" + } + return *p.PullsURL +} + // GetPushedAt returns the PushedAt field if it's non-nil, zero value otherwise. func (p *PushEventRepository) GetPushedAt() Timestamp { if p == nil || p.PushedAt == nil {