I would like to use an interface for this event in a local implementation, but unfortunately a getter for this type doesn't exist. Can we create a getter for PushEvent.GetCommits?
type PushEvent struct {
...
Commits []*HeadCommit
...
}
func (p *PushEvent) GetCommits() []*HeadCommit {
return p.Commits
}