Loading...
Loading...
Creates GitHub pull requests in draft mode following Conventional Commits format. Use when user requests "create PR", "make pull request", "open PR", or similar. Automatically pushes branch, analyzes changes, generates structured title/body with proper labels, and assigns to creator. Never modifies code or merges branches.
npx skill4agent add jondotsoy/skills pr-creatormaindevelopmasterHEAD# Get current branch name
git rev-parse --abbrev-ref HEAD| Branch Format | Ticket ID |
|---|---|
| |
| |
| |
| |
LETTERS-NUMBERSABC-123ABCD-123JIRA-4567/git push origin <branch-name>git diff <base-branch>...<branch-name>maindevelopmasterHEADgh pr create --draft \
--base <base-branch> \
--head <branch-name> \
--title "<pull-request-title>" \
--body "<pull-request-description>" \
--assignee @me \
--label <label-by-type>--assignee @me--label(TICKET-ID) type(scope): brief description| Component | Required | Description | Example |
|---|---|---|---|
| ❌ Optional | Ticket identifier (e.g., Jira) | |
| ✅ Required | Change type | |
| ❌ Optional | Modified module or area | |
| ✅ Required | Brief description of change | |
fixfeatdocsstylerefactortestchore# With ticket extracted from branch
(ABCD-123) fix(profile): handle null enrollment timestamps by converting to OffsetDateTime at mapper level
# With ticket extracted: feat/ABCD-123/add-profile-endpoint
(ABCD-123) feat(profile): add enrollment timestamp to profile response
# Without ticket in branch
feat(auth): implement JWT token refresh mechanism
# With ticket: refactor/JIRA-789/simplify-validation
(JIRA-789) refactor(validation): simplify token validation logic## 🚀 Overview
[Brief description of the change made, explaining the purpose and impact on the project. Include details about added features, resolved issues, or implemented improvements.]
## ✨ Key Features
- [Important feature or change 1]
- [Important feature or change 2]
- [New functionality, performance improvement, bug fix, etc.]
## 🛠️ Changes Made
[Detailed description of code changes:]
- **Modified classes/modules:** [List of files or modules]
- **Added/modified methods:** [Brief description]
- **Business logic changes:** [If applicable]
- **Structural changes:** [If applicable]
## ✅ Validation & Testing
- [Test 1: Description and result]
- [Test 2: Description and result]
- **Command executed:** `[command to run tests]`
## 🔗 Related
- [Link to Jira ticket/Issue]
- [Link to related documentation]
- [Link to other related PRs]--assignee @me--label <type>| Type | Label | Description |
|---|---|---|
| | Bug fixes |
| | New feature |
| | Documentation changes |
| | Code refactoring |
| | Tests |
| | Maintenance tasks |
# 1. Push branch
git push origin fix/handle-null-timestamps
# 2. Review differences
git diff main...fix/handle-null-timestamps
# 3. Create PR in draft
gh pr create --draft \
--base main \
--head fix/handle-null-timestamps \
--title "(ABCD-123) fix(profile): handle null enrollment timestamps" \
--body "## 🚀 Overview
Fixed null pointer exception when enrollment timestamps are null...
## ✨ Key Features
- Added null checks for enrollment timestamps
- Converted timestamps to OffsetDateTime at mapper level
## 🛠️ Changes Made
- **Modified:** ProfileMapper.java
- **Added:** Null safety checks in timestamp conversion
## ✅ Validation & Testing
- Unit tests passing
- **Command executed:** \`mvn test\`
## 🔗 Related
- [ABCD-123](https://jira.example.com/ABCD-123)" \
--assignee @me \
--label bug