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
|
|
@ -150,7 +150,7 @@ mod tests {
|
|||
use super::*;
|
||||
|
||||
/// The built-in flows, in the order the router runs them.
|
||||
const BUILTIN_IDS: [&str; 7] = [
|
||||
const BUILTIN_IDS: [&str; 9] = [
|
||||
"assigned",
|
||||
"unassigned",
|
||||
"closed",
|
||||
|
|
@ -158,6 +158,8 @@ mod tests {
|
|||
"ci-failed",
|
||||
"ci-cancelled",
|
||||
"ci-cleared",
|
||||
"conflict",
|
||||
"conflict-cleared",
|
||||
];
|
||||
|
||||
fn ids(f: &Flows) -> Vec<&str> {
|
||||
|
|
@ -220,6 +222,8 @@ mod tests {
|
|||
"ci-failed",
|
||||
"ci-cancelled",
|
||||
"ci-cleared",
|
||||
"conflict",
|
||||
"conflict-cleared",
|
||||
"triage"
|
||||
]
|
||||
);
|
||||
|
|
@ -232,7 +236,7 @@ mod tests {
|
|||
let before = ids(&f).join(",");
|
||||
assert_eq!(
|
||||
before,
|
||||
"assigned,unassigned,head-classifier,ci-failed,ci-cancelled,ci-cleared,triage"
|
||||
"assigned,unassigned,head-classifier,ci-failed,ci-cancelled,ci-cleared,conflict,conflict-cleared,triage"
|
||||
);
|
||||
for bad in [
|
||||
junk(2, b"not json"),
|
||||
|
|
|
|||
Loading…
Reference in a new issue