|
46 | 46 | # Remote name where results pushed |
47 | 47 | PUSH_REMOTE_NAME = os.environ.get("PUSH_REMOTE_NAME", "upstream") |
48 | 48 |
|
49 | | -GITHUB_BASE = "https://github.com/pydata/" + PROJECT_NAME + "/pull" |
50 | | -GITHUB_API_BASE = "https://api.github.com/repos/pydata/" + PROJECT_NAME |
| 49 | +GITHUB_BASE = "https://github.com/pandas-dev/" + PROJECT_NAME + "/pull" |
| 50 | +GITHUB_API_BASE = "https://api.github.com/repos/pandas-dev/" + PROJECT_NAME |
51 | 51 |
|
52 | 52 | # Prefix added to temporary branches |
53 | 53 | BRANCH_PREFIX = "PR_TOOL" |
@@ -124,7 +124,7 @@ def clean_up(): |
124 | 124 | run_cmd("git branch -D %s" % branch) |
125 | 125 |
|
126 | 126 |
|
127 | | -# merge the requested PR and return the merge hash |
| 127 | +# Merge the requested PR and return the merge hash |
128 | 128 | def merge_pr(pr_num, target_ref): |
129 | 129 |
|
130 | 130 | pr_branch_name = "%s_MERGE_PR_%s" % (BRANCH_PREFIX, pr_num) |
@@ -244,13 +244,6 @@ def fix_version_from_branch(branch, versions): |
244 | 244 | branch_ver = branch.replace("branch-", "") |
245 | 245 | return filter(lambda x: x.name.startswith(branch_ver), versions)[-1] |
246 | 246 |
|
247 | | - |
248 | | -# branches = get_json("%s/branches" % GITHUB_API_BASE) |
249 | | -# branch_names = filter(lambda x: x.startswith("branch-"), |
250 | | -# [x['name'] for x in branches]) |
251 | | -# Assumes branch names can be sorted lexicographically |
252 | | -# latest_branch = sorted(branch_names, reverse=True)[0] |
253 | | - |
254 | 247 | pr_num = input("Which pull request would you like to merge? (e.g. 34): ") |
255 | 248 | pr = get_json("%s/pulls/%s" % (GITHUB_API_BASE, pr_num)) |
256 | 249 |
|
|
0 commit comments