Watch
0
0
Fork
You've already forked hyperhive
0

swarm: the notification router tells a PR's author when CI on it fails or is cancelled

This commit is contained in:
damocles 2026-11-06 21:25:08 +01:00 • committed by mara
commit c8eaa93268

View file

@ -216,7 +216,7 @@ impl Router {
let event_type = forge_events::event_type(&message.subject)
.ok_or_else(|| Skip::Unusable("not a forge event subject".to_owned()))?
.to_owned();
let Some(delivery) = event::Delivery::parse(&message.payload) else {
let Some(delivery) = event::Delivery::from_event(&event_type, &message.payload) else {
// A delivery that names no issue or PR has nothing to route.
return Ok(Handled::Ignored);
};