This is an automated email from the ASF dual-hosted git repository.

zwoop pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git

The following commit(s) were added to refs/heads/master by this push:
       new  11cc5d4   Allow the tool to apply multiple PRs
11cc5d4 is described below

commit 11cc5d4e62c4c2bc9c8039a7673a9fef95a509a7
Author: Leif Hedstrom <[email protected]>
AuthorDate: Thu Jun 1 09:58:33 2017 -0600

    Allow the tool to apply multiple PRs
---
 tools/apply-pr.sh | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/tools/apply-pr.sh b/tools/apply-pr.sh
index 1cb6399..15e1643 100755
--- a/tools/apply-pr.sh
+++ b/tools/apply-pr.sh
@@ -20,13 +20,13 @@
 
 set -e # exit on error
 
-PR="$1"
-URI="https://patch-diff.githubusercontent.com/raw/apache/trafficserver/pull/${PR}.diff";
 
-if [[ "$PR" =~ ^[0-9]+$ ]];  then
-    echo "Applying changes from $URI ..."
-    curl -s $URI | patch -p1
-else
-    echo "$PR is not a valid pull request"
-    exit -1
-fi
+for pr in $@; do
+    if [[ "$pr" =~ ^[0-9]+$ ]];  then
+       
URI="https://patch-diff.githubusercontent.com/raw/apache/trafficserver/pull/${pr}.diff";
+       echo "Applying changes from $URI ..."
+       curl -s $URI | patch -p1
+    else
+       echo "$PR is not a valid pull request, skipping"
+    fi
+done

-- 
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].

Reply via email to