autogits/bots-common/request_issue.go

52 lines
800 B
Go
Raw Normal View History

2024-08-24 22:03:30 +02:00
package common
type IssueDetail struct {
Id int
Number int
Html_url string
User *User
Title string
Body string
State string
2024-08-25 21:47:05 +02:00
Assignee *User
Assignees []*User
2024-08-24 22:03:30 +02:00
}
type IssueWebhookEvent struct {
Action string
Issue *IssueDetail
Repository *Repository
Sender *User
}
2024-08-25 21:57:54 +02:00
type CommentDetail struct {
Id int
Issue_Url string
Pull_Request_Url string
User *User
Body string
Created_At string
Updated_At string
}
type IssueCommentWebhookEvent struct {
Action string
Issue *IssueDetail
Comment *CommentDetail
Repository *Repository
Sender *User
}
2024-08-28 00:45:47 +02:00
func (i *IssueWebhookEvent) GetAction() string {
return i.Action
}
func (i *IssueCommentWebhookEvent) GetAction() string {
return i.Action
}