MR Generator
Generate MR descriptions from git commits.
Usage
# Basic (output to terminal)
python3 ~/.pi/agent/skills/mr-generator/scripts/mr_generator.py
# With Jira ticket (non-interactive)
python3 ~/.pi/agent/skills/mr-generator/scripts/mr_generator.py --jira RD-XXXX
# Create MR directly
python3 ~/.pi/agent/skills/mr-generator/scripts/mr_generator.py --create --jira RD-XXXX
# Save to file
python3 ~/.pi/agent/skills/mr-generator/scripts/mr_generator.py --output mr_description.md
Best Practices
- Include project-specific testing instructions (check project's AGENTS.md for testing patterns)
- Replace template placeholders with actual working examples reviewers can copy-paste
- Keep "What's new" concise - implementation details belong in commit messages
- In monorepos, adapt testing section to the specific project's conventions
MR Template
Closes #X or Relates to [link]
## What's new
- β¨ [New feature description - 1-2 bullets max]
## Testing
Run the following commands [project-specific setup]:
```bash
# Include actual working commands from AGENTS.md
Then test with [specific example]:
# Real working example, not placeholders
## Commit Categorization
Automatic emoji mapping:
- π Init: `init`, `initial`
- β¨ Feature: `feat`, `add`
- π Bug: `fix`, `bug`, `patch`
- π₯ P1: `p1`, `critical`
- π Style: `style`, `ui`
- π Deploy: `deploy`, `release`
- π§ Refactor: `refactor`, `cleanup`
- π Docs: `docs`
- π§ͺ Tests: `test`
## Requirements
- Python 3.10+
- GitLab CLI (`glab auth login`)