mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-10 17:24: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;
|
||||
|
||||
# Find maintainers for files that match changed plugin directories
|
||||
relevantMaintainers = lib.concatLists (
|
||||
lib.mapAttrsToList (
|
||||
path: maintainerList:
|
||||
let
|
||||
matchingFiles = lib.filter (file: lib.hasSuffix (dirOf file) path) changedFiles;
|
||||
in
|
||||
if matchingFiles != [ ] then maintainerList else [ ]
|
||||
) maintainers
|
||||
);
|
||||
relevantMaintainers = lib.pipe maintainers [
|
||||
(lib.filterAttrs (path: _: lib.any (file: lib.hasSuffix (dirOf file) path) changedFiles))
|
||||
lib.attrValues
|
||||
lib.concatLists
|
||||
lib.unique
|
||||
];
|
||||
|
||||
# Extract GitHub usernames
|
||||
githubUsers = lib.concatMap (
|
||||
maintainer: if maintainer ? github then [ maintainer.github ] else [ ]
|
||||
) relevantMaintainers;
|
||||
githubUsers = lib.pipe relevantMaintainers [
|
||||
(lib.filter (maintainer: maintainer ? github))
|
||||
(map (maintainer: maintainer.github))
|
||||
lib.unique
|
||||
];
|
||||
|
||||
in
|
||||
lib.unique githubUsers
|
||||
githubUsers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue