Skip to main content

此版本的 GitHub Enterprise Server 将于以下日期停止服务 2026-03-17. 即使针对重大安全问题,也不会发布补丁。 为了获得更好的性能、更高的安全性和新功能,请升级到最新版本的 GitHub Enterprise。 如需升级帮助,请联系 GitHub Enterprise 支持

关于拉取请求审查

协作处理拉取请求以提高代码质量。

Pull request reviews are one of the primary ways people collaborate on GitHub. Reviewers can comment on changes, suggest improvements, and approve or request changes before code is merged. This collaborative process enables teams to ensure code quality and share knowledge.

View pull requests awaiting your review

Reviewing pull requests

Anyone with read access can review and comment on proposed changes. When submitting a review, choose one of three statuses:

  • Comment: Share feedback without approving or requesting changes.
  • Approve: Approve the changes for merging.
  • Request changes: Identify issues that must be fixed before merging.

You can comment on specific lines, suggest changes for authors to apply directly, and discuss implementation approaches. Reviews appear in the conversation timeline and merge box. Mark conversation threads as resolved to track addressed feedback.

Requesting reviews

Repository owners and collaborators can request reviews from specific people or teams. When you define code owners in a CODEOWNERS file, they're automatically requested as reviewers when a pull request modifies their code. You can re-request reviews after making significant changes.

Required reviews

Repository administrators can require approvals before pull requests are merged, ensuring code quality and preventing accidental merges. For more information, see About protected branches.

Further reading