Skip to content
Permalink
Browse files

Check for the right event in hook

  • Loading branch information...
biilmann authored and brycekahle committed Mar 19, 2018
1 parent 299d46a commit de26496bd2f5a8272b89905f211c9bede10b1ad7
Showing with 3 additions and 0 deletions.
  1. +3 −0 api/hooks.go
@@ -161,6 +161,9 @@ func triggerHook(ctx context.Context, conn *storage.Connection, event HookEvent,
if err != nil {
return errors.Wrapf(err, "Failed to parse Webhook URL")
}
if !config.Webhook.HasEvent(string(event)) {
return nil
}
}

if hookURL == nil {

0 comments on commit de26496

Please sign in to comment.
You can’t perform that action at this time.