Watch
0
0
Fork
You've already forked hyperhive
0

an agent gets one todo when its pr starts conflicting with the target branch

This commit is contained in:
atlas 2026-11-11 04:36:28 +01:00 • committed by mara
commit 11eb7dac9c

View file

@ -46,6 +46,7 @@ use swarm_wire::review_classifier::Commit;
pub mod agent_token;
mod api;
mod base_pulls;
pub mod builder_account;
pub mod ci_metrics_account;
pub mod classifier_account;
@ -2321,10 +2322,12 @@ mod tests {
["workflow_run_failure", "workflow_run_cancelled"]
);
// The events a stored flow's source may name are the ones the hooks
// deliver to the router.
// deliver to the router, and the one the controller makes.
let mut routed = events(DeliveryKind::Issues);
routed.extend(events(DeliveryKind::PullRequest));
routed.extend(events(DeliveryKind::WorkflowRun));
// Not a hook: the controller publishes it itself (`crate::pr_conflicts`).
routed.push(swarm_wire::forge_events::MERGEABILITY_EVENT);
routed.sort_unstable();
let mut sources = swarm_wire::notify_flows::SOURCE_EVENTS
.iter()