示例#1
0
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
示例#2
0
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
示例#3
0
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