.
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
|
org = issue.Repository.Owner
|
||||||
extraAction = issue.Action
|
extraAction = issue.Action
|
||||||
|
|
||||||
case "issue_comment":
|
case "issue_comment", "pull_request_comment":
|
||||||
issue := common.IssueCommentWebhookEvent{}
|
issue := common.IssueCommentWebhookEvent{}
|
||||||
if err = json.Unmarshal(data, &issue); err != nil {
|
if err = json.Unmarshal(data, &issue); err != nil {
|
||||||
return
|
return
|
||||||
@ -245,6 +245,8 @@ func parseRequestJSON(reqType string, data []byte) (org *common.Organization, ex
|
|||||||
org = issue.Repository.Owner
|
org = issue.Repository.Owner
|
||||||
extraAction = issue.Action
|
extraAction = issue.Action
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
// TODO: package and wiki
|
// TODO: package and wiki
|
||||||
err = fmt.Errorf("Unknown webhook request type: %s", reqType)
|
err = fmt.Errorf("Unknown webhook request type: %s", reqType)
|
||||||
|
Loading…
Reference in New Issue
Block a user