We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0a61cce commit 5d95246Copy full SHA for 5d95246
cook
@@ -536,6 +536,17 @@ sub topic_in_pu {
536
return 0;
537
}
538
539
+sub tweak_willdo {
540
+ my ($td) = @_;
541
+ my $desc = $td->{'desc'};
542
+ my $text = $td->{'text'};
543
+ $desc =~ s/\n<<\n.*//s;
544
+ if ($desc =~ /^ \(merged to 'next'/m) {
545
+ $text =~ s/^ Will merge to 'next'\.$/ Will merge to 'master'./m;
546
+ }
547
+ $td->{'text'} = $text;
548
+}
549
+
550
sub merge_cooking {
551
my ($cooking, $current) = @_;
552
my $td = $cooking->{'topic_description'};
@@ -569,6 +580,7 @@ sub merge_cooking {
569
580
my $o = $td->{$topic}{'desc'};
570
581
if ($n ne $o) {
571
582
$td->{$topic}{'desc'} = $n . "\n<<\n" . $o ."\n>>";
583
+ tweak_willdo($td->{$topic});
572
584
573
585
574
586
0 commit comments