Long-forgotten patch: warn if a closed PR has no "closed by"

This commit is contained in:
Dag-Erling Smørgrav 2002-04-15 06:36:22 +00:00
parent d4f5290e7d
commit 96671974e1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94738

View File

@ -124,6 +124,10 @@ sub scan_pr($) {
if ($pr->{'state'} eq 'closed') {
$pr->{'_closed'} = $pr->{'closed-date'} || $pr->{'state-changed-when'};
$pr->{'_closed_by'} = $pr->{'state-changed-by'};
if (!defined($pr->{'_closed_by'})) {
warn("PR $pr->{'category'}/$pr->{'number'} is incomplete\n");
return;
}
++$CLOSER{$pr->{'_closed_by'}};
} else {
$age = $pr->{'arrival-date'} / 86400;