an agent gets one todo when its pr starts conflicting with the target branch
This commit is contained in:
parent
32155f70aa
commit
11eb7dac9c
1 changed files with 963 additions and 21 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue