Skip to content

Reduce the PR-body contract to its three safety checks #5049

Description

@devantler

Why

pr-body-contract.sh plus tests is ~8.1k lines with about 40 rules, mostly style (no tables, sentence counts, section lengths). Agents spend loops rewording PR bodies to satisfy it.

What

Keep three checks and delete the rest:

  1. the leading AI-disclosure line;
  2. exactly one issue relationship;
  3. the non-public hostname / sensitive-detail check (a real privacy control that secret scanning does not cover).

The PR template and the existing Conventional Commit title rule cover the rest.

What is lost

Style uniformity of PR bodies only.

First step

Split the rules into a safety group and a style group, then delete the style group and its tests.

Part of #5047.

🤖 Generated with Claude Code

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

    No labels
    No labels

    Fields

    No fields configured for Refactor.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions