summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/Crawl/Bot/Plugin/Commit.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Crawl/Bot/Plugin/Commit.pm b/lib/Crawl/Bot/Plugin/Commit.pm
index d21fae8..2536913 100644
--- a/lib/Crawl/Bot/Plugin/Commit.pm
+++ b/lib/Crawl/Bot/Plugin/Commit.pm
@@ -59,7 +59,8 @@ sub tick {
my %commits = map { $_, $self->parse_commit($_) } @revs;
my $cherry_picks = @revs;
- @revs = grep { $commits{$_}->{body} !~ /\(cherry picked from / } @revs;
+ @revs = grep { $commits{$_}->{subject} !~ /\(cherry picked from /
+ && $commits{$_}->{body} !~ /\(cherry picked from / } @revs;
$cherry_picks -= @revs;
$self->say_all("Cherry-picked $cherry_picks commits into $branch")
if $cherry_picks > 0;