autogits/bots-common/request_issue.go
2024-08-25 21:57:54 +02:00

43 lines
654 B
Go

package common
type IssueDetail struct {
Id int
Number int
Html_url string
User *User
Title string
Body string
State string
Assignee *User
Assignees []*User
}
type IssueWebhookEvent struct {
Action string
Issue *IssueDetail
Repository *Repository
Sender *User
}
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
}