Generate comprehensive pull request descriptions from commit history and changes
Use when: Creating PR/MR descriptions, analyzing commit ranges between branches, or documenting feature implementations
Input: Git commit history, commit ranges (e.g., main..feature-branch), branch comparisons
Output: Structured markdown with summary, changes, breaking changes, and testing notes
Prompts
Pull Request Description Rules
These rules define how to analyze commit history and generate comprehensive PR descriptions. These same rules should work consistently across GitHub, GitLab, Bitbucket, and any other platform.
New files in src/ → New feature
Modified existing src/ → Enhancement or fix
Changes in tests/ → Testing improvements
Changes in docs/ → Documentation updates
Changes in config/ → Infrastructure changes
Parse commit messages for conventional commit types
Analyze file changes to understand scope of impact
Identify patterns in commits (all tests, all docs, etc.)
Group related changes logically
Extract key information from commit bodies
Preserve important details from individual commits
Generate appropriate sections based on change types
Include relevant links to issues or documentation
Template Variations
Simple Bug Fix
## SummaryFixes [brief description of bug] that was causing [impact].
## Changes Made- [Specific fix implemented]
## Testing- [How the fix was verified]
Major Feature
## SummaryImplements [feature name] to [business value/user benefit].
## Changes Made-**Core Feature**: [main functionality]
-**API Changes**: [new endpoints/modifications]
-**UI Updates**: [user interface changes]
-**Database**: [schema changes if any]
## Breaking Changes- [Any breaking changes with migration notes]
## Testing- Unit tests for [coverage areas]
- Integration tests for [scenarios]
- Manual testing: [specific test cases]
## Performance Impact- [Any performance considerations]
## Security Considerations - [Security implications if any]
Documentation Update
## SummaryUpdates documentation for [area] to [improvement].
## Changes Made- [Specific documentation changes]
## Additional Notes- [Context or follow-up items]