mirror of
https://codeberg.org/git-pages/git-pages.git
synced 2026-05-21 22:51:36 +00:00
Report ignored refs in webhook response.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user