跳到主内容
@wquguru
精选70GitHub 博客(RSS)产品发布/更新

GitHub Agent Apps:将软件交付工作流带入 GitHub

How to bring your software delivery workflow into GitHub with agent apps

原文
发到 X

How many tabs do you have open alongside your pull request?

你的拉取请求旁边打开了多少个标签页?

Imagine picking up a new issue in your product’s free-trial onboarding flow: make the “invite your teammates” step optional. Support keeps flagging the step as a friction point as signups increase. Quick win, right?

想象一下,在你的产品免费试用引导流程中接手一个新问题:把“邀请你的队友”步骤设为可选。随着注册量增加,支持团队一直将该步骤标记为摩擦点。快速修复,对吧?

From scoping to deployment, you need answers to these four questions:

从范围界定到部署,你需要回答这四个问题:

  • Is this even the right change?
  • Are the dependencies I’m touching clean?
  • How do I roll it out safely?
  • Is it safe to deploy right now?
  • 这真的是正确的更改吗?
  • 我接触的依赖项是否干净?
  • 我如何安全地推出它?
  • 现在部署安全吗?

Each answer lives in a different tool, so working through the pull request means carrying the same context across four places.

每个答案都存在于不同的工具中,因此处理拉取请求意味着要在四个地方携带相同的上下文。

GitHub agent apps bring the tools you need to answer those questions to where you’re already working, powered by the same platform and harness as our own Copilot cloud agent. The illustrative walkthrough below shows how you can use services you already depend on, such as Amplitude, Endor Labs, LaunchDarkly, and PagerDuty to answer these questions and complete this request, without ever leaving GitHub.

GitHub 代理应用将回答这些问题所需的工具带到你已经工作的地方,由与我们自己的 Copilot 云代理相同的平台和框架提供支持。下面的说明性演练展示了如何使用你已经依赖的服务,如 Amplitude、Endor Labs、LaunchDarkly 和 PagerDuty,来回答这些问题并完成此请求,而无需离开 GitHub。

1. Before you build it

1. 在构建之前

Support says the “invite your teammates” step is annoying for customers who are onboarding with your product, but they haven’t given an indication of who has complained or whether those complaints lead to churn. You’d be right to be skeptical. So instead of opening Amplitude and building a query to confirm your hunch, you ask the Amplitude agent right from the Agents tab:

支持团队表示,“邀请你的队友”步骤对于正在注册你产品的客户来说很烦人,但他们没有指出谁抱怨过,或者这些抱怨是否导致流失。你持怀疑态度是对的。因此,与其打开 Amplitude 并构建查询来确认你的直觉,不如直接从“代理”选项卡中询问 Amplitude 代理:

代码 · 1
@amplitude[agent] is completing the team invite step correlated with success later in the funnel? Break it down by segments we're measuring.
代码 · 1
@amplitude[agent] is completing the team invite step correlated with success later in the funnel? Break it down by segments we're measuring.

The split comes back clear: team users who finish the step are more likely to retain later, while solo users don’t have that correlation. A rescope is now justified: defer the step for solo signups and keep it for teams.

拆分结果清晰:完成该步骤的团队用户更有可能在之后留存,而个人用户则没有这种相关性。现在重新界定范围是合理的:对个人注册延迟该步骤,对团队保留该步骤。

Access to product insights is now within GitHub, enabling course correction before any code is written.

产品洞察的访问现在在 GitHub 内,可以在编写任何代码之前进行路线修正。

2. As you build it

2. 在构建过程中

Copilot opens a draft pull request for the change. The implementation also updates dependencies used by the onboarding flow. Instead of waiting for a CI scan to fail later, you ask the Endor Labs agent in a comment:

Copilot 为更改打开了一个草稿拉取请求。该实现还更新了引导流程使用的依赖项。与其等待 CI 扫描稍后失败,不如在评论中询问 Endor Labs 代理:

代码 · 1
@endor-labs-github-agenthq[agent] is there anything I need to watch out for in the dependencies being touched by this pull request?
代码 · 1
@endor-labs-github-agenthq[agent] is there anything I need to watch out for in the dependencies being touched by this pull request?

The agent identifies the changed dependencies, checks them for known vulnerabilities and broader package risk, then reports back in the pull request. This time, everything looks clean. Nothing to remediate.

该代理识别更改的依赖项,检查它们是否存在已知漏洞和更广泛的包风险,然后在拉取请求中报告。这次,一切看起来都很干净。无需修复。

Dependency review becomes a proactive check while the change is still in front of you. Much better than remediating a CI scan after it fails.

依赖项审查成为主动检查,而更改仍然在你面前。这比在 CI 扫描失败后修复要好得多。

3. Rolling it out

3. 推出

The previous finding now gets carried through to implementation: solo signups get the optional path, while teams keep the existing one. Because these segments are set at signup, a feature flag can target them directly. Ask the LaunchDarkly agent to set it up for you, the same way you’d ask a team member:

之前的发现现在得以贯彻到实施中:个人注册用户获得可选路径,而团队则保留现有路径。由于这些细分是在注册时设定的,功能开关可以直接针对它们。让 LaunchDarkly 代理为你设置,就像你请求团队成员一样:

代码 · 6
@launchdarkly-agent[agent] please create a feature flag for this pull request and wire it into the code.
   - key: defer-team-invite
   - type: boolean
   - default: false
   - target: solo-intent signups
   - rollout: internal > 5% > 25% > 100%
代码 · 6
@launchdarkly-agent[agent] please create a feature flag for this pull request and wire it into the code.
   - key: defer-team-invite
   - type: boolean
   - default: false
   - target: solo-intent signups
   - rollout: internal > 5% > 25% > 100%

The agent creates the flag in LaunchDarkly and adds the code implementation as a commit you review. If the target environment requires approval, it creates an approval request instead of applying the targeting change directly. A human still decides whether the rollout moves forward.

代理在 LaunchDarkly 中创建开关,并将代码实现作为提交添加,供你审查。如果目标环境需要审批,它会创建审批请求,而不是直接应用定向更改。是否推进发布仍由人类决定。

Flag setup goes from a second tool, a manual code handoff, and Slack coordination to one pull request comment and a commit you review.

开关设置从需要第二个工具、手动代码交接和 Slack 协调,变成一条拉取请求评论和一个供你审查的提交。

4. Before you ship

4. 发布之前

Review tells you the code is correct, but whether the service is in a good state for a deployment is a different question. Before merging, you ask the PagerDuty agent:

审查告诉你代码是正确的,但服务是否处于适合部署的良好状态是另一个问题。在合并之前,你询问 PagerDuty 代理:

代码 · 1
@pagerduty-agent-app[agent] assess the deployment risk for this pull request against the onboarding service. Check active incidents and recent incident history, then recommend whether to proceed.
代码 · 1
@pagerduty-agent-app[agent] assess the deployment risk for this pull request against the onboarding service. Check active incidents and recent incident history, then recommend whether to proceed.

The agent maps the repository to its PagerDuty service, checks for active incidents, reviews the previous 90 days, and compares the files in the pull request with areas involved in past incidents.

代理将仓库映射到其 PagerDuty 服务,检查是否有活跃事件,回顾过去 90 天的情况,并将拉取请求中的文件与过去事件涉及的领域进行比较。

This time, the risk is low. There are no active incidents and no meaningful correlation with the current changes. The recommendation is to proceed.

这次风险很低。没有活跃事件,与当前更改也没有显著相关性。建议是继续。

Nothing dramatic happens, but that’s the point. Checking deploy risk becomes a routine step for your pull requests instead of something you do only when a release already feels dangerous.

没有发生什么戏剧性的事情,但这正是重点。检查部署风险成为你拉取请求的常规步骤,而不是只在发布已经感觉危险时才做的事情。

What changes

变化之处

You still use Amplitude, LaunchDarkly, Endor Labs, and PagerDuty. But now, you no longer need to carry the context between them, and they’ll all work directly in your GitHub workflows.

你仍然使用 Amplitude、LaunchDarkly、Endor Labs 和 PagerDuty。但现在,你不再需要在它们之间传递上下文,它们都将直接在你的 GitHub 工作流中工作。

As work moves from idea to production, developers can bring each service into GitHub when its context or capabilities matter. With agent apps, GitHub becomes the place where developers and agents coordinate what happens next, without developers switching contexts.

随着工作从想法走向生产,开发人员可以在每个服务的上下文或能力重要时将其带入 GitHub。借助代理应用,GitHub 成为开发人员和代理协调下一步行动的地方,而无需开发人员切换上下文。

Try it

试试看

Agent Apps are available from the GitHub Marketplace. Install one, enable it for your organization, and take it for a spin:

代理应用可从 GitHub Marketplace 获取。安装一个,为你的组织启用,然后试用一下:

  • Assign it to an issue to kick off a task.
  • @mention it in a pull request comment for analysis or action.
  • Select it from the Agents tab in your repository.
  • 将其分配给一个问题以启动任务。
  • 在拉取请求评论中 @提及它,以进行分析或操作。
  • 从仓库的“代理”选项卡中选择它。

Your tools are still your tools. Now, they show up where you are already working: on GitHub. Explore the other inaugural Agent Apps and start bringing your stack directly into your workflow:

你的工具仍然是你的工具。现在,它们出现在你已经在工作的地方:GitHub。探索其他首批代理应用,并开始将你的技术栈直接带入你的工作流:

  • Packfiles’s agent reads your backlog and builds a migration strategy. reads your backlog and builds a migration strategy.
  • Miro‘s agent connects visual collaboration with code workflows.
  • Bright Security‘s agent autonomously handles end-to-end dynamic security testing inside GitHub.
  • SonarQube‘s agent brings analysis, quality gates, and remediation into GitHub agent sessions.
  • Octopus Deploy‘s agent can identify, diagnose, and resolve deployment failures.
  • Packfiles 的代理读取你的待办事项并制定迁移策略。读取你的待办事项并制定迁移策略。
  • Miro 的代理将视觉协作与代码工作流连接起来。
  • Bright Security 的代理可在 GitHub 内自主处理端到端的动态安全测试。
  • SonarQube 的代理将分析、质量门禁和修复引入 GitHub 代理会话。
  • Octopus Deploy 的代理能够识别、诊断并解决部署失败问题。

Discover Agent Apps in the GitHub Marketplace >

在 GitHub Marketplace 中发现代理应用 >

The post How to bring your software delivery workflow into GitHub with agent apps appeared first on The GitHub Blog.

这篇文章《如何通过代理应用将软件交付工作流引入 GitHub》最初出现在 GitHub 博客上。

更进一步:量化金融体系

看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力

进入量化体系 →

相似阅读

另一事件,读法相近