← Back to Skills Marketplace
farb

阿里云云效创建MR+发布+通知(全可配置)

by FarbKuo · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
96
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install ailiyun-yunxiao-mr-deploy
Description
支持自定义分支/代码库创建MR、查询MR合并状态、按代码库+环境关键字触发发布流水线,并自动推送通知。支持自然语言输入,由大模型自动识别意图。
README (SKILL.md)

\r \r

功能说明\r

  • 创建 MR:大模型自动识别代码库名/源分支/目标分支,代码库名支持精确匹配和模糊匹配\r
  • 查询 MR 状态:支持按代码库名 + MR 编号查询合并状态、审核情况、分支信息\r
  • 触发发布:支持按代码库名 + 环境关键字(如 beta、dev)搜索流水线,多条匹配时列出供用户选择;也可直接指定流水线ID\r
  • 通知:所有操作结果自动推送到指定url,包括办公软件(企微,钉钉等)的各种机器人\r \r

自然语言示例\r

\r

创建 MR\r

  • 帮我把 feature/login 合到 dev\r
  • 从 release 创建到 main 的合并请求\r
  • 在 erp-ops 仓库创建 fix_xxx 到 beta 的 MR\r
  • 把 260309_espu_inventory 分支提到 beta\r
  • 新建一个 PR 从 hotfix/xxx 到 master\r \r

查询 MR 状态\r

  • 查询 erp-ops #425 的合并状态\r
  • erp-ops-api 第152号MR合并了吗\r
  • 帮我看一下 unitepos-sale MR #307 有没有通过\r
  • #306 MR 状态怎么样了\r \r

触发发布\r

  • 发布 erp-ops 的 beta 环境\r
  • 触发 erp-ops-api 的 dev 流水线\r
  • 部署 unitepos-sale beta\r
  • 线上发布(使用默认流水线)\r
  • 触发流水线 4297451(直接指定ID)\r \r

配置说明\r

\r

敏感配置(推荐通过环境变量设置)\r

\r 以下三项优先从系统环境变量读取,未设置时回退到脚本内默认值:\r \r | 环境变量 | 说明 |\r |---|---|\r | YUNXIAO_PERSONAL_TOKEN | 云效个人访问令牌 |\r | YUNXIAO_ORGANIZATION_ID | 企业/组织 ID |\r | WECOM_WEBHOOK_URL | 企业微信机器人 Webhook 完整地址 |\r \r Windows 设置环境变量示例(PowerShell):\r

[System.Environment]::SetEnvironmentVariable("YUNXIAO_PERSONAL_TOKEN", "你的令牌", "User")\r
[System.Environment]::SetEnvironmentVariable("YUNXIAO_ORGANIZATION_ID", "你的企业ID", "User")\r
[System.Environment]::SetEnvironmentVariable("WECOM_WEBHOOK_URL", "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx", "User")\r
```\r
\r
**macOS / Linux 设置示例(写入 ~/.zshrc 或 ~/.bashrc):**\r
```bash\r
export YUNXIAO_PERSONAL_TOKEN="你的令牌"\r
export YUNXIAO_ORGANIZATION_ID="你的企业ID"\r
export WECOM_WEBHOOK_URL="https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=xxx"\r
```\r
\r
### 其他配置(在脚本 `mr_deploy_old_full.py` 的 CONFIG 中填写)\r
\r
- `DEFAULT_REPO_ID`:未指定代码库时的默认代码库ID\r
- `DEFAULT_SOURCE`:未指定时的默认源分支\r
- `DEFAULT_TARGET`:未指定时的默认目标分支\r
- `DEFAULT_FLOW_ID`:未指定时的默认流水线ID(发布场景无关键字时使用)\r
\r
## 工作原理\r
用户输入 → 大模型解析意图(action / repo_name / source_branch / target_branch / mr_id / flow_id / env_keyword)\r
- `create_mr`:按仓库名查询ID → 调用创建接口 → 企微通知\r
- `query_mr`:按仓库名查询ID → 查询MR详情 → 返回状态+审核信息\r
- `deploy`:有 flow_id 则直接触发;否则按 repo_name + env_keyword 搜索流水线(名称匹配规则:`{repo_name}_{env_keyword}`)→ 唯一匹配则触发,多条则列出供确认\r
\r
## 踩坑经验\r
\r
(以下由 AI 在实际使用中自动积累,请勿手动删除)\r
Usage Guidance
This skill appears internally consistent with its stated purpose. Before installing, consider: (1) Provide a least-privileged Yunxiao personal token (rotate it regularly) and ensure the token scope only allows repository/pipeline actions required. (2) Verify WECOM_WEBHOOK_URL points to your organization’s bot (do not use public/pasted webhook URLs). (3) Review the Python file yourself for any additional endpoints or unexpected behavior; the code makes HTTP calls to openapi-rdc.aliyuncs.com and to whatever webhook URL you supply. (4) Ensure the runtime has the 'requests' library available; the skill metadata does not declare dependencies. (5) Test with non-production repositories/pipelines first. (6) Avoid posting secrets into chat logs or public places — set them as environment variables on the host or in a secure secret store.
Capability Analysis
Type: OpenClaw Skill Name: ailiyun-yunxiao-mr-deploy Version: 1.0.0 The skill bundle is designed to manage Alibaba Cloud Yunxiao merge requests and deployment pipelines. It uses environment variables for sensitive credentials (YUNXIAO_PERSONAL_TOKEN) and interacts with official Alibaba Cloud API endpoints (openapi-rdc.aliyuncs.com). While there is a minor configuration discrepancy where skills.json references 'mr_deploy_old_full.py' but the provided script is named 'ailiyun_yunxiao_mr_deploy.py', the code logic is transparent, follows the stated purpose, and contains no evidence of malicious intent, data exfiltration, or unauthorized execution.
Capability Assessment
Purpose & Capability
Name/description, SKILL.md and the Python code all target Aliyun 云效 (openapi-rdc.aliyuncs.com) operations (repository lookup, create changeRequests, search/run pipelines) and sending notifications to a webhook. Required secrets (personal token, organization id, webhook) are exactly what you would expect for these operations.
Instruction Scope
SKILL.md instructs the agent to parse natural language, call Yunxiao APIs and post results to the configured webhook. The instructions do not ask the agent to read unrelated system files or transmit data to unexpected third-party endpoints beyond the Yunxiao API domain and the user-supplied webhook URL.
Install Mechanism
There is no install spec and the skill comes with a single Python file; nothing is downloaded from external URLs and no archive extraction is used. This lowers install-time risk. Note: the code uses the 'requests' library but the skill metadata doesn't list runtime dependencies.
Credentials
The sensitive environment variables documented in SKILL.md (YUNXIAO_PERSONAL_TOKEN, YUNXIAO_ORGANIZATION_ID, WECOM_WEBHOOK_URL) are appropriate for the described functionality. Minor inconsistencies: the registry metadata reported 'required env vars: none' while SKILL.md and the code clearly expect those environment variables (they are optional but recommended). Also the code relies on the 'requests' package which is not declared in metadata.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide configs, and does not persist credentials itself. It will, however, send network requests to the Yunxiao API and to the configured webhook when invoked.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install ailiyun-yunxiao-mr-deploy
  3. After installation, invoke the skill by name or use /ailiyun-yunxiao-mr-deploy
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
init
Metadata
Slug ailiyun-yunxiao-mr-deploy
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is 阿里云云效创建MR+发布+通知(全可配置)?

支持自定义分支/代码库创建MR、查询MR合并状态、按代码库+环境关键字触发发布流水线,并自动推送通知。支持自然语言输入,由大模型自动识别意图。 It is an AI Agent Skill for Claude Code / OpenClaw, with 96 downloads so far.

How do I install 阿里云云效创建MR+发布+通知(全可配置)?

Run "/install ailiyun-yunxiao-mr-deploy" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is 阿里云云效创建MR+发布+通知(全可配置) free?

Yes, 阿里云云效创建MR+发布+通知(全可配置) is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does 阿里云云效创建MR+发布+通知(全可配置) support?

阿里云云效创建MR+发布+通知(全可配置) is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created 阿里云云效创建MR+发布+通知(全可配置)?

It is built and maintained by FarbKuo (@farb); the current version is v1.0.0.

💬 Comments