package common type CreateWebhookEvent struct { Sha string Ref string // name of tag/branch Ref_type string // tag, branch Repository *Repository Sender *User } func (c *CreateWebhookEvent) GetAction() string { return c.Ref_type }