Skip to content

docs(contributing): document the Conventional Commits PR-title requirement that CI enforces #65

Closed

Description

@kyle-sexton

Summary

CONTRIBUTING.md's Workflow section (lines 11–17) walks a contributor through branching, changing, opening a PR, and review — but never mentions that the PR title must follow Conventional Commits.

That requirement is enforced. .github/workflows/pr-title.yml emits pr-title / pr-title, which the org ci-gate ruleset requires. Because this repo is squash-only with the squash title set to PR_TITLE, the PR title becomes the default-branch commit subject — so the gate is not cosmetic.

The result: a contributor who follows CONTRIBUTING.md exactly can still be blocked by a required check the document never mentioned.

Suggested fix

Add it to step 4 of the Workflow list, where the PR is opened. Something like:

  1. Open a pull request, fill out the template, and link the related issue. Title it using Conventional Commits (<type>(<scope>): <description>) — the repository is squash-merged, so the PR title becomes the commit subject on the default branch.

Note on scope

CONTRIBUTING.md is an org-wide inherited default, so any wording should hold for repositories that inherit it, not just this one. The pr-title gate is applied via the org ruleset rather than being specific to this repo, so the requirement does generalize — but that is worth confirming before writing the sentence.

Scope

Small.

Provenance

Surfaced as a deferred item by an automated repository-wide documentation-staleness sweep (/code-tidying:batch-simplify repo docs). The sweeping agent classified it as an omission rather than a contradiction and declined to add new content beyond a staleness pass.

Activity

  1. added
    needs-triage
    on Aug 23, 2026
  2. added theissue type on Aug 23, 2026
  3. self-assigned this
    on Aug 23, 2026
  4. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  5. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI during triage.

    Triage notes

    Redundancy check: Searched CONTRIBUTING.md's Workflow section and the whole repo for existing mentions of the Conventional Commits PR-title requirement. Only hit outside this issue is .claude/source-control.md, an internal tooling doc — not contributor-facing. Not redundant; nothing already documents this for contributors.

    Verification: Confirmed both halves of the claim directly, not just from the report:

    • CONTRIBUTING.md's Workflow section (steps 1–5) never mentions the PR-title requirement.
    • .github/workflows/pr-title.yml runs on pull_request_target, calls the shared semantic-pr reusable workflow, and emits the pr-title / pr-title check context.
    • The org's ci-gate ruleset (queried live via the GitHub API) requires pr-title / pr-title under required_status_checks, scoped to any repository carrying the requires-ci: true custom property — it is not hardcoded to this repo. This resolves the issue's own "worth confirming before writing the sentence" note: the requirement does generalize to every repository that opts into ci-gate, so org-wide wording in this org-wide CONTRIBUTING.md is safe.

    Cluster check: Cross-referenced sibling raw-intake items #58, #66–#76. #76 is also docs(contributing) but addresses an unrelated inaccuracy (review-approval wording vs. required_approving_review_count: 0) — no shared underlying decision with this item. No cluster; routing this item standalone.

    Classification: Documentation omission with no genuinely open decision — Task (native issue type, already set). The issue's own suggested wording is usable near-verbatim, so this routes delegable rather than decision-defaulted or human-gated.

    Agent Brief

    Type: Task
    Summary: Document, in CONTRIBUTING.md's Workflow section, that the PR title must follow Conventional Commits and becomes the squash-merge commit subject.

    Current behavior:
    CONTRIBUTING.md's Workflow section walks branching → changing → opening a PR → review, but never states that the PR title is validated against Conventional Commits. That validation is a required status check on every repository that carries the requires-ci: true custom property (enforced through the org's PR-title gate). Those repositories are squash-merge-only with the squash title sourced from the PR title, so an unconventional PR title both fails the required check and would (if ever bypassed) become the wrong commit subject on the default branch.

    Desired behavior:
    The Workflow section states, at the step where the PR is opened, that the PR title must follow Conventional Commits (<type>(<scope>): <description>) and that this is CI-enforced — not merely a style convention — because the title becomes the squash-merge commit subject. Word it generically enough to hold for any repository that inherits this org-wide CONTRIBUTING.md, not just this one: don't assert every inheriting repo runs the check (enforcement is conditional on the org ruleset's custom-property condition), just describe the requirement and its rationale.

    Key interfaces:

    • None — prose-only change. No code, workflow, or ruleset changes.

    Acceptance criteria:

    • CONTRIBUTING.md's Workflow section explicitly states the PR title must follow Conventional Commits.
    • The added text states or clearly implies that this is CI-enforced, not just a style preference.
    • The added text stays generic enough to hold for any repository inheriting this file (no unconditional claim that every inheriting repo enforces the gate).
    • No other section of CONTRIBUTING.md is changed.

    Out of scope:

  6. added
    agent-ready
    and removed
    needs-triage
    on Aug 23, 2026
  7. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI in the autonomous worker lane.

    Lease takeover. The prior lease on this item was held by MELO-LAP-001-triage-202608230449 and has expired — it was acquired and last renewed at the timestamp in that lease comment, with a 1-hour TTL, and was never renewed or released.

    Taking it over as melo-lap-001-worker-202608230449 to carry the item to a review-ready pull request.

    For the record, this is a lane-protocol observation rather than a collision: the triage lane takes a lease while triaging and does not release it when it flips an item to agent-ready, so every handed-off item is unavailable to the worker lane until its lease lapses about an hour later. Releasing the lease as part of the agent-ready flip would remove the delay entirely.

  8. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor
    No description provided.
  9. kyle-sexton commented on Aug 23, 2026

    @kyle-sexton
    MemberAuthor

    This was generated by AI in the autonomous worker lane.

    Handoff from melo-lap-001-worker-202608230449: PR #93 is open, close-linked, and review-ready — one-line change to CONTRIBUTING.md step 4; the issue's suggested <type>(<scope>) form was corrected to the spec's <type>[optional scope] after confirming the gate's require-scope default is false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-ready

Type

Fields

No fields configured for Task.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions