pr PR审查
- 作者仓库星标 357
- 作者仓库 woocommerce-ios
Create a pull request following WooCommerce iOS conventions.
Steps:
- Verify the current branch is not
trunk:
git branch --show-current
- Check the diff against trunk:
git log trunk..HEAD --oneline
git diff trunk...HEAD --stat
- Check non-test diff size (should be under 300 lines):
git diff trunk...HEAD --stat -- . ':!*Tests*' ':!*Test*' ':!*.generated.*'
Review the changes to write an accurate description. Read modified files if needed.
- Never include actual Linear issue links (e.g.,
https://linear.app/...) in PR descriptions — Linear is an internal resource. Only reference the issue ID (e.g.,WOOMOB-2485).
- Never include actual Linear issue links (e.g.,
Determine if RELEASE-NOTES.txt needs updating. If the change is user-facing, remind about adding a release note entry.
Push the branch:
git push -u origin HEAD
- Create the PR. The description must follow the template in
.github/PULL_REQUEST_TEMPLATE.md:
gh pr create --base trunk --title "<concise title>" --body "$(cat <<'EOF'
## Description
<description of changes — why and what>
## Test Steps
<how to test>
## Screenshots
N/A
---
- [ ] I have considered if this change warrants user-facing release notes and have added them to `RELEASE-NOTES.txt` if necessary.
EOF
)"
Add labels. After creating the PR, add all labels in a single call using multiple
--add-labelflags:gh pr edit <number> --add-label "<label1>" --add-label "<label2>". Pick labels from these categories:- Type (pick one):
type: bug,type: crash,type: enhancement,type: task,type: technical debt,type: documentation,type: question - Feature (pick one if applicable): match the changed area to a
feature: *label (e.g.,feature: POS,feature: order list,feature: order details,feature: product details,feature: login,feature: dashboard,feature: analytics hub,feature: coupons,feature: shipping labels,feature: order creation,feature: notifications,feature: Blaze,feature: CIAB Mobile Experience,feature: subscriptions,feature: app settings, etc.) - Priority (pick one if known):
priority: low,priority: medium,priority: high,priority: critical - Category (pick any that apply):
category: accessibility,category: design,category: performance,category: tracks,category: unit tests,category: ui tests,category: tooling,category: parity,category: i18n,category: dark mode,category: tablet, etc. - If the feature is behind a flag, also add
status: feature-flagged - Infer labels from the diff and branch name. If unsure about the feature label, ask the user.
- Type (pick one):
Set milestone. After creating the PR, assign the correct milestone:
- List open milestones:
gh api repos/woocommerce/woocommerce-ios/milestones --jq '.[] | "\(.title)\t\(.description)"' - Each milestone description contains a
Code Freeze:date. - If the PR targets
trunk: pick the earliest milestone whose code freeze date has not yet passed (i.e., the next unfrozen milestone). - If the PR targets a
release/X.Ybranch: use milestoneX.Y(the frozen release milestone). - Apply with:
gh pr edit <number> --milestone "<milestone title>"
- List open milestones:
Report the PR URL.
If non-test diff exceeds 300 lines, warn that Danger will flag it and suggest splitting.
- 流狐分类
- 工程开发
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @woocommerce · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 即装即用
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- 未声明
- 底层运行要求
- 未声明
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- 检测到的网络行为
- 仅限本地
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 <description of changes — why and what>
<how to test>
N/A [ ] I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary. EOF
Create a pull request following WooCommerce iOS conventions.
Steps:
1. Verify the current branch is not `trunk`:
```bash
git branch --show-current
```
2. Check the diff against trunk:
```bash
git log trunk..HEAD --oneline
git diff trunk...HEAD --stat
```
3. Check non-test diff size (should be under 300 lines):
```bash
git diff trunk...HEAD --stat -- . ':!*Tests*' ':!*Test*' ':!*.generated.*'
```
4. Review the changes to write an accurate description. Read modified files if needed.
- **Never include actual Linear issue links** (e.g., `https://linear.app/...`) in PR descriptions — Linear is an internal resource. Only reference the issue ID (e.g., `WOOMOB-2485`).
5. Determine if RELEASE-NOTES.txt needs updating. If the change is user-facing, remind about adding a release note entry.
6. Push the branch:
```bash
git push -u origin HEAD
```
7. Create the PR. The description must follow the template in `.github/PULL_REQUEST_TEMPLATE.md`:
```bash
gh pr create --base trunk --title "<concise title>" --body "$(cat <<'EOF'
## Description
<description of changes — why and what>
## Test Steps
<how to test>
## Screenshots
N/A
---
- [ ] I have considered if this change warrants user-facing release notes and have added them to `RELEASE-NOTES.txt` if necessary.
EOF
)"
```
8. **Add labels.** After creating the PR, add all labels in a single call using multiple `--add-label` flags: `gh pr edit <number> --add-label "<label1>" --add-label "<label2>"`. Pick labels from these categories:
- **Type** (pick one): `type: bug`, `type: crash`, `type: enhancement`, `type: task`, `type: technical debt`, `type: documentation`, `type: question`
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Description → Test Steps → Screenshots
要点 -> Never include actual Linear issue links · Add labels. · Type · Feature · Priority · Category · Set milestone. · If the PR targets trunk
文件/命令 -> trunk · https://linear.app/... · WOOMOB-2485 · .github/PULLREQUESTTEMPLATE.md · RELEASE-NOTES.txt · --add-label · gh pr edit <number> --add-label "<label1>" --add-label "<label2>" · type: bug
内容 SHA-256 -> 71c03b992e07
方法与流程
适用与边界
原文中的明确线索
trunk、https://linear.app/...、WOOMOB-2485、.github/PULLREQUESTTEMPLATE.md、RELEASE-NOTES.txt、--add-label、gh pr edit <number> --add-label "<label1>" --add-label "<label2>"、type: bug