summaryrefslogtreecommitdiffstats
path: root/lib/Crawl/Bot/Plugin/Commit.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Crawl/Bot/Plugin/Commit.pm')
-rw-r--r--lib/Crawl/Bot/Plugin/Commit.pm34
1 files changed, 17 insertions, 17 deletions
diff --git a/lib/Crawl/Bot/Plugin/Commit.pm b/lib/Crawl/Bot/Plugin/Commit.pm
index 1172413..b626aba 100644
--- a/lib/Crawl/Bot/Plugin/Commit.pm
+++ b/lib/Crawl/Bot/Plugin/Commit.pm
@@ -89,23 +89,23 @@ sub tick {
$self->say_all("New branch created: $branch ($nrev commits)");
}
- if ($self->announce_commits) {
- my %commits = map { $_, $self->parse_commit($_) } @revs;
-
- my $cherry_picks = @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;
-
- for my $rev (@revs) {
- my $commit = $commits{$rev};
- my $abbr = substr($rev, 0, 12);
- my $br = $branch eq "master" ? "" : "[$branch] ";
- $self->say_all("$commit->{author} $br* $abbr ($commit->{nfiles} changed): $commit->{subject}");
- }
- }
+ if ($self->announce_commits) {
+ my %commits = map { $_, $self->parse_commit($_) } @revs;
+
+ my $cherry_picks = @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;
+
+ for my $rev (@revs) {
+ my $commit = $commits{$rev};
+ my $abbr = substr($rev, 0, 12);
+ my $br = $branch eq "master" ? "" : "[$branch] ";
+ $self->say_all("$commit->{author} $br* $abbr ($commit->{nfiles} changed): $commit->{subject}");
+ }
+ }
$self->head($branch => $head);
}