Skip to content

Workflow to require freshness of PRs #45420

Description

@heaths

While some GitHub Actions always run from main depending on the trigger, others may run from the base branch which, for long-lived feature branches, may be stale. For this and related reasons, we should add a workflow that is less aggressive than GitHub's "require branches be up to date" when merging, but still a required check that requires some amount of freshness on typical PR triggers like creation and updates (pushes).

For example, when merging into a branch you can be no more than N commits behind. If that base branch is not main (or the default, in general), also require merging main into the base branch. Or something like that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Central-EngSysThis issue is owned by the Engineering System team.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions