summaryrefslogtreecommitdiffstats
path: root/.ci/scripts/merge/apply-patches-by-label.py
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-10-02 05:22:49 +0200
committerGitHub <noreply@github.com>2019-10-02 05:22:49 +0200
commitf8ce672b67075cb4989bc25a42c61c121de54b3c (patch)
tree1a8611be62cfe444b9b507feec59f7d9197f9b3b /.ci/scripts/merge/apply-patches-by-label.py
parentMerge pull request #2904 from ogniK5377/better-signal-hid (diff)
parentci: Check additional pages on GitHub (diff)
downloadyuzu-f8ce672b67075cb4989bc25a42c61c121de54b3c.tar
yuzu-f8ce672b67075cb4989bc25a42c61c121de54b3c.tar.gz
yuzu-f8ce672b67075cb4989bc25a42c61c121de54b3c.tar.bz2
yuzu-f8ce672b67075cb4989bc25a42c61c121de54b3c.tar.lz
yuzu-f8ce672b67075cb4989bc25a42c61c121de54b3c.tar.xz
yuzu-f8ce672b67075cb4989bc25a42c61c121de54b3c.tar.zst
yuzu-f8ce672b67075cb4989bc25a42c61c121de54b3c.zip
Diffstat (limited to '.ci/scripts/merge/apply-patches-by-label.py')
-rw-r--r--.ci/scripts/merge/apply-patches-by-label.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/.ci/scripts/merge/apply-patches-by-label.py b/.ci/scripts/merge/apply-patches-by-label.py
index e81db9287..43ed74d7f 100644
--- a/.ci/scripts/merge/apply-patches-by-label.py
+++ b/.ci/scripts/merge/apply-patches-by-label.py
@@ -14,11 +14,13 @@ def check_individual(labels):
return True
return False
-try:
- url = 'https://api.github.com/repos/yuzu-emu/yuzu/pulls'
+def do_page(page):
+ url = 'https://api.github.com/repos/yuzu-emu/yuzu/pulls?page=%s' % page
response = requests.get(url)
if (response.ok):
j = json.loads(response.content)
+ if j == []:
+ return
for pr in j:
if (check_individual(pr["labels"])):
pn = pr["number"]
@@ -26,5 +28,9 @@ try:
print(subprocess.check_output(["git", "fetch", "https://github.com/yuzu-emu/yuzu.git", "pull/%s/head:pr-%s" % (pn, pn), "-f"]))
print(subprocess.check_output(["git", "merge", "--squash", "pr-%s" % pn]))
print(subprocess.check_output(["git", "commit", "-m\"Merge %s PR %s\"" % (tagline, pn)]))
+
+try:
+ for i in range(1,30):
+ do_page(i)
except:
sys.exit(-1)