From f7d472344004bb24fc98166d7e1c940834fd951f Mon Sep 17 00:00:00 2001 From: davidvader Date: Tue, 5 Nov 2024 09:45:35 -0600 Subject: [PATCH] chore: merge with main --- api/webhook/post.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/api/webhook/post.go b/api/webhook/post.go index 16f96b42e..45889285d 100644 --- a/api/webhook/post.go +++ b/api/webhook/post.go @@ -160,8 +160,6 @@ func PostWebhook(c *gin.Context) { l.Debugf("hook generated from SCM: %v", h) l.Debugf("repo generated from SCM: %v", r) - db := database.FromContext(c) - // if event is repository event, handle separately and return if strings.EqualFold(h.GetEvent(), constants.EventRepository) { r, err = handleRepositoryEvent(ctx, l, db, m, h, r)