GitHub Copilot app中的项目处于 公开预览 状态,且可能会发生变化。
关于项目
项目将相关工作随着时间推移通过 Copilot 汇集在一起。 给 Copilot 设定一个目标,并协调工作。 项目可以跨一个或多个存储库,也可以专注于不需要存储库的任务。 根据任务,这可以涉及启动会话、设置定期自动化或创建工件。
例如,可以使用项目调查客户反馈,并确定要改进的内容,或跟踪存储库中的紧急工作和正在进行的任务。 你可以跟踪进度,提供指导,并在工作不断发展时返回到项目。
若要处理特定存储库中的任务,可以直接从该存储库启动会话。 如果要 Copilot 协调工作,以便实现更广泛的目标,请使用项目。
创建项目并分配工作
为每个项目提供一个重点目标,以便可以将相关任务和结果保存在一起。
-
在**** 的边栏中,在GitHub Copilot app旁边,单击。 此时会打开 “新建项目” 页。
-
(可选)为项目选择要使用的存储库。 在此 Project 应使用哪些存储库? 下,选择建议的存储库或按存储库所有者和名称进行搜索,然后单击“添加存储库”。 无需添加存储库即可启动项目。
-
在提示框中,描述你希望将该项目用于什么用途,以及你希望 Copilot 执行的初始任务。包括你想要的结果和任何约束。 例如,若要调查有关功能的客户反馈,请执行以下操作:
Copilot prompt I want to use this project to investigate customer feedback about our new search feature and decide what to improve. First, review the feedback document in this project's library. Group the feedback by theme and summarize the main problems customers describe. For each theme, include supporting examples from the document and suggest questions we should investigate. Use only the provided feedback. Do not make code changes.
I want to use this project to investigate customer feedback about our new search feature and decide what to improve. First, review the feedback document in this project's library. Group the feedback by theme and summarize the main problems customers describe. For each theme, include supporting examples from the document and suggest questions we should investigate. Use only the provided feedback. Do not make code changes. -
(可选)在发送提示之前添加支持材料。 单击右侧面板顶部的 “资料库” 选项卡,单击“添加”,然后选择 “添加文件…” 或 添加文件夹… 选择文件或文件夹。
-
发送提示词以开始工作。
Copilot 协调朝着你的目标开展的工作。 可以跟踪项目中的总体进度,而不是分别管理每个会话。
跟踪和指导工作
单击右侧面板顶部的 “概述” 以查看项目的工作,按状态分组:
- 待处理:需要注意的决策、评审和权限请求。
- 开放:处理开放的拉取请求。 每个项显示会话的状态、关联的拉取请求以及添加和删除的行数。
- 运行中:当前正在运行的会话。
- 完成:已完成工作。
查看 需要输入 下的项,以了解需要您响应的位置。
若要检查单个会话,请单击“概述”选项卡中的会话。可以查看对话、更改、拉取请求和计划,或在 Steer this session 中发送一条消息来提供进一步的指导。
通过给 Copilot 分配后续任务继续工作。 例如,查看反馈摘要后:
Compare the two most common feedback themes. Recommend which one to investigate first and explain your reasoning. Identify any gaps in the feedback that could change the recommendation.
Compare the two most common feedback themes. Recommend
which one to investigate first and explain your reasoning.
Identify any gaps in the feedback that could change
the recommendation.
如果要继续处理目标,请返回到同一项目。 例如,可以添加新的一批反馈,并要求 Copilot 将其与以前的发现进行比较。
有关直接在单个会话中工作的信息,请参阅 在 GitHub Copilot 应用中使用代理会话。
共享上下文和查看工件
使用 库 与 Copilot 共享支持材料,并查找它在项目会话期间创建的工件。 保留与项目目标相关的材料,并告知 Copilot 在分配任务时要使用哪些来源。
单击右侧面板顶部的 资料库 选项卡,然后单击一个文件将其打开。 在 “所有文件” 下,代理 包含生成的项目,用户 包含您添加的材料。 若要添加支持材料,请单击“ 添加”,然后选择 “添加文件...” 或添加文件夹……。
例如,如果你正在调查客户对新功能的反馈,则可以将功能规范和包含客户反馈的文档添加到 库。 然后,可以要求 Copilot 使用规范来了解该功能预期如何工作,并利用反馈识别客户遇到的问题。
设置定期工作
若要设置定期工作,请在项目的会话中询问 Copilot 。 描述任务以及您希望它何时运行。
-
在项目的提示框中,描述定期任务,包括其计划和预期结果。 例如,如果在一周内向项目的库添加客户反馈,请每周一请求摘要:
Copilot prompt Every Monday at 9 AM in my local time zone, review the customer feedback in this project's library and create a summary grouped by theme. Include supporting examples and questions we should investigate. Use only the provided material.
Every Monday at 9 AM in my local time zone, review the customer feedback in this project's library and create a summary grouped by theme. Include supporting examples and questions we should investigate. Use only the provided material. -
发送提示,并回应来自Copilot的有关任务或计划的任何问题。
-
单击右侧面板顶部的 “自动化”,检查任务的计划和下次运行时间。
若要更改定期任务,请在项目的聊天中询问 Copilot 。 例如:“更新每周反馈摘要,以专注于搜索性能,并在每周五上午 10 点运行。
还可以手动编辑计划、暂停任务,或者从 “自动化” 选项卡中将其删除。在任务旁边,单击 :
- 单击“暂停”可停止任务运行,直到恢复该任务。
- 点击 “编辑计划…” 更改任务运行时间
- 单击“删除…” 删除重复任务。
有关从应用的独立自动化页创建计划任务的信息,请参阅 在 GitHub Copilot 应用中使用自动化。