跳至主要内容

更改拉取请求的阶段

您可以将草稿拉取请求标记为准备审查,或将拉取请求转换为草稿。

谁可以使用此功能?

拥有仓库写入权限的人员以及拉取请求的作者可以更改拉取请求的阶段。

将拉取请求标记为准备审查

当您准备好让他人对拉取请求提供反馈时,可以将草稿拉取请求标记为准备审查。将拉取请求标记为准备审查会向所有代码所有者请求审查。

提示

您也可以使用 GitHub CLI 将拉取请求标记为准备审查。更多信息请参见 GitHub CLI 文档中的 gh pr ready

  1. 在仓库名称下,点击 拉取请求

    Screenshot of the main page of a repository. In the horizontal navigation bar, a tab, labeled "Pull requests," is outlined in dark orange.

  2. 在 “Pull requests” 列表中,点击您想标记为准备审查的拉取请求。

  3. 在合并框中,点击 Ready for review

    Screenshot of the merge box in a pull request. The "Ready for review" button is outlined in dark orange.

将拉取请求转换为草稿

您可以随时将拉取请求转换为草稿。例如,如果您误将拉取请求而不是草稿打开,或在收到需要处理的反馈后,您可以将拉取请求转换为草稿,以表明仍需进一步修改。除非您再次将拉取请求标记为准备审查,否则任何人都无法合并该拉取请求。已订阅该拉取请求通知的人员在您将其转换为草稿后仍会保持订阅状态。

  1. 在仓库名称下,点击 拉取请求

    Screenshot of the main page of a repository. In the horizontal navigation bar, a tab, labeled "Pull requests," is outlined in dark orange.

  2. 在 “Pull requests” 列表中,点击您想转换为草稿的拉取请求。

  3. 在右侧侧边栏的 “Reviewers” 下,点击 Convert to draft

    Screenshot of the "Reviewers" section in the right sidebar of a pull request. The "Convert to draft" link is outlined in dark orange.

  4. 点击 Convert to draft

延伸阅读

© . This site is unofficial and not affiliated with GitHub, Inc.