官方更新 GitHub Changelog Mon, 03 Aug 2026 正文 ok 152 words

通过评论触发 Copilot 自动化

英文标题:Trigger Copilot automations with comments

GitHub 现支持创建由 Issue 评论或 Pull Request 评论触发的 Copilot 云端 Agent 自动化。开发者可通过特定评论指令自动生成文档、调查错误日志或创建后续重构与技术债任务。该功能面向现有 Copilot Pro、Pro+、Max、Business 和 Enterprise 用户开放;Business 与 Enterprise 用户还需由管理员启用 Copilot 云端 Agent 策略。该能力可将常见协作评论转化为自动化开发工作流,减少人工处理重复任务。
打开原文相关 3 · 机会 4
media120.8 KB media16.4 KB media184.7 KB

中文

现在,你可以创建 Copilot 云端 Agent 自动化,使其在创建 Issue 评论或 Pull Request 评论时运行。

常见用例包括:

  • 生成文档:在 Pull Request 中发表评论,根据你的代码变更自动生成或更新文档。
  • 调查错误:在 Issue 中发表评论,触发自动化以调查堆栈跟踪或错误日志。
  • 创建后续任务:在 Pull Request 中发表评论,让自动化自动为重构或技术债创建后续 Issue。

配置自动化时,请指定应触发该自动化的评论文本。要开始使用,请进入仓库中的 Agents 选项卡,然后在侧边栏中选择 Automations。

自动化功能适用于现有的 Copilot Pro、Pro+、Max、Business 和 Enterprise 用户。Copilot Business 和 Copilot Enterprise 用户需要由管理员启用 Copilot 云端 Agent 策略。

更多信息请参阅 GitHub Docs 中的 About Copilot automations。

English / 原文

You can now create Copilot cloud agent automations that run when an issue comment or pull request comment is created.

Common use cases include:

  • Generate documentation : Comment on a pull request to automatically generate or update documentation based on your code changes.
  • Investigate errors : Comment on an issue to trigger an automation that investigates stack traces or error logs.
  • Create follow-up tasks : Comment on a pull request to have an automation automatically create follow-up issues for refactoring or technical debt.

When configuring an automation, specify the comment text that should trigger it. To get started, click through to the Agents tab in your repository, then pick Automations in the sidebar.

Automations are available for existing Copilot Pro, Pro+, Max, Business, and Enterprise users. Copilot Business and Copilot Enterprise users need the Copilot cloud agent policy enabled by an administrator.

Learn more in About Copilot automations in the GitHub Docs.