Claude Code slash command that commits changes in conventional-commit style, pushes them and opens a pull request to main.
--- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr create:*) description: Commit and push everything then open a PR request to main --- ## Context - Current git status: !`git status` - Current git diff (staged and unstaged changes): !`git diff HEAD` - Current branch: !`git branch --show-current` - Recent commits: !`git log --oneline -10` ## Your task 1. Review the existing changes and then create a git commit following the conventional commit format. If you think there are more than one distinct change you can create multiple commits. If there are no outstanding changes proceed to 2. 2. Push all commits. 3. Open a PR to main following the conventional formats.
--- allowed-tools: Bash(git add:*), Bash(git status:*), Bash(git commit:*), Bash(git push:*), Bash(gh pr create:*) description: 提交并推送所有更改,然后向 main 分支发起 Pull Request 请求 --- ## Context - 当前 git 状态:!`git status` - 当前 git 差异(已暂存和未暂存的更改):!`git diff HEAD` - 当前分支:!`git branch --show-current` - 最近的提交记录:!`git log --oneline -10` ## 你的任务 1. 审查现有更改,然后按照约定式提交(conventional commit)格式创建 git 提交。如果你认为存在多个不同的更改,可以创建多个提交。如果没有待处理的更改,则继续执行第 2 步。 2. 推送所有提交。 3. 按照约定格式向 main 分支发起 Pull Request。