diff --git a/github/github-accessors.go b/github/github-accessors.go index abd2a0fe2f4..2c6c05a16bb 100644 --- a/github/github-accessors.go +++ b/github/github-accessors.go @@ -10388,6 +10388,22 @@ func (s *Source) GetID() int64 { return *s.ID } +// GetIssue returns the Issue field. +func (s *Source) GetIssue() *Issue { + if s == nil { + return nil + } + return s.Issue +} + +// GetType returns the Type field if it's non-nil, zero value otherwise. +func (s *Source) GetType() string { + if s == nil || s.Type == nil { + return "" + } + return *s.Type +} + // GetURL returns the URL field if it's non-nil, zero value otherwise. func (s *Source) GetURL() string { if s == nil || s.URL == nil { diff --git a/github/issues_timeline.go b/github/issues_timeline.go index 5987bd06aab..d0e4a3a9428 100644 --- a/github/issues_timeline.go +++ b/github/issues_timeline.go @@ -125,6 +125,8 @@ type Source struct { ID *int64 `json:"id,omitempty"` URL *string `json:"url,omitempty"` Actor *User `json:"actor,omitempty"` + Type *string `json:"type,omitempty"` + Issue *Issue `json:"issue,omitempty"` } // ListIssueTimeline lists events for the specified issue.