720 B
720 B
allowed-tools, description
| allowed-tools | description |
|---|---|
| Bash(gh pr:*), Bash(git add:*), Bash(git status:*), Bash(git commit:*) | Create a Pull Request |
Context
- Current branch: !
git branch --show-current - Recent commits: !
git log --oneline -10 - Current git status: !
git status - Current git diff (staged and unstaged changes): !
git diff HEAD - Existing Pull Requests: !
gh pr list
Your task
Create a Pull Request based on the code changes.
- Create a new branch based on the code changes
- Generate commit information
- Push the code to the remote repository
- Create a Pull Request. If an upstream branch exists, create the Pull Request based on the upstream branch; otherwise, create it based on the origin branch