Skip to content

Commit

Permalink
chore: merge with main
Browse files Browse the repository at this point in the history
  • Loading branch information
plyr4 committed Nov 5, 2024
1 parent 198e06e commit f7d4723
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions api/webhook/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f7d4723

Please sign in to comment.