From d3b6386f1fe0bcaa54d6aaaf992a5aa252e4eaed Mon Sep 17 00:00:00 2001 From: Matt Bacchi Date: Mon, 6 Jul 2020 15:57:53 -0600 Subject: [PATCH] Check for milestone name starting with "Android" Resolves: https://github.com/brave/brave-browser/issues/10449 --- script/uplift.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/script/uplift.py b/script/uplift.py index 5b37253fe14..213ac4e73e6 100755 --- a/script/uplift.py +++ b/script/uplift.py @@ -415,7 +415,8 @@ def get_milestone_for_branch(channel_branch): if not config.milestones: config.milestones = get_milestones(config.github_token, BRAVE_CORE_REPO) for milestone in config.milestones: - if milestone['title'].startswith(channel_branch + ' - '): + if (milestone['title'].startswith(channel_branch + ' - ') or + milestone['title'].startswith('Android ' + channel_branch + ' - ')): return milestone['number'] return None @@ -426,7 +427,7 @@ def submit_pr(channel, top_level_base, remote_base, local_branch, issues_fixed): try: milestone_number = get_milestone_for_branch(remote_base) if milestone_number is None: - print('milestone for "' + remote_base + '"" was not found!') + print('milestone for "' + remote_base + '" was not found!') return 0 print('(' + channel + ') creating pull request')