diff --git a/bitbucket/bitbucket.go b/bitbucket/bitbucket.go index 4fa5929..680582b 100644 --- a/bitbucket/bitbucket.go +++ b/bitbucket/bitbucket.go @@ -43,7 +43,7 @@ const ( PullRequestDeclinedEvent Event = "pullrequest:rejected" PullRequestCommentCreatedEvent Event = "pullrequest:comment_created" PullRequestCommentUpdatedEvent Event = "pullrequest:comment_updated" - PullRequestCommentDeletedEvent Event = "pull_request:comment_deleted" + PullRequestCommentDeletedEvent Event = "pullrequest:comment_deleted" ) // New creates and returns a WebHook instance denoted by the Provider type diff --git a/gogs/gogs.go b/gogs/gogs.go index 180c9ce..d5d57da 100644 --- a/gogs/gogs.go +++ b/gogs/gogs.go @@ -108,10 +108,6 @@ func (hook Webhook) ParsePayload(w http.ResponseWriter, r *http.Request) { expectedMAC := hex.EncodeToString(mac.Sum(nil)) if !hmac.Equal([]byte(signature), []byte(expectedMAC)) { - webhooks.DefaultLog.Error("HMAC verification failed") - webhooks.DefaultLog.Debug("LocalHMAC:" + expectedMAC) - webhooks.DefaultLog.Debug("RemoteHMAC:" + signature) - webhooks.DefaultLog.Debug("Secret:" + hook.secret) webhooks.DefaultLog.Debug(string(payload)) http.Error(w, "403 Forbidden - HMAC verification failed", http.StatusForbidden) return