mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-11 17:54:30 +02:00
ci/tag-maintainers: pass changed file to nix as json
This commit is contained in:
parent
cd856a327c
commit
8eaf9254a1
1 changed files with 3 additions and 2 deletions
|
@ -39,8 +39,9 @@ def extract_maintainers(changed_files: List[str], pr_author: str) -> List[str]:
|
|||
print("Finding maintainers for changed files...", file=sys.stderr)
|
||||
|
||||
file = Path(__file__).parent / "extract-maintainers.nix"
|
||||
changed_files_nix = "[ " + " ".join(f'"{f}"' for f in changed_files) + " ]"
|
||||
result = run_nix_eval(file, "--arg", "changedFiles", changed_files_nix)
|
||||
result = run_nix_eval(
|
||||
file, "--argstr", "changedFilesJson", json.dumps(changed_files)
|
||||
)
|
||||
|
||||
try:
|
||||
maintainers = json.loads(result)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue