Esempio n. 1
0
def is_committed_in_branch(series, branch):
    committed = False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            continue

        if not message.has_key('commit'):
            return False
        elif message['tree'] != branch:
            return False
        else:
            committed = True

    return committed
Esempio n. 2
0
def is_committed_in_branch(series, branch):
    committed = False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            continue

        if not message.has_key('commit'):
            return False
        elif message['tree'] != branch:
            return False
        else:
            committed = True

    return committed
Esempio n. 3
0
def is_committed_in_branch(series, branch):
    committed = False

    for message in series["messages"]:
        if message.has_key("cover") and message["cover"]:
            continue

        if not message.has_key("commit"):
            return False
        elif message["tree"] != branch:
            return False
        else:
            committed = True

    return committed
Esempio n. 4
0
def is_committed(series):
    committed = False

    if is_pull_request(series):
        if 'commit' in series['messages'][0]['pull-request']:
            return True
        elif is_committed_in_branch(series, config.get_master_branch()):
            return True
        return False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            continue

        if not message.has_key('commit'):
            return False
        else:
            committed = True

    return committed
Esempio n. 5
0
def is_committed(series):
    committed = False

    if is_pull_request(series):
        if "commit" in series["messages"][0]["pull-request"]:
            return True
        elif is_committed_in_branch(series, config.get_master_branch()):
            return True
        return False

    for message in series["messages"]:
        if message.has_key("cover") and message["cover"]:
            continue

        if not message.has_key("commit"):
            return False
        else:
            committed = True

    return committed
Esempio n. 6
0
def is_committed(series):
    committed = False

    if is_pull_request(series):
        if 'commit' in series['messages'][0]['pull-request']:
            return True
        elif is_committed_in_branch(series, config.get_master_branch()):
            return True
        return False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            continue

        if not message.has_key('commit'):
            return False
        else:
            committed = True

    return committed
Esempio n. 7
0
def is_reviewed(series):
    found = False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            if 'Reviewed-by' in message['tags']:
                return True
            continue

        if 'Reviewed-by' not in message['tags']:
            return False

        found = True

    return found
Esempio n. 8
0
def is_reviewed(series):
    found = False

    for message in series["messages"]:
        if message.has_key("cover") and message["cover"]:
            if "Reviewed-by" in message["tags"]:
                return True
            continue

        if "Reviewed-by" not in message["tags"]:
            return False

        found = True

    return found
Esempio n. 9
0
def is_reviewed(series):
    found = False

    for message in series['messages']:
        if message.has_key('cover') and message['cover']:
            if 'Reviewed-by' in message['tags']:
                return True
            continue

        if 'Reviewed-by' not in message['tags']:
            return False

        found = True

    return found
Esempio n. 10
0
def any_committed(series):
    for message in series['messages']:
        if message.has_key('commit'):
            return True
    return False
Esempio n. 11
0
def any_committed(series):
    for message in series["messages"]:
        if message.has_key("commit"):
            return True
    return False
Esempio n. 12
0
def any_applied(series):
    for message in series['messages']:
        if message.has_key('commit'):
            return True
    return False