diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-10-12 23:39:07 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-12 23:39:07 +0200 |
commit | eebae19a25201d2f2bfdd41b7e9c570ea87381d4 (patch) | |
tree | 4d0544cfc48acef17137f700400a3043f4e907ff | |
parent | 6edf239bcaadb0e4eec184753ad0ee706d771514 (diff) | |
parent | 2e722bdfdbe6cef13d88f9c466f84be4122f0d13 (diff) | |
download | nixlib-eebae19a25201d2f2bfdd41b7e9c570ea87381d4.tar nixlib-eebae19a25201d2f2bfdd41b7e9c570ea87381d4.tar.gz nixlib-eebae19a25201d2f2bfdd41b7e9c570ea87381d4.tar.bz2 nixlib-eebae19a25201d2f2bfdd41b7e9c570ea87381d4.tar.lz nixlib-eebae19a25201d2f2bfdd41b7e9c570ea87381d4.tar.xz nixlib-eebae19a25201d2f2bfdd41b7e9c570ea87381d4.tar.zst nixlib-eebae19a25201d2f2bfdd41b7e9c570ea87381d4.zip |
Merge pull request #259990 from eclairevoyant/fix-maintainers
maintainers/fix-maintainers.pl: fix and run script
-rw-r--r-- | maintainers/maintainer-list.nix | 19 | ||||
-rwxr-xr-x | maintainers/scripts/fix-maintainers.pl | 14 | ||||
-rw-r--r-- | pkgs/applications/misc/nhentai/default.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/cl/clzip/package.nix | 2 | ||||
-rw-r--r-- | pkgs/by-name/re/replxx/package.nix | 2 | ||||
-rw-r--r-- | pkgs/development/libraries/kcp/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/libraries/wfa2-lib/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/tools/cocogitto/default.nix | 2 | ||||
-rw-r--r-- | pkgs/games/hmcl/default.nix | 2 | ||||
-rw-r--r-- | pkgs/tools/wayland/sov/default.nix | 2 |
10 files changed, 20 insertions, 29 deletions
diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index c48c19922c6f..1357f83aedfe 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -3968,7 +3968,7 @@ }; davidarmstronglewis = { email = "davidlewis@mac.com"; - github = "davidarmstronglewis"; + github = "oceanlewis"; githubId = 6754950; name = "David Armstrong Lewis"; }; @@ -15134,15 +15134,6 @@ }]; name = "Rahul Butani"; }; - rs0vere = { - email = "rs0vere@proton.me"; - github = "rs0vere"; - githubId = 140035635; - keys = [{ - fingerprint = "C6D8 B5C2 FA79 901B DCCF 95E1 FEC4 5C5A ED00 C58D"; - }]; - name = "Red Star Over Earth"; - }; rski = { name = "rski"; email = "rom.skiad+nix@gmail.com"; @@ -15398,7 +15389,7 @@ }; SamirTalwar = { email = "lazy.git@functional.computer"; - github = "SamirTalwar"; + github = "abstracte"; githubId = 47852; name = "Samir Talwar"; }; @@ -17813,12 +17804,6 @@ githubId = 10110; name = "Travis B. Hartwell"; }; - travisdavis-ops = { - email = "travisdavismedia@gmail.com"; - github = "TravisDavis-ops"; - githubId = 52011418; - name = "Travis Davis"; - }; traxys = { email = "quentin+dev@familleboyer.net"; github = "traxys"; diff --git a/maintainers/scripts/fix-maintainers.pl b/maintainers/scripts/fix-maintainers.pl index a83df9ec0cf0..c953cff5cc48 100755 --- a/maintainers/scripts/fix-maintainers.pl +++ b/maintainers/scripts/fix-maintainers.pl @@ -13,12 +13,15 @@ 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'}; if (!defined $current_user) { print "$k has no github handle\n"; - next; } my $github_id = %$v{'githubId'}; if (!defined $github_id) { @@ -37,13 +40,16 @@ while(my($k, $v) = each %$maintainers_json) { sleep($ratelimit_reset - time() + 5); } if ($resp->code != 200) { - print $current_user . " likely deleted their github account\n"; + print "$k likely deleted their github account\n"; next; } my $resp_json = from_json($resp->content); my $api_user = %$resp_json{"login"}; - if (lc($current_user) ne lc($api_user)) { - print $current_user . " is now known on github as " . $api_user . ". Editing maintainer-list.nix…\n"; + if (!defined $current_user) { + print "$k is known on github as $api_user.\n"; + } + elsif (lc($current_user) ne lc($api_user)) { + print "$k is now known on github as $api_user. Editing maintainer-list.nix…\n"; my $file = path($maintainers_list_nix); my $data = $file->slurp_utf8; $data =~ s/github = "$current_user";$/github = "$api_user";/m; diff --git a/pkgs/applications/misc/nhentai/default.nix b/pkgs/applications/misc/nhentai/default.nix index f5284c1ad74d..f1d632a89a32 100644 --- a/pkgs/applications/misc/nhentai/default.nix +++ b/pkgs/applications/misc/nhentai/default.nix @@ -21,6 +21,6 @@ python3Packages.buildPythonApplication rec { homepage = "https://github.com/RicterZ/nhentai"; description = "nHentai is a CLI tool for downloading doujinshi from <http://nhentai.net>"; license = licenses.mit; - maintainers = with maintainers; [ travisdavis-ops ]; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/by-name/cl/clzip/package.nix b/pkgs/by-name/cl/clzip/package.nix index 84f485d39891..feced814f4e5 100644 --- a/pkgs/by-name/cl/clzip/package.nix +++ b/pkgs/by-name/cl/clzip/package.nix @@ -16,7 +16,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://www.nongnu.org/lzip/clzip.html"; description = "C language version of lzip"; license = licenses.gpl2Plus; - maintainers = with maintainers; [ rs0vere ]; + maintainers = with maintainers; [ ]; platforms = platforms.all; }; }) diff --git a/pkgs/by-name/re/replxx/package.nix b/pkgs/by-name/re/replxx/package.nix index 2e910855707b..ae8d185bb530 100644 --- a/pkgs/by-name/re/replxx/package.nix +++ b/pkgs/by-name/re/replxx/package.nix @@ -24,7 +24,7 @@ stdenv.mkDerivation (finalAttrs: { homepage = "https://github.com/AmokHuginnsson/replxx"; description = "A readline and libedit replacement that supports UTF-8, syntax highlighting, hints and Windows and is BSD licensed"; license = licenses.bsd3; - maintainers = with maintainers; [ rs0vere ]; + maintainers = with maintainers; [ ]; platforms = platforms.all; }; }) diff --git a/pkgs/development/libraries/kcp/default.nix b/pkgs/development/libraries/kcp/default.nix index 69a2b91553e4..29bab0087989 100644 --- a/pkgs/development/libraries/kcp/default.nix +++ b/pkgs/development/libraries/kcp/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation rec { description = "A Fast and Reliable ARQ Protocol"; homepage = "https://github.com/skywind3000/kcp"; license = licenses.mit; - maintainers = with maintainers; [ rs0vere ]; + maintainers = with maintainers; [ ]; platforms = platforms.all; }; } diff --git a/pkgs/development/libraries/wfa2-lib/default.nix b/pkgs/development/libraries/wfa2-lib/default.nix index 9555b9faea60..1f97f9c95a6c 100644 --- a/pkgs/development/libraries/wfa2-lib/default.nix +++ b/pkgs/development/libraries/wfa2-lib/default.nix @@ -31,7 +31,7 @@ stdenv.mkDerivation rec { description = "Wavefront alignment algorithm library v2"; homepage = "https://github.com/smarco/WFA2-lib"; license = licenses.mit; - maintainers = with maintainers; [ rs0vere ]; + maintainers = with maintainers; [ ]; platforms = platforms.linux; }; } diff --git a/pkgs/development/tools/cocogitto/default.nix b/pkgs/development/tools/cocogitto/default.nix index 1ed22b7eb4f9..8b7b39bba1b1 100644 --- a/pkgs/development/tools/cocogitto/default.nix +++ b/pkgs/development/tools/cocogitto/default.nix @@ -32,6 +32,6 @@ rustPlatform.buildRustPackage rec { description = "A set of cli tools for the conventional commit and semver specifications"; homepage = "https://github.com/oknozor/cocogitto"; license = licenses.mit; - maintainers = with maintainers; [ travisdavis-ops ]; + maintainers = with maintainers; [ ]; }; } diff --git a/pkgs/games/hmcl/default.nix b/pkgs/games/hmcl/default.nix index f6ded13dc0f4..fcaa01ea2d95 100644 --- a/pkgs/games/hmcl/default.nix +++ b/pkgs/games/hmcl/default.nix @@ -91,7 +91,7 @@ stdenv.mkDerivation (finalAttrs: { description = "A Minecraft Launcher which is multi-functional, cross-platform and popular"; sourceProvenance = with sourceTypes; [ binaryBytecode ]; license = licenses.gpl3Only; - maintainers = with maintainers; [ rs0vere ]; + maintainers = with maintainers; [ ]; inherit (jre.meta) platforms; }; }) diff --git a/pkgs/tools/wayland/sov/default.nix b/pkgs/tools/wayland/sov/default.nix index d7415a5fa517..38578544feb4 100644 --- a/pkgs/tools/wayland/sov/default.nix +++ b/pkgs/tools/wayland/sov/default.nix @@ -26,7 +26,7 @@ stdenv.mkDerivation rec { description = "An overlay that shows schemas for all workspaces to make navigation in sway easier."; homepage = "https://github.com/milgra/sov"; license = with licenses; [ mit ]; - maintainers = with maintainers; [ travisdavis-ops ]; + maintainers = with maintainers; [ ]; platforms = platforms.linux; }; } |