autogits/bots-common/request_release.go
2024-08-28 00:45:47 +02:00

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
}