From 2f2221f44c6e2d91f9ffd9484105337c2b83a6a1 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Tue, 26 Aug 2025 13:14:46 +0200 Subject: [PATCH] maintainers: require GitHub handle At the scale of Nixpkgs, actively maintaining a package is only possible with integration into CI. To be able to be pinged for review requests, the maintainer must have a GitHub handle, which: - Leads to an invitation to the NixOS org, which comes with additional privileges. - Allows to request the maintainer for review as a member of this org. - Automatically requests the maintainer for review in CI. Currently, the GitHub handle is not strictly enforced. This leads to some new maintainers accidentally forgetting to set these. We can avoid these mistakes and enforce them via CI. (cherry picked from commit 568b19f6568997c6a90b81a562f7d55197d610b7) --- lib/tests/maintainer-module.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/tests/maintainer-module.nix b/lib/tests/maintainer-module.nix index ef8dd935da32..b4d01b837dc3 100644 --- a/lib/tests/maintainer-module.nix +++ b/lib/tests/maintainer-module.nix @@ -7,6 +7,12 @@ in name = lib.mkOption { type = types.str; }; + github = lib.mkOption { + type = types.str; + }; + githubId = lib.mkOption { + type = types.ints.unsigned; + }; email = lib.mkOption { type = types.nullOr types.str; default = null; @@ -15,14 +21,6 @@ in type = types.nullOr types.str; default = null; }; - github = lib.mkOption { - type = types.nullOr types.str; - default = null; - }; - githubId = lib.mkOption { - type = types.nullOr types.ints.unsigned; - default = null; - }; keys = lib.mkOption { type = types.listOf ( types.submodule {