Skip to content

Commit 9bb0bbb

Browse files
committed
use HookEventPullRequestReviewComment
1 parent e7f0bcf commit 9bb0bbb

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

services/actions/notifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@ func (n *actionsNotifier) NotifyPullRequestReview(ctx context.Context, pr *issue
264264
case issues_model.ReviewTypeApprove:
265265
reviewHookType = webhook_module.HookEventPullRequestReviewApproved
266266
case issues_model.ReviewTypeComment:
267-
reviewHookType = webhook_module.HookEventPullRequestComment
267+
reviewHookType = webhook_module.HookEventPullRequestReviewComment
268268
case issues_model.ReviewTypeReject:
269269
reviewHookType = webhook_module.HookEventPullRequestReviewRejected
270270
default:

services/webhook/discord.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ func (d *DiscordPayload) Review(p *api.PullRequestPayload, event webhook_module.
209209
color = greenColor
210210
case webhook_module.HookEventPullRequestReviewRejected:
211211
color = redColor
212-
case webhook_module.HookEventPullRequestComment:
212+
case webhook_module.HookEventPullRequestReviewComment:
213213
color = greyColor
214214
default:
215215
color = yellowColor
@@ -277,7 +277,7 @@ func parseHookPullRequestEventType(event webhook_module.HookEventType) (string,
277277
return "approved", nil
278278
case webhook_module.HookEventPullRequestReviewRejected:
279279
return "rejected", nil
280-
case webhook_module.HookEventPullRequestComment:
280+
case webhook_module.HookEventPullRequestReviewComment:
281281
return "comment", nil
282282

283283
default:

services/webhook/msteams.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ func (m *MSTeamsPayload) Review(p *api.PullRequestPayload, event webhook_module.
223223
color = greenColor
224224
case webhook_module.HookEventPullRequestReviewRejected:
225225
color = redColor
226-
case webhook_module.HookEventPullRequestComment:
226+
case webhook_module.HookEventPullRequestReviewComment:
227227
color = greyColor
228228
default:
229229
color = yellowColor

services/webhook/notifier.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -685,7 +685,7 @@ func (m *webhookNotifier) NotifyPullRequestReview(ctx context.Context, pr *issue
685685
case issues_model.ReviewTypeApprove:
686686
reviewHookType = webhook_module.HookEventPullRequestReviewApproved
687687
case issues_model.ReviewTypeComment:
688-
reviewHookType = webhook_module.HookEventPullRequestComment
688+
reviewHookType = webhook_module.HookEventPullRequestReviewComment
689689
case issues_model.ReviewTypeReject:
690690
reviewHookType = webhook_module.HookEventPullRequestReviewRejected
691691
default:

0 commit comments

Comments
 (0)