返回顶部
d

diffmanifests清单差异比较

Compare manifest XML files via Gerrit and Gitiles APIs, producing JSON/txt/xlsx reports. Use when comparing Android or repo manifest versions, diffing manifest files, or when the user mentions diffmanifests, manifest comparison, or Gerrit/Gitiles manifest diffs.

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

diffmanifests

diffmanifests 技能 (OpenClaw)

使用 diffmanifests CLI 比较两个清单XML文件,获取详细的提交/变更报告。通过 pip install diffmanifests 安装。配置存储在JSON文件中;所有四个CLI参数均为必填项。

安装

bash
pip install diffmanifests

升级:pip install diffmanifests --upgrade

配置

配置从JSON文件中读取。捆绑配置(随此技能打包用于OpenClaw中心):使用本技能目录中的 config.json。参考结构:

部分参数类型描述
gerriturl字符串Gerrit实例URL
user | 字符串 | 认证用户名 |
| | pass | 字符串 | 密码或API令牌 |
| | query.option | 数组 | 例如 [CURRENT_REVISION] |
| gitiles | url | 字符串 | Gitiles实例URL |
| | user | 字符串 | 认证用户名 |
| | pass | 字符串 | 密码或API令牌 |
| | retry | 整数 | 重试次数(默认:1) |
| | timeout | 整数 | 超时秒数(-1 = 无超时) |

示例 config.json:

json
{
gerrit: {
url: https://android-review.googlesource.com,
user: ,
pass: ,
query: { option: [CURRENT_REVISION] }
},
gitiles: {
url: https://android.googlesource.com,
user: ,
pass: ,
retry: 1,
timeout: -1
}
}

参数(CLI)

参数必填描述
--config-file配置JSON文件的路径
--manifest1-file
✅ | 第一个(较旧)清单XML文件的路径 | | --manifest2-file | ✅ | 第二个(较新)清单XML文件的路径 | | --output-file | ✅ | 输出路径;根据扩展名决定格式:.json、.txt、.xlsx |

基本用法

使用本技能目录中捆绑的 config.json(或传入你自己的配置):

bash
diffmanifests \
--config-file config.json \
--manifest1-file path/to/older.xml \
--manifest2-file path/to/newer.xml \
--output-file path/to/output.json

在技能目录内执行:--config-file config.json。

输出格式由 --output-file 的扩展名决定:.json(结构化)、.txt(纯文本)、.xlsx(Excel)。

输出(JSON)

每个变更条目可包含:author、branch、change、commit、committer、date、diff(例如 ADD COMMIT / REMOVE COMMIT)、hashtags、message、repo、topic、url。

使用场景

  • - 用户要求比较两个清单文件或清单版本。
  • 用户提及 diffmanifests、Gerrit 清单差异比较或 Gitiles 清单比较。
  • 任务涉及 Android/repo 清单版本分析或变更报告。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 diffmanifests-1776177558 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 diffmanifests-1776177558 技能

通过命令行安装

skillhub install diffmanifests-1776177558

下载

⬇ 下载 diffmanifests v0.1.0(免费)

文件大小: 2.1 KB | 发布时间: 2026-4-15 12:24

v0.1.0 最新 2026-4-15 12:24
Initial release of diffmanifests.

- Compare two manifest XML files using Gerrit and Gitiles APIs.
- Generate detailed reports in JSON, plain text, or Excel format.
- Configure with a JSON file (sample included).
- All four CLI arguments are required: config file, two manifests, and output file.
- Designed for Android or repo manifest version comparisons and change reporting.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部