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)