Skip to content

Commit bdd934d

Browse files
committed
[BUG] Don't build when a new branch is created
1 parent 16251f5 commit bdd934d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/webserver.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func handleWebhook(w http.ResponseWriter, req *http.Request) {
107107
eventType := req.Header.Get("X-GitHub-Event")
108108

109109
// GitHub ping when first adding the webhook
110-
if eventType == "ping" {
110+
if eventType == "ping" || eventType == "created" {
111111
w.WriteHeader(http.StatusOK)
112112
return
113113
}

0 commit comments

Comments
 (0)