]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
prscript: support bigger PR
authorEric Leblond <eric@regit.org>
Wed, 11 Sep 2013 10:08:52 +0000 (12:08 +0200)
committerEric Leblond <eric@regit.org>
Wed, 25 Sep 2013 19:00:53 +0000 (21:00 +0200)
The script now looks for originan HEAD in 100 commits instead of 30.
It should be enough becasue a sane PR should not have 100 commits.

qa/prscript.py

index 594d579d3448dd423055e486977e84341936249e..17a9c7fbcc3bf1a313bcb71a21ee506814208a0b 100755 (executable)
@@ -46,7 +46,7 @@ def TestRepoSync(branch):
     page = urllib2.urlopen(request)
     json_result = json.loads(page.read())
     sha_orig = json_result[0]["sha"]
-    request = urllib2.Request(GITHUB_BASE_URI + username + "/" + args.repository + "/commits?sha=" + branch)
+    request = urllib2.Request(GITHUB_BASE_URI + username + "/" + args.repository + "/commits?sha=" + branch + "&per_page=100")
     page = urllib2.urlopen(request)
     json_result = json.loads(page.read())
     found = -1