diff options
author | Rodrigo Locatti <reinuseslisp@airmail.cc> | 2019-09-26 19:30:33 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-26 19:30:33 -0300 |
commit | c4a99944f2faf4092842cf9a5b84f44c128f5809 (patch) | |
tree | 7b2b2b2b1dcb3c22833bf527a0505c0e9b093526 /.ci/scripts/merge/apply-patches-by-label.py | |
parent | da0737359900c6fad1ab8818f883b3da0b79f63e (diff) | |
parent | 867e1db287c832a77164abe0b6550638406723a9 (diff) |
Merge pull request #2911 from DarkLordZach/azure-patreon
ci: Add azure patreon pipeline
Diffstat (limited to '.ci/scripts/merge/apply-patches-by-label.py')
-rw-r--r-- | .ci/scripts/merge/apply-patches-by-label.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/.ci/scripts/merge/apply-patches-by-label.py b/.ci/scripts/merge/apply-patches-by-label.py index b346001a5..7f1ea06cf 100644 --- a/.ci/scripts/merge/apply-patches-by-label.py +++ b/.ci/scripts/merge/apply-patches-by-label.py @@ -1,7 +1,9 @@ # Download all pull requests as patches that match a specific label # Usage: python download-patches-by-label.py <Label to Match> <Root Path Folder to DL to> -import requests, sys, json, urllib3.request, shutil, subprocess +import requests, sys, json, urllib3.request, shutil, subprocess, os + +tagline = os.getenv("MergeTaglinePublic".upper(), "") http = urllib3.PoolManager() dl_list = {} @@ -23,6 +25,6 @@ try: print("Matched PR# %s" % pn) 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 PR %s\"" % pn])) + print(subprocess.check_output(["git", "commit", "-m\"Merge %s PR %s\"" % (tagline, pn)])) except: sys.exit(-1) |