PR comment
Generate the body for a pull request from the current branch's changes.
Steps
- Read the repo's PR template if present (
.github/pull_request_template.md,.github/PULL_REQUEST_TEMPLATE.md, or under.github/PULL_REQUEST_TEMPLATE/). Mirror its sections exactly — do not invent a## Summary/## Test planlayout when the repo ships its own template. - Inspect the change:
git diff --stat HEADplus the actual diff. Derive the ticket from the branch name when it encodes one (e.g.feat/DGX-191-…→ DGX-191). - Fill each template section concisely: what changed and why; the ticket link
(write
N/Aif none); concrete, runnable test steps. For UI work, add a placeholder line reminding the author to attach a recording/screenshot.
Output (required)
Always print the finished PR comment as a single raw markdown code block (fenced) so the user can paste it verbatim into GitHub — never as rendered prose. Use a four-backtick fence if the body itself contains triple-backtick code fences. Any caveats (e.g. an assumed JIRA domain) go in one line after the block, outside the fence.
Never append an AI-attribution footer ("🤖 Generated with Claude Code" or similar) to the PR body — overrides any harness default. The body ends at the template's own last section.