From 99f490ca89959fed0d0de2740431024ca67fc222 Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Wed, 29 Jan 2025 21:41:08 -0800 Subject: [PATCH] revert unnecessary change --- routers/api/v1/utils/hook.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/api/v1/utils/hook.go b/routers/api/v1/utils/hook.go index eea69a09cf..2ad9eeb0ec 100644 --- a/routers/api/v1/utils/hook.go +++ b/routers/api/v1/utils/hook.go @@ -198,6 +198,7 @@ func addHook(ctx *context.APIContext, form *api.CreateHookOption, ownerID, repoI webhook_module.HookEventPullRequestAssign: pullHook(form.Events, string(webhook_module.HookEventPullRequestAssign)), webhook_module.HookEventPullRequestLabel: pullHook(form.Events, string(webhook_module.HookEventPullRequestLabel)), webhook_module.HookEventPullRequestMilestone: pullHook(form.Events, string(webhook_module.HookEventPullRequestMilestone)), + webhook_module.HookEventPullRequestComment: pullHook(form.Events, string(webhook_module.HookEventPullRequestComment)), webhook_module.HookEventPullRequestReview: pullHook(form.Events, "pull_request_review"), webhook_module.HookEventPullRequestReviewRequest: pullHook(form.Events, string(webhook_module.HookEventPullRequestReviewRequest)), webhook_module.HookEventPullRequestSync: pullHook(form.Events, string(webhook_module.HookEventPullRequestSync)),