case issues_model.ReviewTypeApprove:
reviewHookType = webhook_module.HookEventPullRequestReviewApproved
case issues_model.ReviewTypeComment:
- reviewHookType = webhook_module.HookEventPullRequestComment
+ reviewHookType = webhook_module.HookEventPullRequestReviewComment
case issues_model.ReviewTypeReject:
reviewHookType = webhook_module.HookEventPullRequestReviewRejected
default:
color = greenColor
case webhook_module.HookEventPullRequestReviewRejected:
color = redColor
- case webhook_module.HookEventPullRequestComment:
+ case webhook_module.HookEventPullRequestReviewComment:
color = greyColor
default:
color = yellowColor
return "approved", nil
case webhook_module.HookEventPullRequestReviewRejected:
return "rejected", nil
- case webhook_module.HookEventPullRequestComment:
+ case webhook_module.HookEventPullRequestReviewComment:
return "comment", nil
default:
color = greenColor
case webhook_module.HookEventPullRequestReviewRejected:
color = redColor
- case webhook_module.HookEventPullRequestComment:
+ case webhook_module.HookEventPullRequestReviewComment:
color = greyColor
default:
color = yellowColor
case issues_model.ReviewTypeApprove:
reviewHookType = webhook_module.HookEventPullRequestReviewApproved
case issues_model.ReviewTypeComment:
- reviewHookType = webhook_module.HookEventPullRequestComment
+ reviewHookType = webhook_module.HookEventPullRequestReviewComment
case issues_model.ReviewTypeReject:
reviewHookType = webhook_module.HookEventPullRequestReviewRejected
default: