效率与协作
manage-prs
Create, review, and merge GitHub pull requests and publish releases using repository Git rules. Use for requests to open a PR, push and create a PR, review PRs, merge a PR, or tag a release and write release notes.
wataru-maeda · 已有静态检查记录
安装与使用
运行命令前先阅读来源与依赖说明。复制命令不会自动安装或执行。
npx skills add wataru-maeda/react-native-boilerplate --skill manage-prs技能说明
name: manage-prs description: Create, review, and merge GitHub pull requests and publish releases using repository Git rules. Use for requests to open a PR, push and create a PR, review PRs, merge a PR, or tag a release and write release notes.
Manage PRs
Follow Git rules. Work branches target dev. Promotion PRs go from dev to stg and from stg to main.
Actions
| Request | Read |
|---|---|
| Open a PR for the current branch | create.md |
| Review one or more PRs | review.md |
Promote dev → stg → main | promote.md |
| Tag and publish a release | release.md |
PR Rules
Title
- Write
type(scope): description, at most 70 characters. Use the types and scopes in Commits. - Squash merges use the title as the commit message.
- Title promotion PRs
chore: promote dev to stgorchore: release v<version>forstgtomain.
Body
- Fill
.github/pull_request_template.mdfrom the actual diff and commits. Never reuse old text. - Link related issues in Overview with
Closes #N. - Tick only checks that ran. Record failures and skipped checks in Notes.
- Fill Test Cases with actual results, including Maestro flows and the platforms they ran on. Remove the table when there are none.
- Remove empty sections and placeholders. Leave screenshots to the user when UI changed.
Merge
- Merge only when asked and after required checks pass.
- Squash merge work branches into
dev. Use merge commits for promotion and hotfix merge-back PRs (Merge and Version). - Never pass
--subject. GitHub titles the commit<PR title> (#<N>), which links it back to the PR. - Keep work branches. Delete them only when cleanup is requested. Never delete
dev,stg, ormain.
gh pr checks <N> --watch
gh pr merge <N> --squash # work branches into dev
gh pr merge <N> --merge # dev → stg, stg → main, hotfix merge-back