Skip to content

Commit 3e1bb69

Browse files
author
奶爸
committed
fix merge issue
1 parent c9c9d98 commit 3e1bb69

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

bitbucket/bitbucket.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ const (
4343
PullRequestDeclinedEvent Event = "pullrequest:rejected"
4444
PullRequestCommentCreatedEvent Event = "pullrequest:comment_created"
4545
PullRequestCommentUpdatedEvent Event = "pullrequest:comment_updated"
46-
PullRequestCommentDeletedEvent Event = "pull_request:comment_deleted"
46+
PullRequestCommentDeletedEvent Event = "pullrequest:comment_deleted"
4747
)
4848

4949
// New creates and returns a WebHook instance denoted by the Provider type

gogs/gogs.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,6 @@ func (hook Webhook) ParsePayload(w http.ResponseWriter, r *http.Request) {
108108
expectedMAC := hex.EncodeToString(mac.Sum(nil))
109109

110110
if !hmac.Equal([]byte(signature), []byte(expectedMAC)) {
111-
webhooks.DefaultLog.Error("HMAC verification failed")
112-
webhooks.DefaultLog.Debug("LocalHMAC:" + expectedMAC)
113-
webhooks.DefaultLog.Debug("RemoteHMAC:" + signature)
114-
webhooks.DefaultLog.Debug("Secret:" + hook.secret)
115111
webhooks.DefaultLog.Debug(string(payload))
116112
http.Error(w, "403 Forbidden - HMAC verification failed", http.StatusForbidden)
117113
return

0 commit comments

Comments
 (0)