def get_milestone_for_branch(channel_branch): global config 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 + ' - '): return milestone['number'] return None
def get_milestone_for_branch(channel_branch): global config 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 + ' - '): return milestone['number'] return None
def get_milestone_for_branch(channel_branch): global config if not config.milestones: config.milestones = get_milestones(config.github_token, adrbrowsiel_CORE_REPO) for milestone in config.milestones: if (milestone['title'].startswith(channel_branch + ' - ') or milestone['title'].startswith('Android ' + channel_branch + ' - ')): return milestone['number'] return None