Loading...
Loading...
Compare original and translation side by side
gh pr list --repo <owner/repo> --search "author:app/renovate OR author:app/dependabot" \
--json number,title,author,mergeable,mergeStateStatus,statusCheckRollup,labels,updatedAt| Bucket | Criteria | Next step |
|---|---|---|
| CLEAN | | Investigate for merge safety (Phase 2) |
| FAILING | One or more checks failing | Fix CI (Phase 3) |
| CONFLICTING | | Resolve conflicts (Phase 3) |
gh pr list --repo <owner/repo> --search "author:app/renovate OR author:app/dependabot" \
--json number,title,author,mergeable,mergeStateStatus,statusCheckRollup,labels,updatedAt| 分类 | 判定标准 | 下一步 |
|---|---|---|
| CLEAN(无问题) | | 评估合并安全性(进入第二阶段) |
| FAILING(检查失败) | 存在一项或多项检查失败 | 修复CI(进入第三阶段) |
| CONFLICTING(存在冲突) | | 解决冲突(进入第三阶段) |
gh pr view <number> --json body,files,commitsgh pr view <number> --json body,files,commits1. git worktree add <worktree-path> <pr-branch>
2. cd <worktree-path>
3. Merge origin/main if behind
4. Install dependencies
5. Run lint → fix issues
6. Run format → apply fixes
7. Run typecheck → fix type errors
8. Run doc/code generation if applicable
9. Verify all checks pass locally
10. Commit and push1. git worktree add <worktree-path> <pr-branch>
2. cd <worktree-path>
3. 若落后于主分支,合并origin/main
4. 安装依赖
5. 运行代码规范检查 → 修复问题
6. 运行格式化命令 → 应用修复
7. 运行类型检查 → 修复类型错误
8. 如有需要,运行文档/代码生成命令
9. 本地验证所有检查均通过
10. 提交并推送undefinedundefined
Always clean up before finishing — worktrees and local branches accumulate fast when fixing many PRs in parallel.
完成工作后务必清理——并行修复多个PR时,工作树和本地分支会快速累积。gh pr review <number> --repo <owner/repo> --approve
gh pr merge <number> --repo <owner/repo> --squashgh pr review <number> --repo <owner/repo> --approve
gh pr merge <number> --repo <owner/repo> --squash