From 26ce19dd2e85cfa52dcd1e5d0baa1a7aed320c489cb8dc24626865108471a574 Mon Sep 17 00:00:00 2001 From: Adam Majer Date: Mon, 26 Aug 2024 13:23:30 +0200 Subject: [PATCH] . --- gitea-events-rabbitmq-publisher/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gitea-events-rabbitmq-publisher/main.go b/gitea-events-rabbitmq-publisher/main.go index 6367df9..6f1b10a 100644 --- a/gitea-events-rabbitmq-publisher/main.go +++ b/gitea-events-rabbitmq-publisher/main.go @@ -125,7 +125,7 @@ func parseRequestJSON(reqType string, data []byte) (org *common.Organization, ex org = issue.Repository.Owner extraAction = issue.Action - case "issue_comment": + case "issue_comment", "pull_request_comment": issue := common.IssueCommentWebhookEvent{} if err = json.Unmarshal(data, &issue); err != nil { return @@ -245,6 +245,8 @@ func parseRequestJSON(reqType string, data []byte) (org *common.Organization, ex org = issue.Repository.Owner extraAction = issue.Action + + default: // TODO: package and wiki err = fmt.Errorf("Unknown webhook request type: %s", reqType)