diff options
| author | seth <[email protected]> | 2023-12-24 04:20:53 -0500 |
|---|---|---|
| committer | seth <[email protected]> | 2023-12-24 05:18:20 -0500 |
| commit | 0fc48fd45f756534648d989f5a2c4f3060464218 (patch) | |
| tree | 41293f12d3de3bd9f186785242b96addcc4d30b1 /pkgs/check-pr.nix | |
| parent | 20993feb4a35eb279beab4a7af2c993f5fb620ce (diff) | |
pkgs: auto-import directories *and* files
Diffstat (limited to 'pkgs/check-pr.nix')
| -rw-r--r-- | pkgs/check-pr.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/pkgs/check-pr.nix b/pkgs/check-pr.nix new file mode 100644 index 0000000..fca30b1 --- /dev/null +++ b/pkgs/check-pr.nix @@ -0,0 +1,13 @@ +{writeShellApplication}: +writeShellApplication { + name = "check-pr"; + text = '' + _usage=" + usage: check-pr <owner/repo> <pr_id> [package] + " + + [ "$#" -lt 2 ] && echo -n "$_usage" && exit 1 + + nix run "github:$1?ref=pull/$2/head''${3:+#$3}" + ''; +} |
