def skip_payload(payload):
    ''' Return True if this payload should not be processed.
    '''
    if 'action' in payload and 'pull_request' in payload:
        return bool(payload['action'] == 'closed')
    
    if 'commits' in payload and 'head_commit' in payload:
        # Deleted refs will not have a status URL.
        return bool(payload.get('deleted') <= True)
    
    return True
dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py/skip_payload/operator `==` -> `<=`