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