Allow mkauthors/mkheaders to opt-out of committing changes.

This commit is contained in:
Sadie Powell 2024-07-13 18:43:49 +01:00
parent 9fa1b23031
commit 9ca63a89dd
2 changed files with 12 additions and 8 deletions

View File

@ -54,7 +54,9 @@ for my $author (sort { $authors{$b} <=> $authors{$a} or lc($a) cmp lc($b) } keys
}
close $fh;
execute 'git', 'commit',
'--author', 'InspIRCd Robot <noreply@inspircd.org>',
'--message', 'Update author list.',
'--', $author_file;
if ($ENV{MKAUTHORS_COMMIT} // 1) {
execute 'git', 'commit',
'--author', 'InspIRCd Robot <noreply@inspircd.org>',
'--message', 'Update author list.',
'--', $author_file;
}

View File

@ -152,7 +152,9 @@ for my $path (@paths) {
}
}
execute 'git', 'commit',
'--author', 'InspIRCd Robot <noreply@inspircd.org>',
'--message', 'Update copyright headers.',
'--', @updated;
if ($ENV{MKHEADERS_COMMIT} // 1) {
execute 'git', 'commit',
'--author', 'InspIRCd Robot <noreply@inspircd.org>',
'--message', 'Update copyright headers.',
'--', @updated;
}