Create a pull request following WooCommerce iOS conventions
Create a pull request following WooCommerce iOS conventions.
Steps:
trunk:git branch --show-current
git log trunk..HEAD --oneline
git diff trunk...HEAD --stat
git diff trunk...HEAD --stat -- . ':!*Tests*' ':!*Test*' ':!*.generated.*'
Review the changes to write an accurate description. Read modified files if needed.
https://linear.app/...) in PR descriptions — Linear is an internal resource. Only reference the issue ID (e.g., ).WOOMOB-2485Determine 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
.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-label flags: gh pr edit <number> --add-label "<label1>" --add-label "<label2>". Pick labels from these categories:
type: bug, type: crash, type: enhancement, type: task, type: technical debt, type: documentation, type: questionfeature: * 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: low, priority: medium, priority: high, priority: criticalcategory: 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.status: feature-flaggedSet milestone. After creating the PR, assign the correct milestone:
gh api repos/woocommerce/woocommerce-ios/milestones --jq '.[] | "\(.title)\t\(.description)"'Code Freeze: date.trunk: pick the earliest milestone whose code freeze date has not yet passed (i.e., the next unfrozen milestone).release/X.Y branch: use milestone X.Y (the frozen release milestone).gh pr edit <number> --milestone "<milestone title>"Report the PR URL.
If non-test diff exceeds 300 lines, warn that Danger will flag it and suggest splitting.