Page MenuHomeFreeBSD

ports/no-phabricator

Authored By
mat
Apr 16 2021, 12:38 PM
Size
1 KB
Referenced Files
None
Subscribers
None

ports/no-phabricator

#!/usr/bin/perl
# vim:sts=4 sw=4
use strict;
use warnings;
use 5.024;
for (<STDIN>) {
chomp;
my ($old, $new, $ref) = split / /;
for my $rev (qx{git log --format="%H" $new --not --all}) {
chomp $rev;
my $log = join '', qx{git show -s --format=%B $rev};
# Prevent commit messages formatted by phabricator to get in.
if ($log =~ m|\n\nReviewers:[\t ]+|oms) {
die "\n================================================================\n" .
"Non-standard/badly formatted template - found 'Reviewers:' instead of 'Reviewed by:'.\n" .
"================================================================\n"
}
if ($log =~ m|\n\nSubscribers:[\t ]+|oms) {
die "\n================================================================\n" .
"Non-standard/badly formatted template - found 'Subscribers:'.\n" .
"================================================================\n"
}
}
}
exit 0;

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3600997
Default Alt Text
ports/no-phabricator (1 KB)

Event Timeline