def skip_payload(payload):
    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
Test the configured plugins are loaded from legacy config.yaml layout
dataset/ETHPy150Open openaddresses/machine/openaddr/ci/__init__.py/skip_payload--crossover with--dataset/ETHPy150Open openstack/turbo-hipster/tests/disabled_worker_manager.py/TestWorkerServer.test_jobs_load_from_legacy_plugins