返回顶部
c

check-deployment-status检查部署状态

Check deployment status of PRs and commits using continuous-deployment MCP and UCS deployer MCP. Use when user asks "is this deployed", "check deployment", "deployment status", "is PR merged and deployed", "check UP status", "introduced to production", or provides a GitHub PR URL and wants deployment info.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
139
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

check-deployment-status

检查部署状态

使用持续部署MCP工具检查PR/提交是否已部署到预发布环境和生产环境。

使用方法

bash
/check-deployment-status # 检查GitHub PR的部署状态
/check-deployment-status # 检查特定提交的部署状态
/check-deployment-status # 列出最近提交及其部署状态

关键概念

PR头部提交 != 合并提交

当PR通过SubmitQueue合并时,主分支上的合并提交与PR的头部提交是不同的。持续部署系统追踪的是合并提交,而非PR头部。

工作流程:

  1. 1. 获取PR元数据 → 提取头部SHA
  2. 使用findServiceCommits及搜索文本查找主分支上的实际合并提交
  3. 使用合并提交哈希调用getCommitDeploymentStatus

UP部署阶段

阶段含义
构建已创建从提交构建的二进制文件
已部署到预发布环境
在预发布实例上运行 | | 已浸泡 | 预发布浸泡期已过 | | 等待部署窗口 | 在部署冻结窗口之外 | | 已引入生产环境 | 已完全部署到生产环境 — 代码已上线 |

已引入生产环境 = 完全部署。 非部分部署,非进行中。该提交正在所有生产实例上运行。

部署状态值

状态含义
DEPLOYMENTSTATUSDEPLOYED提交正在此环境中运行
DEPLOYMENTSTATUSDEPLOYING
部署进行中 | | (空) | 未部署到此环境 |

分步工作流程

步骤1:获取PR元数据

使用mcpcode-mcpgetgithubpullrequestmetadata:

org: uber-code
repo: go-code
number:

提取:标题、头部SHA、合并状态、基础分支。

步骤2:查找合并提交

PR头部SHA在部署系统中找不到。搜索合并提交:

使用mcpcontinuous-deploymentcontinuousdeployment_findservicecommits:

service_name: <服务名称>
filter: { searchtext: <来自PR标题的关键词>, commitedafter: 2026-02-25T00:00:00Z }
offset: 0
limit: 5

结果包含合并提交哈希、序列号以及链接回PR的代码审查元数据。

步骤3:检查部署状态

使用mcpcontinuous-deploymentcontinuousdeployment_getcommitdeploymentstatus:

hash: <合并提交哈希>
repository: gitolite@code.uber.internal:go-code
options: { scope: SCOPEALLSERVICES }

返回每个服务在每个环境(预发布、生产、bits-test-sandbox)中的部署状态。

MCP工具参考

持续部署MCP

工具用途
findServiceCommits按服务名称、作者、文本、日期范围搜索提交
getCommitDeploymentStatus
获取提交在所有环境中的部署状态 | | listServiceCommits | 列出服务的最近提交(基于序列的分页) | | getCommitsInDeployment | 列出特定部署任务中的提交 | | listCommitSegments | 获取服务的部署分段 | | getConfigForService | 获取服务的持续部署配置 |

code-mcp

工具用途
getgithubpullrequestmetadataPR状态、作者、标签、SubmitQueue状态
getgithubpullrequestdiff
PR差异内容 | | getgithubpullrequestcomments | PR评论 |

UCS部署器MCP

工具用途
ucsdeployerstatus特定部署对象的推出状态
deploystatemanagerread
读取部署状态 |

仅服务名称模式

如果只提供了服务名称(没有PR/提交):

使用mcpcontinuous-deploymentcontinuousdeployment_listservicecommits:

service_name: <服务名称>
offset: 0
limit: 5

然后使用步骤3检查每个返回提交的部署状态。

常见模式

堆叠PR

对于堆叠PR,每个PR可能影响不同的服务。按服务检查部署:

  • - 修改marketing-recommendations/的PR → 检查marketing-recommendations服务
  • 修改ads-insights/的PR → 检查ads-insights服务

仓库URI

对于go-code单仓库,始终使用:gitolite@code.uber.internal:go-code

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 check-deployment-status-1776106382 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 check-deployment-status-1776106382 技能

通过命令行安装

skillhub install check-deployment-status-1776106382

下载

⬇ 下载 check-deployment-status v1.0.0(免费)

文件大小: 2.41 KB | 发布时间: 2026-4-14 10:44

v1.0.0 最新 2026-4-14 10:44
check-deployment-status v1.0.0

- Initial release.
- Enables checking deployment status of GitHub PRs, commits, or recent commits per service using Uber's continuous-deployment MCP and UCS deployer MCP tools.
- Supports inputs like PR URL, commit hash, or service name.
- Provides clear workflow for mapping a PR to its deployed merge commit.
- Returns detailed deployment status for staging and production, including when code is fully introduced to production.

Archiver·手机版·闲社网·闲社论坛·智能体自动化市场· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2026 闲社网·AI智能体论坛·AI自动化解决方案·http://xianshe.com

p2p_official_large
返回顶部