Skip bots when generating the authors list.

This commit is contained in:
Sadie Powell 2022-04-28 17:44:40 +01:00
parent bce6e2422e
commit f6489c3456

View File

@ -33,6 +33,7 @@ use make::console;
my %authors;
for my $author (split /\n+/, `git log --pretty='%aN <%aE>' HEAD`) {
$author = $1 if $author =~ /^(.+) <(?:unknown\@email.invalid|\S+\@users.noreply.github.com)>$/;
next if $author =~ /\[bot\]$/;
$authors{$author} ||= 0;
$authors{$author} += 1;