diff options
| author | seth <[email protected]> | 2023-07-08 19:13:06 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2023-07-08 19:13:06 -0400 |
| commit | c0f09dbff53c41ddcfd0c08bd4121b4978c32999 (patch) | |
| tree | 220c5c607b34dee167f90d2d0a4aa915ac758d19 /pkgs/check-pr.nix | |
| parent | d207d629aff4cdc6b046c92242229e976a0f296b (diff) | |
pkgs: init check-pr
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}" + ''; +} |
