mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-11 01:34:32 +02:00
ci/tag-maintainers: minor cleanup
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
Some checks are pending
Publish every Git push to main to FlakeHub / flakehub-publish (push) Waiting to run
Publish every git push to Flakestry / publish-flake (push) Waiting to run
Documentation / Version info (push) Waiting to run
Documentation / Build (push) Blocked by required conditions
Documentation / Combine builds (push) Blocked by required conditions
Documentation / Deploy (push) Blocked by required conditions
This commit is contained in:
parent
8eaf9254a1
commit
2e24f8e62b
1 changed files with 12 additions and 13 deletions
|
@ -12,20 +12,19 @@ let
|
||||||
inherit (emptyConfig.config.meta) maintainers;
|
inherit (emptyConfig.config.meta) maintainers;
|
||||||
|
|
||||||
# Find maintainers for files that match changed plugin directories
|
# Find maintainers for files that match changed plugin directories
|
||||||
relevantMaintainers = lib.concatLists (
|
relevantMaintainers = lib.pipe maintainers [
|
||||||
lib.mapAttrsToList (
|
(lib.filterAttrs (path: _: lib.any (file: lib.hasSuffix (dirOf file) path) changedFiles))
|
||||||
path: maintainerList:
|
lib.attrValues
|
||||||
let
|
lib.concatLists
|
||||||
matchingFiles = lib.filter (file: lib.hasSuffix (dirOf file) path) changedFiles;
|
lib.unique
|
||||||
in
|
];
|
||||||
if matchingFiles != [ ] then maintainerList else [ ]
|
|
||||||
) maintainers
|
|
||||||
);
|
|
||||||
|
|
||||||
# Extract GitHub usernames
|
# Extract GitHub usernames
|
||||||
githubUsers = lib.concatMap (
|
githubUsers = lib.pipe relevantMaintainers [
|
||||||
maintainer: if maintainer ? github then [ maintainer.github ] else [ ]
|
(lib.filter (maintainer: maintainer ? github))
|
||||||
) relevantMaintainers;
|
(map (maintainer: maintainer.github))
|
||||||
|
lib.unique
|
||||||
|
];
|
||||||
|
|
||||||
in
|
in
|
||||||
lib.unique githubUsers
|
githubUsers
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue