Long-forgotten patch: warn if a closed PR has no "closed by"
This commit is contained in:
parent
d4f5290e7d
commit
96671974e1
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user