diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 85fc381473d7..0b75edb135a3 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -85,7 +85,7 @@ }; _0qq = { email = "0qqw0qqw@gmail.com"; - github = "0qq"; + github = "0xKDI"; githubId = 64707304; name = "Dmitry Kulikov"; }; @@ -155,7 +155,7 @@ }; _1000teslas = { name = "Kevin Tran"; - github = "1000teslas"; + github = "sledgehammervampire"; githubId = 47207223; }; _13r0ck = { @@ -219,7 +219,7 @@ }; _404wolf = { email = "wolfmermelstein@gmail.com"; - github = "404wolf"; + github = "404Wolf"; githubId = 108041238; name = "Wolf Mermelstein"; }; @@ -799,7 +799,7 @@ }; ajgrf = { email = "a@ajgrf.com"; - github = "ajgrf"; + github = "axgfn"; githubId = 10733175; name = "Alex Griffin"; }; @@ -812,7 +812,7 @@ }; ajwhouse = { email = "adam@ajwh.chat"; - github = "ajwhouse"; + github = "adam-dakota"; githubId = 56616368; name = "Adam House"; }; @@ -1236,7 +1236,7 @@ }; amanse = { email = "amansetiarjp@gmail.com"; - github = "amanse"; + github = "Amanse"; githubId = 13214574; name = "Aman Setia"; }; @@ -1402,7 +1402,7 @@ }; andreasfelix = { email = "fandreas@physik.hu-berlin.de"; - github = "andreasfelix"; + github = "felix-andreas"; githubId = 24651767; name = "Felix Andreas"; }; @@ -1718,7 +1718,7 @@ }; aprl = { email = "aprl@acab.dev"; - github = "cutestnekoaqua"; + github = "CutestNekoAqua"; githubId = 30842467; name = "April John"; }; @@ -1795,13 +1795,13 @@ }; argrat = { email = "n.bertazzo@protonmail.com"; - github = "argrat"; + github = "argo-v5"; githubId = 98821629; name = "Nicolò Bertazzo"; }; arian-d = { email = "arianxdehghani@gmail.com"; - github = "arian-d"; + github = "Arian-D"; githubId = 40076285; name = "Arian Dehghani"; }; @@ -2030,7 +2030,7 @@ }; aspulse = { email = "contact@aspulse.dev"; - github = "aspulse"; + github = "AsPulse"; githubId = 84216737; name = "AsPulse / あすぱる"; keys = [ { fingerprint = "C919 E69E A7C0 E147 9E0F C26E 1EDA D0C6 70BD 062D"; } ]; @@ -2044,7 +2044,7 @@ }; astavie = { email = "astavie@pm.me"; - github = "astavie"; + github = "Astavie"; githubId = 7745457; name = "Astavie"; }; @@ -2300,7 +2300,7 @@ }; axertheaxe = { email = "axertheaxe@proton.me"; - github = "axertheaxe"; + github = "AxerTheAxe"; githubId = 99703210; name = "Katherine Jamison"; }; @@ -2433,7 +2433,7 @@ }; balssh = { email = "george.bals25@gmail.com"; - github = "balssh"; + github = "Balssh"; githubId = 82440615; name = "George Bals"; }; @@ -2669,7 +2669,7 @@ ben9986 = { name = "Ben Carmichael"; email = "ben9986.unvmn@passinbox.com"; - github = "ben9986"; + github = "Ben9986"; githubId = 38633150; keys = [ { fingerprint = "03C7 A587 74B3 F0E8 CE1F 4F8E ABBC DD77 69BC D3B0"; } ]; }; @@ -2878,7 +2878,7 @@ }; bhasherbel = { email = "nixos.maintainer@bhasher.com"; - github = "bhasherbel"; + github = "BhasherBEL"; githubId = 45831883; name = "Brieuc Dubois"; }; @@ -3032,7 +3032,7 @@ }; blusk = { email = "bluskript@gmail.com"; - github = "Bluskript"; + github = "bluskript"; githubId = 52386117; name = "Blusk"; }; @@ -3388,7 +3388,7 @@ }; ByteSudoer = { email = "bytesudoer@gmail.com"; - github = "bytesudoer"; + github = "ByteSudoer"; githubId = 88513682; name = "ByteSudoer"; }; @@ -3564,7 +3564,7 @@ }; campadrenalin = { email = "campadrenalin@gmail.com"; - github = "campadrenalin"; + github = "MaddieM4"; githubId = 289492; name = "Philip Horger"; }; @@ -3902,7 +3902,7 @@ }; cherrykitten = { email = "contact@cherrykitten.dev"; - github = "cherrykitten"; + github = "CherryKitten"; githubId = 20300586; matrix = "@sammy:cherrykitten.dev"; name = "CherryKitten"; @@ -4033,7 +4033,7 @@ }; chrispwill = { email = "chris@chrispwill.com"; - github = "chrispwill"; + github = "ChrisPWill"; githubId = 271099; name = "Chris Williams"; }; @@ -4125,7 +4125,7 @@ }; citadelcore = { email = "alex@arctarus.co.uk"; - github = "VertexA115"; + github = "RealityAnomaly"; githubId = 5567402; name = "Alex Zero"; keys = [ { fingerprint = "A0AA 4646 B8F6 9D45 4553 5A88 A515 50ED B450 302C"; } ]; @@ -4391,7 +4391,7 @@ colamaroro = { name = "Corentin Rondier"; email = "github@rondier.io"; - github = "colamaroro"; + github = "COLAMAroro"; githubId = 12484955; matrix = "@colamaroro:lovelyrad.io"; }; @@ -4431,7 +4431,7 @@ }; coloquinte = { email = "gabriel.gouvine_nix@m4x.org"; - github = "coloquinte"; + github = "Coloquinte"; githubId = 4102525; name = "Gabriel Gouvine"; }; @@ -4487,7 +4487,7 @@ connorbaker = { email = "connor.baker@tweag.io"; matrix = "@connorbaker:matrix.org"; - github = "connorbaker"; + github = "ConnorBaker"; name = "Connor Baker"; githubId = 3880346; }; @@ -4612,7 +4612,7 @@ }; crem = { email = "max@alstercaminer.com"; - github = "MaxCaminer"; + github = "ItsCrem"; githubId = 16345077; name = "crem"; }; @@ -4650,7 +4650,7 @@ croissong = { email = "jan.moeller0@pm.me"; name = "Jan Möller"; - github = "Croissong"; + github = "croissong"; githubId = 4162215; keys = [ { fingerprint = "CE97 9DEE 904C 26AA 3716 78C2 96A4 38F9 EE72 572F"; } ]; }; @@ -5147,7 +5147,7 @@ }; dawoox = { email = "contact@antoinebellanger.fr"; - github = "dawoox"; + github = "Dawoox"; githubId = 48325941; name = "Dawoox"; }; @@ -5245,7 +5245,7 @@ declan = { name = "Declan Rixon"; email = "declan.fraser.rixon@gmail.com"; - github = "DeclanRixon"; + github = "DeclanBaggins"; githubId = 57464835; }; deeengan = { @@ -5263,7 +5263,7 @@ }; deekahy = { email = "Lennart.Diego.Kahn@gmail.com"; - github = "deekahy"; + github = "DeeKahy"; githubId = 97156953; name = "Lennart Diego Kahn"; }; @@ -5364,7 +5364,7 @@ }; demine = { email = "riches_tweaks0o@icloud.com"; - github = "demine0"; + github = "Demine0"; githubId = 51992962; name = "Nikita Demin"; }; @@ -5382,7 +5382,7 @@ }; denperidge = { email = "contact@denperidge.com"; - github = "denperidge"; + github = "Denperidge"; githubId = 27348469; name = "Cat"; }; @@ -5394,7 +5394,7 @@ }; derdennisop = { email = "dennish@wuitz.de"; - github = "derdennisop"; + github = "DerDennisOP"; githubId = 52411861; name = "Dennis"; }; @@ -5560,13 +5560,13 @@ }; dgollings = { email = "daniel.gollings+nixpkgs@gmail.com"; - github = "dgollings"; + github = "DGollings"; githubId = 2032823; name = "Daniel Gollings"; }; dgonyeo = { email = "derek@gonyeo.com"; - github = "dgonyeo"; + github = "cgonyeo"; githubId = 2439413; name = "Derek Gonyeo"; }; @@ -6120,7 +6120,7 @@ }; dwrege = { email = "email@dwrege.de"; - github = "dominicwrege"; + github = "DominicWrege"; githubId = 7389000; name = "Dominic Wrege"; }; @@ -6263,7 +6263,7 @@ }; edeneast = { email = "edenofest@gmail.com"; - github = "edeneast"; + github = "EdenEast"; githubId = 2746374; name = "edeneast"; }; @@ -6696,7 +6696,7 @@ }; ercao = { email = "vip@ercao.cn"; - github = "ercao"; + github = "O8888"; githubId = 51725284; name = "ercao"; keys = [ { fingerprint = "F3B0 36F7 B0CB 0964 3C12 D3C7 FFAB D125 7ECF 0889"; } ]; @@ -6718,7 +6718,7 @@ erethon = { email = "dgrig@erethon.com"; matrix = "@dgrig:erethon.com"; - github = "erethon"; + github = "Erethon"; githubId = 1254842; name = "Dionysis Grigoropoulos"; }; @@ -6952,7 +6952,7 @@ }; eveeifyeve = { name = "Eveeifyeve"; - github = "eveeifyeve"; + github = "Eveeifyeve"; githubId = 88671402; matrix = "@eveeifyeve:matrix.org"; email = "eveeg1971@gmail.com"; @@ -7003,7 +7003,7 @@ }; ewuuwe = { email = "ewu.uweq@pm.me"; - github = "ewuuwe"; + github = "EwuUwe"; githubId = 63652646; name = "Xaver Oswald"; }; @@ -7097,7 +7097,7 @@ }; fabianrig = { email = "fabianrig@posteo.de"; - github = "fabianrig"; + github = "FabianRig"; githubId = 88741530; name = "Fabian Rigoll"; }; @@ -7639,7 +7639,7 @@ name = "Christian Friedow"; }; friedrichaltheide = { - github = "friedrichaltheide"; + github = "FriedrichAltheide"; githubId = 11352905; name = "Friedrich Altheide"; }; @@ -8085,7 +8085,7 @@ name = "Priyanshu Tripathi"; email = "nixos@getpsyched.dev"; matrix = "@getpsyched:matrix.org"; - github = "getpsyched"; + github = "GetPsyched"; githubId = 43472218; }; getreu = { @@ -8148,7 +8148,7 @@ }; gigglesquid = { email = "jack.connors@protonmail.com"; - github = "gigglesquid"; + github = "GiggleSquid"; githubId = 3685154; name = "Jack connors"; keys = [ { fingerprint = "21DF 8034 B212 EDFF 9F19 9C19 F65B 7583 7ABF D019"; } ]; @@ -8666,7 +8666,7 @@ }; hannesgith = { email = "nix@h-h.win"; - github = "hannesgith"; + github = "HannesGitH"; githubId = 33062605; name = "Hannes Hattenbach"; }; @@ -8705,7 +8705,7 @@ harbiinger = { email = "theo.godin@protonmail.com"; matrix = "@hrbgr:matrix.org"; - github = "harbiinger"; + github = "Harbiinger"; githubId = 55398594; name = "Theo Godin"; }; @@ -8989,7 +8989,7 @@ }; hhydraa = { email = "hcurfman@keemail.me"; - github = "hhydraa"; + github = "hcur"; githubId = 58676303; name = "hhydraa"; }; @@ -9124,7 +9124,7 @@ }; hornwall = { email = "hannes@hornwall.me"; - github = "hornwall"; + github = "Hornwall"; githubId = 1064477; name = "Hannes Hornwall"; }; @@ -9230,7 +9230,7 @@ }; humancalico = { email = "humancalico@disroot.org"; - github = "humancalico"; + github = "akshatagarwl"; githubId = 51334444; name = "Akshat Agarwal"; }; @@ -9655,7 +9655,7 @@ iogamaster = { email = "iogamastercode+nixpkgs@gmail.com"; name = "IogaMaster"; - github = "iogamaster"; + github = "IogaMaster"; githubId = 67164465; }; ionutnechita = { @@ -9723,7 +9723,7 @@ istoph = { email = "chr@istoph.de"; name = "Christoph Hüffelmann"; - github = "istoph"; + github = "istof"; githubId = 114227790; }; istudyatuni = { @@ -10038,7 +10038,7 @@ janlikar = { name = "Jan Likar"; email = "jan.likar@protonmail.com"; - github = "janlikar"; + github = "JanLikar"; githubId = 4228250; }; jansol = { @@ -10097,7 +10097,7 @@ jayesh-bhoot = { name = "Jayesh Bhoot"; email = "jb@jayeshbhoot.com"; - github = "jyssh"; + github = "jbhoot"; githubId = 1915507; }; jayman2000 = { @@ -10275,7 +10275,7 @@ }; jedsek = { email = "jedsek@qq.com"; - github = "jedsek"; + github = "Jedsek"; githubId = 63626406; name = "Jedsek"; }; @@ -11868,7 +11868,7 @@ knarkzel = { email = "knarkzel@gmail.com"; name = "Knarkzel"; - github = "Knarkzel"; + github = "svelterust"; githubId = 85593302; }; knedlsepp = { @@ -12420,7 +12420,7 @@ name = "Jacob LeCoq"; email = "lecoqjacob@gmail.com"; githubId = 9278174; - github = "lecoqjacob"; + github = "bayou-brogrammer"; keys = [ { fingerprint = "C505 1E8B 06AC 1776 6875 1B60 93AF DAD0 10B3 CB8D"; } ]; }; ledif = { @@ -12512,7 +12512,7 @@ }; leonid = { email = "belyaev.l@northeastern.edu"; - github = "leonidbelyaev"; + github = "aeblyve"; githubId = 77865363; name = "Leonid Belyaev"; }; @@ -12618,7 +12618,7 @@ }; libjared = { email = "jared@perrycode.com"; - github = "libjared"; + github = "hypevhs"; githubId = 3746656; matrix = "@libjared:matrix.org"; name = "Jared Perry"; @@ -12675,7 +12675,7 @@ }; lillycham = { email = "lillycat332@gmail.com"; - github = "lillycat332"; + github = "lillycham"; githubId = 54189319; name = "Lilly Cham"; }; @@ -12828,7 +12828,7 @@ logo = { email = "logo4poop@protonmail.com"; matrix = "@logo4poop:matrix.org"; - github = "logo4poop"; + github = "l0go"; githubId = 24994565; name = "Isaac Silverstein"; }; @@ -13001,7 +13001,7 @@ }; lu15w1r7h = { email = "lwirth2000@gmail.com"; - github = "LU15W1R7H"; + github = "luiswirth"; githubId = 37505890; name = "Luis Wirth"; }; @@ -14846,7 +14846,7 @@ }; modderme123 = { email = "modderme123@gmail.com"; - github = "modderme123"; + github = "milomg"; githubId = 14153763; name = "modderme123"; }; @@ -15192,7 +15192,7 @@ }; mtrsk = { email = "marcos.schonfinkel@protonmail.com"; - github = "mtrsk"; + github = "schonfinkel"; githubId = 16356569; name = "Marcos Benevides"; }; @@ -15391,7 +15391,7 @@ Name = { name = "Name"; email = "lasagna@garfunkles.space"; - github = "namescode"; + github = "NamesCode"; githubId = 86119896; }; name-snrl = { @@ -15446,7 +15446,7 @@ name = "Nathan Bijnens"; }; nathanielbrough = { - github = "silvergasp"; + github = "nathaniel-brough"; githubId = 7277663; email = "nathaniel.brough@gmail.com"; name = "Nathaniel Brough"; @@ -15512,7 +15512,7 @@ nbsp = { email = "aoife@enby.space"; matrix = "@nbsp:enby.space"; - github = "enbyspace"; + github = "nbsp"; githubId = 57151943; name = "aoife cassidy"; }; @@ -15617,7 +15617,7 @@ }; nerdypepper = { email = "nerdy@peppe.rs"; - github = "nerdypepper"; + github = "oppiliappan"; githubId = 23743547; name = "Akshay Oppiliappan"; }; @@ -16625,7 +16625,7 @@ }; osener = { email = "ozan@ozansener.com"; - github = "osener"; + github = "ozanmakes"; githubId = 111265; name = "Ozan Sener"; }; @@ -16688,7 +16688,7 @@ }; oxapentane = { email = "blame@oxapentane.com"; - github = "oxapentane"; + github = "gshipunov"; githubId = 1297357; name = "Grigory Shipunov"; keys = [ { fingerprint = "DD09 98E6 CDF2 9453 7FC6 04F9 91FA 5E5B F9AA 901C"; } ]; @@ -16764,7 +16764,7 @@ }; paddygord = { email = "pgpatrickgordon@gmail.com"; - github = "avaunit02"; + github = "avagordon01"; githubId = 10776658; name = "Patrick Gordon"; }; @@ -16932,7 +16932,7 @@ }; patricksjackson = { email = "patrick@jackson.dev"; - github = "patricksjackson"; + github = "arcuru"; githubId = 160646; name = "Patrick Jackson"; }; @@ -16986,7 +16986,7 @@ }; pawelpacana = { email = "pawel.pacana@gmail.com"; - github = "pawelpacana"; + github = "mostlyobvious"; githubId = 116740; name = "Paweł Pacana"; }; @@ -17149,7 +17149,7 @@ }; petercommand = { email = "petercommand@gmail.com"; - github = "petercommand"; + github = "ptrcmd"; githubId = 1260660; name = "petercommand"; }; @@ -17236,7 +17236,7 @@ name = "Léo Lavaur"; email = "phdcybersec@pm.me"; - github = "phdcybersec"; + github = "leolavaur"; githubId = 82591009; keys = [ { fingerprint = "7756 E88F 3C6A 47A5 C5F0 CDFB AB54 6777 F93E 20BF"; } ]; }; @@ -18564,7 +18564,7 @@ realsnick = { name = "Ido Samuelson"; email = "ido.samuelson@gmail.com"; - github = "realsnick"; + github = "i-am-logger"; githubId = 1440852; }; reckenrode = { @@ -19718,7 +19718,7 @@ }; sanana = { email = "asya@waifu.club"; - github = "AsyaTheAbove"; + github = "lunabunja"; githubId = 40492846; keys = [ { fingerprint = "B766 7717 1644 5ABC DE82 94AA 4679 BF7D CC04 4783"; } ]; name = "sanana the skenana"; @@ -19858,7 +19858,7 @@ }; schinmai-akamai = { email = "schinmai@akamai.com"; - github = "schinmai-akamai"; + github = "tchinmai7"; githubId = 70169773; name = "Tarun Chinmai Sekar"; }; @@ -19931,7 +19931,7 @@ }; scoder12 = { name = "Spencer Pogorzelski"; - github = "Scoder12"; + github = "spencerpogo"; githubId = 34356756; }; scolobb = { @@ -20775,7 +20775,7 @@ }; smironov = { email = "grrwlf@gmail.com"; - github = "grwlf"; + github = "sergei-mironov"; githubId = 4477729; name = "Sergey Mironov"; }; @@ -22170,7 +22170,7 @@ }; therealr5 = { email = "rouven@rfive.de"; - github = "therealr5"; + github = "rouven0"; githubId = 72568063; name = "Rouven Seifert"; keys = [ { fingerprint = "1169 87A8 DD3F 78FF 8601 BF4D B95E 8FE6 B11C 4D09"; } ]; @@ -22607,7 +22607,7 @@ tomsiewert = { email = "tom@siewert.io"; matrix = "@tom:frickel.earth"; - github = "tomsiewert"; + github = "sinuscosinustan"; githubId = 8794235; name = "Tom Siewert"; }; @@ -23516,7 +23516,7 @@ }; voidless = { email = "julius.schmitt@yahoo.de"; - github = "voidIess"; + github = "bratorange"; githubId = 45292658; name = "Julius Schmitt"; }; diff --git a/maintainers/scripts/check-maintainer-usernames/.gitignore b/maintainers/scripts/check-maintainer-usernames/.gitignore new file mode 100644 index 000000000000..ea8c4bf7f35f --- /dev/null +++ b/maintainers/scripts/check-maintainer-usernames/.gitignore @@ -0,0 +1 @@ +/target diff --git a/maintainers/scripts/check-maintainer-usernames/Cargo.toml b/maintainers/scripts/check-maintainer-usernames/Cargo.toml new file mode 100644 index 000000000000..9edbb3281c00 --- /dev/null +++ b/maintainers/scripts/check-maintainer-usernames/Cargo.toml @@ -0,0 +1,9 @@ +[package] +name = "check-maintainers" +version = "0.1.0" +edition = "2021" + +[dependencies] +octocrab = "0.42.1" +serde_json = "1.0.133" +tokio = { version = "1.41.1", features = ["fs", "macros", "rt-multi-thread"] } diff --git a/maintainers/scripts/check-maintainer-usernames/src/main.rs b/maintainers/scripts/check-maintainer-usernames/src/main.rs new file mode 100644 index 000000000000..02058ab008c7 --- /dev/null +++ b/maintainers/scripts/check-maintainer-usernames/src/main.rs @@ -0,0 +1,42 @@ +use std::{env, error::Error, io::{self, Write}}; + +use tokio::fs; + +#[tokio::main] +async fn main() { + real_main().await.unwrap(); +} + +async fn real_main() -> Result<(), Box> { + let gh = octocrab::OctocrabBuilder::default() + .personal_token(env::var("GITHUB_PAT").expect("no GITHUB_PAT configured")) + .build()?; + + // first run: nix-instantiate -A lib.maintainers --eval --strict --json > maintainers.json + let data: serde_json::Value = serde_json::from_str(&fs::read_to_string("maintainers.json").await?)?; + + let data = data.as_object().unwrap(); + let total = data.len(); + for (i, (maintainer_name, v)) in data.iter().enumerate() { + print!("\r{i}/{total}"); + io::stdout().flush()?; + let Some(github_id) = v.get("githubId") else { + println!("\rWARN: no id for {maintainer_name}"); + continue; + }; + let Some(github) = v.get("github") else { + println!("\rWARN: no username for {maintainer_name}"); + continue; + }; + let Ok(name) = gh.users_by_id(github_id.as_u64().unwrap()).profile().await else { + println!("\rWARN: error fetching {maintainer_name}"); + continue; + }; + let name = name.login; + if name.to_ascii_lowercase() != github.as_str().unwrap().to_ascii_lowercase() { + println!("\rERR: {maintainer_name} has github = {github}, but username really is '{name}'"); + } + } + + Ok(()) +}