我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们

批准需要审查的拉取请求

如果您的仓库需要审查,拉取请求必须由对仓库具有写入或管理员权限的人员进行特定数量的批准审查,然后才可合并。

有关必需审查的更多信息,请参阅“关于拉取请求的必需审查”。

您可以评论拉取请求、批准更改或在批准前申请改进。 更多信息请参阅“关于拉取请求的必需审查”和“审查拉取请求中提议的更改”。

You can find a pull request where you or a team you're a member of is requested for review with the search qualifier review-requested:[USERNAME] or team-review-requested:[TEAMNAME]. For more information, see "Searching issues and pull requests."

提示:如果您批准的拉取请求发生了重要更改,您可以忽略审查。 拉取请求在合并前需要新的审查。 更多信息请参阅“忽略拉取请求审查”。

  1. Under your repository name, click Pull requests.

    议题和拉取请求选项卡选择

  2. In the list of pull requests, click the pull request you'd like to review.

  3. On the pull request, click Files changed.

    Files Changed tab

  4. 审查拉取请求中的更改,并且选择评论特定行

  5. Above the changed code, click Review changes.

    Review changes button

  6. Type a comment summarizing your feedback on the proposed changes.

    Review summary comment window

  7. 选择 Approve(批准)以评估合并拉取请求中提议的更改。

  8. Click Submit review.

提示

  • If required reviews are enabled and a collaborator with write, admin, or owner access to the repository submits a review requesting changes, the pull request cannot be merged until the same collaborator submits another review approving the changes in the pull request.
  • Repository owners and administrators can merge a pull request even if it hasn't received an approving review, or if a reviewer who requested changes has left the organization or is unavailable.
  • If both required reviews and stale review dismissal are enabled and a code-modifying commit is pushed to the branch of an approved pull request, the approval is dismissed. The pull request must be reviewed and approved again before it can be merged.
  • When several open pull requests each have a head branch pointing to the same commit, you won’t be able to merge them if one or both have a pending or rejected review.

延伸阅读

问问别人

找不到要找的内容?

联系我们