Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 12 additions & 6 deletions ci/eval/compare/maintainers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,20 @@ let

attrsWithModifiedFiles = builtins.filter (pkg: anyMatchingFiles pkg.filenames) attrsWithFilenames;

# TODO: create ping lists for other contacts once non-GitHub ping
# implementations get merged
Comment on lines +98 to +99
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I won't accept this TODO.

listToPing = lib.concatMap (
pkg:
builtins.map (maintainer: {
id = maintainer.githubId;
inherit (maintainer) github;
packageName = pkg.name;
dueToFiles = pkg.filenames;
}) pkg.maintainers
builtins.map
(maintainer: {
id = maintainer.githubId;
inherit (maintainer) github;
packageName = pkg.name;
dueToFiles = pkg.filenames;
})
# TODO: If community consensus (e.g. an RFC) makes `githubId` mandatory,
# simplify to `pkg.maintainers`
Comment on lines +109 to +110
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Community consensus is already reached, this is just about getting the implementation merged, so I won't accept this TODO either.

(builtins.filter (maintainer: maintainer ? githubId) pkg.maintainers)
) attrsWithModifiedFiles;

byMaintainer = lib.groupBy (ping: toString ping.${if byName then "github" else "id"}) listToPing;
Expand Down
Loading