Skip to content

Merge gates have holes: drift_check tests not required, version-bump-check ignores the squash PR title #119

Closed

Description

@TMHSDigital

Why it matters

Two gaps let changes reach main that the documented process says should be blocked.

Evidence

  1. The test suite is not a required check. validate.yml runs the pytest suite (the test-drift-check job), but it is not among the 7 required status checks in CLAUDE.md and the ruleset. The checker that the whole fleet relies on can merge with failing tests.
  2. The squash PR title is not checked. The repo is squash-merge-only, so the PR title becomes the commit subject on main. The version-bump-check job (validate.yml around lines 321-375) only inspects the individual branch commits (git log BASE..HEAD). A PR titled feat: ... whose branch commits are chore: or docs: passes without a VERSION bump. release.yml then sees a feat: on main with no release.

Suggested approach

  • Add the pytest job to the main protection ruleset's required checks, and update the count in CLAUDE.md and .github/workflows/README.md.
  • In version-bump-check, also evaluate github.event.pull_request.title, passed through env:. Re-run the check on pull_request edited events so title changes are caught.

Done when

  • A PR with failing tests cannot merge.
  • A PR titled feat: without a VERSION bump fails the check.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cipriority: medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions