跳至主要内容

在 GitHub Desktop 中查看和重新运行检查

您可以在 GitHub Desktop 中查看检查的状态并重新运行它们。

关于 GitHub Desktop 中的检查

GitHub Desktop 会显示已在您的拉取请求分支中运行的检查状态。分支名称旁边的检查徽章将显示检查的 待定、通过失败 状态。您还可以在 GitHub Desktop 中查看检查状态时重新运行所有、失败或单个检查。有关在仓库中设置检查的更多信息,请参阅 关于状态检查

当检查失败时,GitHub Desktop 还会显示系统通知。有关启用通知的更多信息,请参阅 在 GitHub Desktop 中配置通知

查看和重新运行检查

  1. 在 GitHub Desktop 中,点击 当前分支

    Screenshot of the repository bar. A button, labeled "Current Branch" with a downward arrow indicating a dropdown menu, is outlined in orange.

  2. 在下拉菜单顶部,点击 拉取请求

    Screenshot of the "Current Branch" dropdown menu. A tab, labeled "Pull Requests", is highlighted with an orange outline.

  3. 在拉取请求列表中,点击您想查看的拉取请求。

  4. 点击位于拉取请求分支名称右侧的拉取请求编号。

    Screenshot of the repository bar. Next to the "Current Branch" button, a numbered label, with a red cross for failing checks, is outlined in orange.

  5. 要重新运行失败的检查,点击 重新运行 并选择 重新运行失败的检查

    Screenshot of a dropdown view from a pull request label. Next to "Some checks were not successful", a button labeled "Re-run" is outlined in orange.

  6. 要重新运行单个检查,将鼠标悬停在您想重新运行的单个检查上,然后选择图标以重新运行该检查。

    Screenshot of a dropdown view from a pull request label. The cursor hovers over a check. An icon of two arrows forming a circle is outlined in orange.

  7. 您将看到一个确认对话框,显示将要重新运行的检查摘要。点击 重新运行检查 以确认您想执行重新运行。

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