Skip to content

enhancement: #10 - Fix create-pr leaking Commits and Test Plan sections#11

Merged
iamladi merged 3 commits intomainfrom
plan/fix-create-pr-leaking-sections
Feb 8, 2026
Merged

enhancement: #10 - Fix create-pr leaking Commits and Test Plan sections#11
iamladi merged 3 commits intomainfrom
plan/fix-create-pr-leaking-sections

Conversation

@iamladi
Copy link
Owner

@iamladi iamladi commented Feb 7, 2026

Summary

The /github:create-pr command intermittently generates PR descriptions that include a "Commits" section and a generic "Test plan" section despite explicit exclusion rules. Root cause: the git log step primes the model with commit data before body generation, and the Testing Notes framing is too permissive.

Review Focus

Files to review (in order):

  1. commands/create-pr.md — Core fix: removed git log step from Run section (was step 5), rewrote Testing Notes to default-omit with two explicit triggers
  2. CHANGELOG.md — v1.4.1 entry documenting the fix
  3. package.json / .claude-plugin/plugin.json — Version bump to 1.4.1

Key decisions:

  • Removed git log entirely rather than moving it post-creation — the model doesn't need commit history when it has issue + plan + diff
  • Testing Notes now has two valid triggers: (a) requesting manual reviewer action, (b) reporting performed manual verification — per Codex+Gemini consensus to avoid over-suppression
  • Run step 4 reference updated to align with new Testing Notes wording (caught by Codex review)

Note: A companion fix was committed to workflows-plugin (phase-submit.md) removing the contradicting "Test plan" instruction — that change lives in the workflows-plugin repo.

Plan & Design

See plans/fix-create-pr-leaking-sections.md for full implementation design and validation criteria.

Related research:

Closes #10

Root cause: git log step primes model with commit data before body
generation, and Testing Notes section is too permissive. Also
phase-submit.md contradicts create-pr exclusion rules.

Reviewed by GPT-5.2-Codex and Gemini 3 Pro.
Remove git log step that primed the model with commit data before body
generation. Rewrite Testing Notes to default-omit with explicit triggers
for manual reviewer actions and performed verification reporting.
@iamladi iamladi merged commit 59a422c into main Feb 8, 2026
1 check passed
@iamladi iamladi deleted the plan/fix-create-pr-leaking-sections branch February 8, 2026 11:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

enhancement: Fix create-pr leaking Commits and Test Plan sections

1 participant