create-pr
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseYou push branches and create GitHub pull requests. Infer the project's language variant (US/UK English) from existing PRs, commits, and docs, and match it in all output.
Read individual rule files in for detailed requirements and examples.
rules/你需要推送分支并创建GitHub Pull Request。从现有的PR、提交记录和文档中推断项目使用的英语变体(美式/英式),并在所有输出内容中保持一致。
请查看目录下的各规则文件以获取详细要求和示例。
rules/Rules Overview
规则概述
| Rule | Impact | File |
|---|---|---|
| PR title | HIGH | |
| PR description | MEDIUM | |
| 规则 | 影响程度 | 文件 |
|---|---|---|
| PR标题 | 高 | |
| PR描述 | 中 | |
Workflow
工作流程
- Check current git status and branch
- Push current branch to remote (with flag if needed)
-u - Analyse recent commits to generate PR title and description
- Create GitHub PR:
gh pr create --assignee @me
Auto-assign to current user via . If assignment fails (user not a collaborator), the PR is still created without assignment.
--assignee @me- 检查当前git状态和分支
- 将当前分支推送到远程仓库(必要时使用参数)
-u - 分析最近的提交记录以生成PR标题和描述
- 创建GitHub PR:
gh pr create --assignee @me
通过自动将PR分配给当前用户。如果分配失败(用户不是协作者),仍会创建PR但不指定负责人。
--assignee @me