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
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
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
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
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
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
def any_committed(series): for message in series['messages']: if message.has_key('commit'): return True return False
def any_committed(series): for message in series["messages"]: if message.has_key("commit"): return True return False
def any_applied(series): for message in series['messages']: if message.has_key('commit'): return True return False