From 789e0d81bdbe413787da3573c8d44760286c5e84 Mon Sep 17 00:00:00 2001 From: Graham Christensen Date: Tue, 1 Jan 2019 15:25:04 -0500 Subject: [PATCH] Update the maintainers script for clarity on how to call it --- maintainers.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/maintainers.sh b/maintainers.sh index 1e4456e..6c1da4f 100755 --- a/maintainers.sh +++ b/maintainers.sh @@ -3,7 +3,9 @@ set -euxo pipefail -statuses_url=$(curl --fail -L "https://api.github.com/repos/nixos/nixpkgs/pulls/$1" \ +PRNUM=$1 + +statuses_url=$(curl --fail -L "https://api.github.com/repos/nixos/nixpkgs/pulls/$PRNUM" \ | jq -r .statuses_url) changed_url=$(curl --fail -L "$statuses_url" \ @@ -33,7 +35,7 @@ EOF changedpaths = [' - curl --fail -L "https://github.com/NixOS/nixpkgs/pull/$1.patch" \ + curl --fail -L "https://github.com/NixOS/nixpkgs/pull/$PRNUM.patch" \ | grep "^+++ b/" | sed -e "s/^+++ b//" \ | sed -e 's/^/"/' | sed -e 's/$/"/' \ | sort | uniq