anyMatchingFiles = files: builtins.any anyMatchingFile files;
25
-
attrsWithMaintainers = builtins.map (
28
-
package = lib.getAttrFromPath (lib.splitString "." name) pkgs;
32
-
# TODO: Refactor this so we can ping entire teams instead of the individual members.
33
-
# Note that this will require keeping track of GH team IDs in "maintainers/teams.nix".
34
-
maintainers = package.meta.maintainers or [ ];
36
-
) (changedattrs ++ removedattrs);
25
+
attrsWithMaintainers = lib.pipe (changedattrs ++ removedattrs) [
29
+
# Some packages might be reported as changed on a different platform, but
30
+
# not even have an attribute on the platform the maintainers are requested on.
31
+
# Fallback to `null` for these to filter them out below.
32
+
package = lib.attrByPath (lib.splitString "." name) null pkgs;
36
+
# TODO: Refactor this so we can ping entire teams instead of the individual members.
37
+
# Note that this will require keeping track of GH team IDs in "maintainers/teams.nix".
38
+
maintainers = package.meta.maintainers or [ ];
41
+
# No need to match up packages without maintainers with their files.
42
+
# This also filters out attributes where `packge = null`, which is the
43
+
# case for libintl, for example.
44
+
(builtins.filter (pkg: pkg.maintainers != [ ]))