diff options
author | Zach Hilman <zachhilman@gmail.com> | 2019-10-02 03:38:04 +0200 |
---|---|---|
committer | Zach Hilman <zachhilman@gmail.com> | 2019-10-02 03:38:09 +0200 |
commit | 7d46416a16a3d6eb53ebd05d489edc77dc2ae14e (patch) | |
tree | a68547b4971b1bcd9462685e26d4be5afdff3ebb /.ci/scripts/merge/apply-patches-by-label.py | |
parent | Merge pull request #2904 from ogniK5377/better-signal-hid (diff) | |
download | yuzu-7d46416a16a3d6eb53ebd05d489edc77dc2ae14e.tar yuzu-7d46416a16a3d6eb53ebd05d489edc77dc2ae14e.tar.gz yuzu-7d46416a16a3d6eb53ebd05d489edc77dc2ae14e.tar.bz2 yuzu-7d46416a16a3d6eb53ebd05d489edc77dc2ae14e.tar.lz yuzu-7d46416a16a3d6eb53ebd05d489edc77dc2ae14e.tar.xz yuzu-7d46416a16a3d6eb53ebd05d489edc77dc2ae14e.tar.zst yuzu-7d46416a16a3d6eb53ebd05d489edc77dc2ae14e.zip |
Diffstat (limited to '')
-rw-r--r-- | .ci/scripts/merge/apply-patches-by-label.py | 8 |
1 files changed, 6 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..ab6bebbe5 100644 --- a/.ci/scripts/merge/apply-patches-by-label.py +++ b/.ci/scripts/merge/apply-patches-by-label.py @@ -14,8 +14,8 @@ 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) @@ -26,5 +26,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,4): + do_page(i) except: sys.exit(-1) |