Report ignored refs in webhook response.

This commit is contained in:
Catherine
2025-09-16 13:05:40 +00:00
parent 20b7689d16
commit 9c0cdaa2eb

View File

@@ -230,6 +230,7 @@ func postPage(w http.ResponseWriter, r *http.Request) error {
eventRef := event["ref"].(string)
if eventRef != "refs/heads/pages" {
w.WriteHeader(http.StatusOK)
fmt.Fprintf(w, "ref %s ignored\n", eventRef)
return nil
}