review-pr

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

Review Pull Request

审查拉取请求(PR)

Context

背景信息

Run in parallel:
  • gh pr view
    - get PR details
  • gh pr diff
    - get full diff
并行执行以下操作:
  • gh pr view
    - 获取PR详情
  • gh pr diff
    - 获取完整差异对比

Workflow

工作流程

  1. Get PR details and diff
  2. Read changed files with surrounding context
  3. Review for: logic errors, patterns, readability, missing tests
  4. Provide feedback with file:line references
  1. 获取PR详情和差异对比内容
  2. 阅读带有上下文的变更文件
  3. 审查内容包括:逻辑错误、代码模式、可读性、缺失的测试用例
  4. 提供包含“文件:行号”引用的反馈意见

Rules

规则

  • Review ALL changed files, not just the latest commit
  • Use
    gh
    CLI for all GitHub operations
  • Be specific: file:line + issue + suggested fix
  • Separate critical issues from suggestions
  • 审查所有变更文件,而非仅最新提交的内容
  • 所有GitHub操作均使用
    gh
    CLI工具完成
  • 反馈需具体:文件:行号 + 问题描述 + 建议修复方案
  • 将关键问题与优化建议分开呈现