diff options
author | Naïm Favier <n@monade.li> | 2023-01-05 14:43:03 +0100 |
---|---|---|
committer | Naïm Favier <n@monade.li> | 2023-01-27 18:05:28 +0100 |
commit | 93dc2de29a92b3bcfb11b3f6a8c8ff8447ad162a (patch) | |
tree | 706d19f6c442634fcc28e203fba9c18a2acc894c | |
parent | c165d8de6fcaa019b24635bc7ee9055a7ce922be (diff) |
maintainers: disallow `noreply.github.com` emails
-rw-r--r-- | lib/tests/maintainers.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tests/maintainers.nix b/lib/tests/maintainers.nix index f82b63649b1f6..cb1e9ddd52881 100644 --- a/lib/tests/maintainers.nix +++ b/lib/tests/maintainers.nix @@ -30,6 +30,8 @@ let echo -e " githubId = $id;\n" '' ++ lib.optional (checkedAttrs.email == null && checkedAttrs.github == null && checkedAttrs.matrix == null) '' echo ${lib.escapeShellArg (lib.showOption prefix)}': At least one of `email`, `github` or `matrix` must be specified, so that users know how to reach you.' + '' ++ lib.optional (checkedAttrs.email != null && lib.hasSuffix "noreply.github.com" checkedAttrs.email) '' + echo ${lib.escapeShellArg (lib.showOption prefix)}': If an email address is given, it should allow people to reach you. If you do not want that, you can just provide `github` or `matrix` instead.' ''; in lib.deepSeq checkedAttrs checks; |