prscript: support bigger PR

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.
pull/560/head
Eric Leblond 12 years ago
parent ad1546d59a
commit fa861b09ac

@ -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

Loading…
Cancel
Save