package provider type WebhookEvent struct { Type string Action string Repository string Ref string IssueNum int PRNum int CommentID int64 Body string Author string } type Provider interface { ParseWebhook(body []byte, secret string) (*WebhookEvent, error) PostComment(owner, repo string, issueOrPR int, body string) error AddReaction(owner, repo string, commentID int64, reaction string) error }