Unverified Commit b6231435 authored by éclairevoyant's avatar éclairevoyant
Browse files

maintainers/fix-maintainers.pl: error on unset GH_TOKEN

parent 116ab287
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -13,6 +13,10 @@ STDOUT->autoflush(1);

my $ua = LWP::UserAgent->new();

if (!defined $ENV{GH_TOKEN}) {
    die "Set GH_TOKEN before running this script";
}

keys %$maintainers_json; # reset the internal iterator so a prior each() doesn't affect the loop
while(my($k, $v) = each %$maintainers_json) {
    my $current_user = %$v{'github'};