Skip to content

Commit 79ab69f

Browse files
kanoczlunny
authored andcommitted
Add X-GitHub-* headers for webhook to get clubhouse.io integration working (#809)
1 parent 081485e commit 79ab69f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

models/webhook.go

+2
Original file line numberDiff line numberDiff line change
@@ -538,6 +538,8 @@ func (t *HookTask) deliver() {
538538
req := httplib.Post(t.URL).SetTimeout(timeout, timeout).
539539
Header("X-Gogs-Delivery", t.UUID).
540540
Header("X-Gogs-Event", string(t.EventType)).
541+
Header("X-GitHub-Delivery", t.UUID).
542+
Header("X-GitHub-Event", string(t.EventType)).
541543
SetTLSClientConfig(&tls.Config{InsecureSkipVerify: setting.Webhook.SkipTLSVerify})
542544

543545
switch t.ContentType {

0 commit comments

Comments
 (0)