autogits/bots-common/request_release.go

24 lines
396 B
Go
Raw Normal View History

2024-08-24 19:42:54 +02:00
package common
type ReleaseWebhookDetail struct {
2024-08-24 21:39:50 +02:00
Tag_name string
Name string
Body string
Draft bool
Author *User
Created_at string
2024-08-24 19:42:54 +02:00
Published_at string
}
type ReleaseWebhookEvent struct {
Action string
2024-08-24 21:39:50 +02:00
Release ReleaseWebhookDetail
Repository *Repository
Sender *User
2024-08-24 19:42:54 +02:00
}
2024-08-28 00:45:47 +02:00
func (r *ReleaseWebhookEvent) GetAction() string {
return r.Action
}