Skip to content

Commit 5410cdf

Browse files
committed
cook: teach 'on hold' and other status
1 parent 49e49d6 commit 5410cdf

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

cook

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,8 +579,8 @@ sub tweak_willdo {
579579
$desc =~ s/\n<<\n.*//s;
580580
if ($desc =~ /^ \(merged to 'next'/m) {
581581
$text =~ s/^ Will merge to 'next'\.$/ $mergetomaster/m;
582-
$text =~ s/^ Will merge to and then cook in 'next'\.$/ Will cook in 'next'./m;
583-
$text =~ s/^ Will merge to 'next' and then to 'master'\.$/ $mergetomaster/m;
582+
$text =~ s/^ Will merge to and (then )?cook in 'next'\.$/ Will cook in 'next'./m;
583+
$text =~ s/^ Will merge to 'next' and (then )?to 'master'\.$/ Will merge to 'master'./m;
584584
}
585585
$td->{'text'} = $text;
586586
}
@@ -706,9 +706,10 @@ sub wildo_flush_topic {
706706
}
707707

708708
sub wildo_match {
709+
# NEEDSWORK: unify with Reintegrate::annotate_merge
709710
if (/^Will (?:\S+ ){0,2}(fast-track|hold|keep|merge|drop|discard|cook|kick|defer|eject|be re-?rolled|wait)[,. ]/ ||
710711
/^Not urgent/ || /^Not ready/ || /^Waiting for / ||
711-
/^Can wait in / || /^Still / ||
712+
/^Can wait in / || /^Still / || /^Stuck / || /^On hold/ ||
712713
/^Needs? / || /^Expecting / || /^May want to /) {
713714
return 1;
714715
}

0 commit comments

Comments
 (0)