Select the types of activity you want to include in your feed.
Fix incorrect `HookEventType` of pull request review comments (#23650)
`HookEventType` of pull request review comments should be
`HookEventPullRequestReviewComment` but some event types are
`HookEventPullRequestComment` now.
···264264 case issues_model.ReviewTypeApprove:
265265 reviewHookType = webhook_module.HookEventPullRequestReviewApproved
266266 case issues_model.ReviewTypeComment:
267267- reviewHookType = webhook_module.HookEventPullRequestComment
267267+ reviewHookType = webhook_module.HookEventPullRequestReviewComment
268268 case issues_model.ReviewTypeReject:
269269 reviewHookType = webhook_module.HookEventPullRequestReviewRejected
270270 default:
+2-2
services/webhook/discord.go
···209209 color = greenColor
210210 case webhook_module.HookEventPullRequestReviewRejected:
211211 color = redColor
212212- case webhook_module.HookEventPullRequestComment:
212212+ case webhook_module.HookEventPullRequestReviewComment:
213213 color = greyColor
214214 default:
215215 color = yellowColor
···277277 return "approved", nil
278278 case webhook_module.HookEventPullRequestReviewRejected:
279279 return "rejected", nil
280280- case webhook_module.HookEventPullRequestComment:
280280+ case webhook_module.HookEventPullRequestReviewComment:
281281 return "comment", nil
282282283283 default:
+1-1
services/webhook/msteams.go
···223223 color = greenColor
224224 case webhook_module.HookEventPullRequestReviewRejected:
225225 color = redColor
226226- case webhook_module.HookEventPullRequestComment:
226226+ case webhook_module.HookEventPullRequestReviewComment:
227227 color = greyColor
228228 default:
229229 color = yellowColor
+1-1
services/webhook/notifier.go
···685685 case issues_model.ReviewTypeApprove:
686686 reviewHookType = webhook_module.HookEventPullRequestReviewApproved
687687 case issues_model.ReviewTypeComment:
688688- reviewHookType = webhook_module.HookEventPullRequestComment
688688+ reviewHookType = webhook_module.HookEventPullRequestReviewComment
689689 case issues_model.ReviewTypeReject:
690690 reviewHookType = webhook_module.HookEventPullRequestReviewRejected
691691 default: