Skip to main content

使用 GitHub Copilot 探索问题和讨论

GitHub Copilot 聊天功能 可以帮助你快速掌握冗长讨论和议题的上下文。

简介

Copilot 可以帮助你快速了解 GitHub 上冗长讨论和问题的背景信息。 可以要求 Copilot 汇总讨论、确定关键参与者,并提供有关问题或讨论状态的见解。

处理正文很长或评论数量很多的问题或讨论时,副驾驶聊天 的回复质量可能会下降。 例如,如果要求 Copilot 汇总长时间的讨论,可能会发生这种情况。 出现这种情况时,Copilot 会向您发出警告,以便您仔细核对其输出结果。

探究议题和讨论

  1. 前往 GitHub 上的某个议题或讨论。

  2. 在右上角,单击 Copilot 图标()打开 副驾驶聊天。

    ️Copilot 将自动加载议题或讨论的内容,作为您提问时的上下文。

  3. 在提示框中,键入问题,然后按 Enter

Copilot 在面板中回应您的请求。

提示

你无需在浏览器中跳转到某个议题或讨论页面再提问,只需在消息中包含相关 URL 即可。 例如,Summarize https://github.com/monalisa/octokit/issues/1

示例提示

以下提示是可请求 Copilot 的问题类型的示例,可帮助你了解问题或讨论。

一般问题

  • Summarize this issue
  • What is the current status of this discussion?
  • What are the main points of contention in this issue?
  • Who are the key participants in this discussion?

具体问题

  • What are the proposed solutions for this issue?
  • What are the potential impacts of this issue?
  • What are the next steps for this discussion?

其他阅读材料