Skip to content

feat(workflow): relax branch naming requirement in PR checks #73

@Mpfk

Description

@Mpfk

Problem

The current PR checks enforce issue/{n} branch naming, which is overly restrictive. This creates friction for users of the Auto template who may use different branch naming conventions (e.g. Copilot's copilot/... branches, or feature branches from other tools).

Goal

Replace the strict issue/{n} check with two lighter requirements:

  1. Not merging directly from main — the PR must come from a real branch.
  2. Branch is linked to a GitHub Issue — via a closing reference in the PR body (e.g. Closes #N, Fixes #N, Resolves #N).

This keeps the issue-first discipline intact without mandating a specific branch naming scheme, making Auto easier to adopt as a template.

Acceptance Criteria

  • PR from any branch name (other than main) that includes a closing reference passes the check
  • PR from main fails the check
  • PR with no closing reference to an issue fails the check
  • Existing issue/{n} branches continue to pass (backwards compatible)
  • Tests updated to cover the new branch-agnostic behavior

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions