1k-create-pr
Original:🇺🇸 English
Translated
Creates a Pull Request from current changes for OneKey app-monorepo. Use when user wants to create PR, submit changes, or merge feature branch. Handles branch creation, commit, push, and PR creation workflow.
18installs
Sourceonekeyhq/app-monorepo
Added on
NPX Install
npx skill4agent add onekeyhq/app-monorepo 1k-create-prTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Create OneKey App PR
Automates the complete PR creation workflow for OneKey app-monorepo changes.
Quick Reference
| Step | Action | Commands |
|---|---|---|
| 1 | Check status | |
| 2 | Create branch (if on x) | |
| 3 | Stage & commit | |
| 4 | Push to remote | |
| 5 | Create PR | |
| 6 | Enable auto-merge | |
Workflow
1. Check Current Branch Status
bash
git status
git branch --show-current2. Branch Handling
If on branch:
x- Analyze current changes (staged and unstaged)
- Generate descriptive branch name based on changes:
- - new features
feat/ - - bug fixes
fix/ - - refactoring
refactor/ - - maintenance tasks
chore/
- Create and switch:
git checkout -b <branch-name>
If already on feature branch: Skip branch creation
3. Stage and Commit Changes
bash
git add .
git commit -m "<type>: <description>"Commit format:
- Follow conventional commits
- Do NOT add Claude signatures or Co-Authored-By
4. Push to Remote
bash
git push -u origin <branch-name>5. Create Pull Request
bash
gh pr create --base x --title "<title>" --body "<description>"Issue ID handling:
- Extract from commit summary/description
OK-{number} - Append to PR title:
fix: description(OK-49185) - No space before opening parenthesis
6. Enable Auto-Merge
bash
gh pr update-branch <PR_NUMBER>
gh pr merge <PR_NUMBER> --auto --squash7. Return PR URL
Display PR URL to user and optionally open in browser:
bash
open <PR_URL>Important Notes
- Always target as base branch
x - Use conventional commit format:
type: description - Extract and append issue IDs (OK-{number}) to PR title