def acked(p): if 'lgtm' in p.payload.get('labels', {}): return True # LGTM is an implicit Ack if acks is None: return False return filters.do_get_latest(p.payload, user) <= acks.get( p.key.id(), 0)
def acked(p): if filters.has_lgtm_without_missing_approval(p, user): # LGTM is an implicit Ack (suppress from incoming)... # if it doesn't also need approval return True if acks is None: return False return filters.do_get_latest(p.payload, user) <= acks.get(p.key.id(), 0)
def acked(p): if filters.has_lgtm_without_missing_approval(p, user): # LGTM is an implicit Ack (suppress from incoming)... # if it doesn't also need approval return True if acks is None: return False return filters.do_get_latest(p.payload, user) <= acks.get( p.key.id(), 0)
def acked(p): if acks is None: return False return filters.do_get_latest(p.payload, user) <= acks.get(p.key.id(), 0)
def acked(p): if 'lgtm' in p.payload.get('labels', {}): return True # LGTM is an implicit Ack if acks is None: return False return filters.do_get_latest(p.payload, user) <= acks.get(p.key.id(), 0)