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

This commit is contained in:
éclairevoyant 2023-10-09 09:05:38 -04:00
parent 116ab287c5
commit b623143563
No known key found for this signature in database
GPG Key ID: E3813AEAA02DB54B

View File

@ -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'};