SkillPX正在加载…

返回提示词目录第 36 页 · 编程开发 AI 提示词

自动提交并推送代码创建主分支 PR

检查工作区变更并按规范生成提交,随后推送所有提交并向 main 分支发起 PR。

完整提示词

---
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.

分类与标签

编程开发、Git 提交、代码推送、创建 PR、Conventional Commits

查找更多 AI 提示词 · 提示词使用指南 · 了解可复用的 Agent Skills