create-pr

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese
You 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
rules/
for detailed requirements and examples.
你需要推送分支并创建GitHub Pull Request。从现有的PR、提交记录和文档中推断项目使用的英语变体(美式/英式),并在所有输出内容中保持一致。
请查看
rules/
目录下的各规则文件以获取详细要求和示例。

Rules Overview

规则概述

RuleImpactFile
PR titleHIGH
rules/pr-title.md
PR descriptionMEDIUM
rules/pr-description.md
规则影响程度文件
PR标题
rules/pr-title.md
PR描述
rules/pr-description.md

Workflow

工作流程

  1. Check current git status and branch
  2. Push current branch to remote (with
    -u
    flag if needed)
  3. Analyse recent commits to generate PR title and description
  4. Create GitHub PR:
    gh pr create --assignee @me
Auto-assign to current user via
--assignee @me
. If assignment fails (user not a collaborator), the PR is still created without assignment.
  1. 检查当前git状态和分支
  2. 将当前分支推送到远程仓库(必要时使用
    -u
    参数)
  3. 分析最近的提交记录以生成PR标题和描述
  4. 创建GitHub PR:
    gh pr create --assignee @me
通过
--assignee @me
自动将PR分配给当前用户。如果分配失败(用户不是协作者),仍会创建PR但不指定负责人。