2024-08-24 16:47:39 +02:00
|
|
|
package common
|
|
|
|
|
2024-08-24 17:20:46 +02:00
|
|
|
type CreateWebhookEvent struct {
|
2024-08-24 16:47:39 +02:00
|
|
|
Sha string
|
|
|
|
Ref string // name of tag/branch
|
|
|
|
Ref_type string // tag, branch
|
|
|
|
|
2024-08-27 11:42:48 +02:00
|
|
|
Repository *Repository
|
|
|
|
Sender *User
|
2024-08-24 16:47:39 +02:00
|
|
|
}
|
2024-08-28 00:45:47 +02:00
|
|
|
|
|
|
|
func (c *CreateWebhookEvent) GetAction() string {
|
|
|
|
return c.Ref_type
|
|
|
|
}
|
|
|
|
|