24 lines
396 B
Go
24 lines
396 B
Go
package common
|
|
|
|
type ReleaseWebhookDetail struct {
|
|
Tag_name string
|
|
Name string
|
|
Body string
|
|
Draft bool
|
|
Author *User
|
|
Created_at string
|
|
Published_at string
|
|
}
|
|
|
|
type ReleaseWebhookEvent struct {
|
|
Action string
|
|
|
|
Release ReleaseWebhookDetail
|
|
Repository *Repository
|
|
Sender *User
|
|
}
|
|
|
|
func (r *ReleaseWebhookEvent) GetAction() string {
|
|
return r.Action
|
|
}
|