Skip to content

Commit 26a9951

Browse files
committed
check-release.pl: ignore "Organize imports" too
1 parent f932722 commit 26a9951

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

check-release.pl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,17 @@ ($$$)
170170
foreach my $commit (@commits) {
171171
chomp $commit;
172172
my $commitMessage = `git log -1 --oneline $commit`;
173+
chomp $commitMessage;
173174
if ($commitMessage =~ /^[a-z0-9]{7} [Hh]appy .*[Nn]ew [Yy]ear/) {
174175
# Ignore "Happy New Year" copyright header updates
175176
debug("Ignoring Happy New Year commit: $commit");
176177
$commitCount--;
177178
}
179+
if ($commitMessage =~ /^[a-z0-9]{7} Organize imports$/) {
180+
# Ignore "Organize imports" copyright header updates
181+
debug("Ignoring 'Organize imports' commit: $commit");
182+
$commitCount--;
183+
}
178184
}
179185

180186
if ($verbose || $commitCount > 0) {

0 commit comments

Comments
 (0)