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 } func (i *IssueWebhookEvent) GetAction() string { return i.Action } func (i *IssueCommentWebhookEvent) GetAction() string { return i.Action }