Skip to content

docs: clarify required pull-request template sections and mark screenshots optional - #6

Merged
benjiwagner merged 1 commit into
mainfrom
docs/clarify-pr-template-required-sections
Jul 23, 2026
Merged

docs: clarify required pull-request template sections and mark screenshots optional#6
benjiwagner merged 1 commit into
mainfrom
docs/clarify-pr-template-required-sections

Conversation

@benjiwagner

Copy link
Copy Markdown
Contributor

Summary

Clarify the shared pull-request template so the four required sections (Summary, Context, Validation, Impact and rollback) are unmistakably required, ordered, and must be non-empty, and mark Screenshots optional. Placeholders stay as HTML comments, so the fill-required behaviour of repository-policy is unchanged — this only sharpens the guidance.

Implements Option A (documentation-only variant) of CUS-128.

Context

repository-policy fails a PR whose required sections are empty, and it strips HTML comments before measuring content — so a PR opened from this template unmodified fails, because every section was only a comment. The previous wording never said the sections were required, ordered, or that an unedited comment counts as empty, so agents and humans opened PRs from it and were surprised by the failure. This adds a short intro note stating the rule and tightens each per-section prompt, without shipping default content (which would let meaningless bodies pass and defeat the gate).

Validation

  • bash -n repository-policy/validate.sh and bash repository-policy/validate.sh --self-test are unaffected — the ci job does not cover the template file, and this change does not touch validate.sh.
  • Confirmed the leading comment block and the five headings are unchanged in order; the four required headings still match the validator's required[1..4].
  • This PR dogfoods the rule: compliant docs/ branch, conventional title, and this filled four-section body.

Impact and rollback

Documentation only. Changes the default PR template text presented across org repositories; no change to validate.sh, workflows, or rulesets, so no change to what actually passes or fails. Revert this PR to roll back.

…shots optional

State in the template that Summary, Context, Validation, and Impact and
rollback are required, must appear in that order, and must each hold real
content — repository-policy fails the pull request when a section is left
empty, and an unedited comment counts as empty. Keep the placeholders as
comments so the fill-required gate is unchanged; mark Screenshots optional.

Refs CUS-128.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@benjiwagner
benjiwagner merged commit 6a45c63 into main Jul 23, 2026
3 checks passed
@benjiwagner
benjiwagner deleted the docs/clarify-pr-template-required-sections branch July 23, 2026 06:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant