From cdd1931ace63fb69056d7b1b978a5d866b981fe5 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Mon, 14 Jul 2025 10:34:25 +0200 Subject: [PATCH] ci/github-script: add gh dependency to dev shell --- ci/github-script/README.md | 2 +- ci/github-script/shell.nix | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ci/github-script/README.md b/ci/github-script/README.md index 8ffff0c40922..caf52eb5bba3 100644 --- a/ci/github-script/README.md +++ b/ci/github-script/README.md @@ -5,8 +5,8 @@ It provides a `nix-shell` environment to run and test these actions locally. To run any of the scripts locally: -- Provide `gh` on `PATH` and make sure it's authenticated. - Enter `nix-shell` in `./ci/github-script`. +- Ensure `gh` is authenticated. ## Labeler diff --git a/ci/github-script/shell.nix b/ci/github-script/shell.nix index dd84ba3ad73d..82f03de4b1a0 100644 --- a/ci/github-script/shell.nix +++ b/ci/github-script/shell.nix @@ -5,12 +5,14 @@ pkgs.callPackage ( { - mkShell, + gh, importNpmLock, + mkShell, nodejs, }: mkShell { packages = [ + gh importNpmLock.hooks.linkNodeModulesHook nodejs ];