This commit is contained in:
Adam Majer 2024-08-26 13:23:30 +02:00
parent 7cddc37fda
commit 26ce19dd2e

View File

@ -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)