.
This commit is contained in:
parent
7cddc37fda
commit
26ce19dd2e
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user