INNER CODE UNIT · Python

matches_push

trinodb/trino · .github/bin/build-matrix-schedule-aware.py:261

def matches_push(
    github_context: dict[str, Any], schedule_filter: ScheduleFilter
) -> bool:
    return schedule_filter.pushes and github_context.get("event_name") in [
        "push",
        "merge_group",
    ]


def matches_dispatch(
    github_context: dict[str, Any], schedule_filter: ScheduleFilter
) -> bool:
    return schedule_filter.dispatches and github_context.get("event_name") in [
        "workflow_dispatch",
        "repository_dispatch",
    ]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…