Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyas28 committed May 6, 2021
1 parent 12db29b commit 1111e6c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
}

event := r.Header.Get("X-GitHub-Event")
log.Printf("Event: %s", event)
if event == "" {
return nil, ErrMissingGithubEventHeader
}
Expand Down Expand Up @@ -168,7 +169,6 @@ func (hook Webhook) Parse(r *http.Request, events ...Event) (interface{}, error)
}
}

log.Printf("Event: %s", event)
switch gitHubEvent {
case CheckRunEvent:
var pl CheckRunPayload
Expand Down

0 comments on commit 1111e6c

Please sign in to comment.