lol

Merge pull request #259990 from eclairevoyant/fix-maintainers

maintainers/fix-maintainers.pl: fix and run script

authored by

Weijia Wang and committed by
GitHub
eebae19a 6edf239b

+20 -29
+2 -17
maintainers/maintainer-list.nix
··· 3968 }; 3969 davidarmstronglewis = { 3970 email = "davidlewis@mac.com"; 3971 - github = "davidarmstronglewis"; 3972 githubId = 6754950; 3973 name = "David Armstrong Lewis"; 3974 }; ··· 15134 }]; 15135 name = "Rahul Butani"; 15136 }; 15137 - rs0vere = { 15138 - email = "rs0vere@proton.me"; 15139 - github = "rs0vere"; 15140 - githubId = 140035635; 15141 - keys = [{ 15142 - fingerprint = "C6D8 B5C2 FA79 901B DCCF 95E1 FEC4 5C5A ED00 C58D"; 15143 - }]; 15144 - name = "Red Star Over Earth"; 15145 - }; 15146 rski = { 15147 name = "rski"; 15148 email = "rom.skiad+nix@gmail.com"; ··· 15398 }; 15399 SamirTalwar = { 15400 email = "lazy.git@functional.computer"; 15401 - github = "SamirTalwar"; 15402 githubId = 47852; 15403 name = "Samir Talwar"; 15404 }; ··· 17812 github = "travisbhartwell"; 17813 githubId = 10110; 17814 name = "Travis B. Hartwell"; 17815 - }; 17816 - travisdavis-ops = { 17817 - email = "travisdavismedia@gmail.com"; 17818 - github = "TravisDavis-ops"; 17819 - githubId = 52011418; 17820 - name = "Travis Davis"; 17821 }; 17822 traxys = { 17823 email = "quentin+dev@familleboyer.net";
··· 3968 }; 3969 davidarmstronglewis = { 3970 email = "davidlewis@mac.com"; 3971 + github = "oceanlewis"; 3972 githubId = 6754950; 3973 name = "David Armstrong Lewis"; 3974 }; ··· 15134 }]; 15135 name = "Rahul Butani"; 15136 }; 15137 rski = { 15138 name = "rski"; 15139 email = "rom.skiad+nix@gmail.com"; ··· 15389 }; 15390 SamirTalwar = { 15391 email = "lazy.git@functional.computer"; 15392 + github = "abstracte"; 15393 githubId = 47852; 15394 name = "Samir Talwar"; 15395 }; ··· 17803 github = "travisbhartwell"; 17804 githubId = 10110; 17805 name = "Travis B. Hartwell"; 17806 }; 17807 traxys = { 17808 email = "quentin+dev@familleboyer.net";
+10 -4
maintainers/scripts/fix-maintainers.pl
··· 13 14 my $ua = LWP::UserAgent->new(); 15 16 keys %$maintainers_json; # reset the internal iterator so a prior each() doesn't affect the loop 17 while(my($k, $v) = each %$maintainers_json) { 18 my $current_user = %$v{'github'}; 19 if (!defined $current_user) { 20 print "$k has no github handle\n"; 21 - next; 22 } 23 my $github_id = %$v{'githubId'}; 24 if (!defined $github_id) { ··· 37 sleep($ratelimit_reset - time() + 5); 38 } 39 if ($resp->code != 200) { 40 - print $current_user . " likely deleted their github account\n"; 41 next; 42 } 43 my $resp_json = from_json($resp->content); 44 my $api_user = %$resp_json{"login"}; 45 - if (lc($current_user) ne lc($api_user)) { 46 - print $current_user . " is now known on github as " . $api_user . ". Editing maintainer-list.nix…\n"; 47 my $file = path($maintainers_list_nix); 48 my $data = $file->slurp_utf8; 49 $data =~ s/github = "$current_user";$/github = "$api_user";/m;
··· 13 14 my $ua = LWP::UserAgent->new(); 15 16 + if (!defined $ENV{GH_TOKEN}) { 17 + die "Set GH_TOKEN before running this script"; 18 + } 19 + 20 keys %$maintainers_json; # reset the internal iterator so a prior each() doesn't affect the loop 21 while(my($k, $v) = each %$maintainers_json) { 22 my $current_user = %$v{'github'}; 23 if (!defined $current_user) { 24 print "$k has no github handle\n"; 25 } 26 my $github_id = %$v{'githubId'}; 27 if (!defined $github_id) { ··· 40 sleep($ratelimit_reset - time() + 5); 41 } 42 if ($resp->code != 200) { 43 + print "$k likely deleted their github account\n"; 44 next; 45 } 46 my $resp_json = from_json($resp->content); 47 my $api_user = %$resp_json{"login"}; 48 + if (!defined $current_user) { 49 + print "$k is known on github as $api_user.\n"; 50 + } 51 + elsif (lc($current_user) ne lc($api_user)) { 52 + print "$k is now known on github as $api_user. Editing maintainer-list.nix…\n"; 53 my $file = path($maintainers_list_nix); 54 my $data = $file->slurp_utf8; 55 $data =~ s/github = "$current_user";$/github = "$api_user";/m;
+1 -1
pkgs/applications/misc/nhentai/default.nix
··· 21 homepage = "https://github.com/RicterZ/nhentai"; 22 description = "nHentai is a CLI tool for downloading doujinshi from <http://nhentai.net>"; 23 license = licenses.mit; 24 - maintainers = with maintainers; [ travisdavis-ops ]; 25 }; 26 }
··· 21 homepage = "https://github.com/RicterZ/nhentai"; 22 description = "nHentai is a CLI tool for downloading doujinshi from <http://nhentai.net>"; 23 license = licenses.mit; 24 + maintainers = with maintainers; [ ]; 25 }; 26 }
+1 -1
pkgs/by-name/cl/clzip/package.nix
··· 16 homepage = "https://www.nongnu.org/lzip/clzip.html"; 17 description = "C language version of lzip"; 18 license = licenses.gpl2Plus; 19 - maintainers = with maintainers; [ rs0vere ]; 20 platforms = platforms.all; 21 }; 22 })
··· 16 homepage = "https://www.nongnu.org/lzip/clzip.html"; 17 description = "C language version of lzip"; 18 license = licenses.gpl2Plus; 19 + maintainers = with maintainers; [ ]; 20 platforms = platforms.all; 21 }; 22 })
+1 -1
pkgs/by-name/re/replxx/package.nix
··· 24 homepage = "https://github.com/AmokHuginnsson/replxx"; 25 description = "A readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed"; 26 license = licenses.bsd3; 27 - maintainers = with maintainers; [ rs0vere ]; 28 platforms = platforms.all; 29 }; 30 })
··· 24 homepage = "https://github.com/AmokHuginnsson/replxx"; 25 description = "A readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed"; 26 license = licenses.bsd3; 27 + maintainers = with maintainers; [ ]; 28 platforms = platforms.all; 29 }; 30 })
+1 -1
pkgs/development/libraries/kcp/default.nix
··· 21 description = "A Fast and Reliable ARQ Protocol"; 22 homepage = "https://github.com/skywind3000/kcp"; 23 license = licenses.mit; 24 - maintainers = with maintainers; [ rs0vere ]; 25 platforms = platforms.all; 26 }; 27 }
··· 21 description = "A Fast and Reliable ARQ Protocol"; 22 homepage = "https://github.com/skywind3000/kcp"; 23 license = licenses.mit; 24 + maintainers = with maintainers; [ ]; 25 platforms = platforms.all; 26 }; 27 }
+1 -1
pkgs/development/libraries/wfa2-lib/default.nix
··· 31 description = "Wavefront alignment algorithm library v2"; 32 homepage = "https://github.com/smarco/WFA2-lib"; 33 license = licenses.mit; 34 - maintainers = with maintainers; [ rs0vere ]; 35 platforms = platforms.linux; 36 }; 37 }
··· 31 description = "Wavefront alignment algorithm library v2"; 32 homepage = "https://github.com/smarco/WFA2-lib"; 33 license = licenses.mit; 34 + maintainers = with maintainers; [ ]; 35 platforms = platforms.linux; 36 }; 37 }
+1 -1
pkgs/development/tools/cocogitto/default.nix
··· 32 description = "A set of cli tools for the conventional commit and semver specifications"; 33 homepage = "https://github.com/oknozor/cocogitto"; 34 license = licenses.mit; 35 - maintainers = with maintainers; [ travisdavis-ops ]; 36 }; 37 }
··· 32 description = "A set of cli tools for the conventional commit and semver specifications"; 33 homepage = "https://github.com/oknozor/cocogitto"; 34 license = licenses.mit; 35 + maintainers = with maintainers; [ ]; 36 }; 37 }
+1 -1
pkgs/games/hmcl/default.nix
··· 91 description = "A Minecraft Launcher which is multi-functional, cross-platform and popular"; 92 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 93 license = licenses.gpl3Only; 94 - maintainers = with maintainers; [ rs0vere ]; 95 inherit (jre.meta) platforms; 96 }; 97 })
··· 91 description = "A Minecraft Launcher which is multi-functional, cross-platform and popular"; 92 sourceProvenance = with sourceTypes; [ binaryBytecode ]; 93 license = licenses.gpl3Only; 94 + maintainers = with maintainers; [ ]; 95 inherit (jre.meta) platforms; 96 }; 97 })
+1 -1
pkgs/tools/wayland/sov/default.nix
··· 26 description = "An overlay that shows schemas for all workspaces to make navigation in sway easier."; 27 homepage = "https://github.com/milgra/sov"; 28 license = with licenses; [ mit ]; 29 - maintainers = with maintainers; [ travisdavis-ops ]; 30 platforms = platforms.linux; 31 }; 32 }
··· 26 description = "An overlay that shows schemas for all workspaces to make navigation in sway easier."; 27 homepage = "https://github.com/milgra/sov"; 28 license = with licenses; [ mit ]; 29 + maintainers = with maintainers; [ ]; 30 platforms = platforms.linux; 31 }; 32 }