hub v0.31.0: accept 'critical' severity at event ingest + UI badges/CSS; event_test.go (red-proofed); REUSE.md §1/§3 updated
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01PSK5g6qYLknKj8u3QAFEr6
This commit is contained in:
@@ -1153,9 +1153,9 @@ func (h *Handler) handleEvent(w http.ResponseWriter, r *http.Request) {
|
||||
return
|
||||
}
|
||||
|
||||
// Validate/default severity
|
||||
// Validate/default severity (exact-match lowercase; unknown values coerce to info)
|
||||
switch payload.Severity {
|
||||
case "info", "warning", "error":
|
||||
case "info", "warning", "error", "critical":
|
||||
default:
|
||||
payload.Severity = "info"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user