.
This commit is contained in:
parent
26ce19dd2e
commit
4146290df8
@ -245,6 +245,20 @@ 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 "pull_request_review_rejected", "pull_request_review_approved":
|
||||||
|
issue := common.PullRequestWebhookEvent{}
|
||||||
|
if err = json.Unmarshal(data, &issue); err != nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
switch issue.Action {
|
||||||
|
case "reviewed":
|
||||||
|
break
|
||||||
|
default:
|
||||||
|
err = fmt.Errorf("Unknown PR Assign webhook action type: %s", issue.Action)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
org = issue.Repository.Owner
|
||||||
|
extraAction = issue.Action
|
||||||
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
Loading…
Reference in New Issue
Block a user