闲社服务运行正常AI智能体自动化平台
g

GitLab提交报告

技能标识:gitlab-commit-report

GitLab group push events collector and daily commit report generator

作者:admin | 来源记录:ClawHub
登记来源
ClawHub
版本
V 1.0.0
检测标记
后台标记通过
免费
免费获取
0
收藏
来源与检测标记为平台登记信息,并不代表已展示可复核的检测报告。使用前请核对版本、依赖和所需权限,建议先在隔离环境中运行。
概述
安装方式
版本历史

GitLab提交报告

GitLab Commit Report

从 GitLab Group 的 activity 接口采集代码提交数据,支持分页拉取当天全量数据,并按需生成任意日期的提交日报。

技能功能

该技能将:

  1. 1. 连接到已有的 Chrome 浏览器会话(已登录 GitLab)
  2. 通过分页调用 GitLab Group Activity API(/groups/:groupId/-/activity?limit=20&offset=N)
  3. 解析 HTML 响应,提取推送事件:作者、仓库、提交 ID、提交信息、时间戳
  4. 遇到早于今天的事件时停止分页
  5. 将新事件合并到 ~/openclaw-skill-data/gitlab-commit-report/YYYY-MM-DD.json,并基于提交 ID 去重
  6. 按需汇总任意日期的统计数据,生成 Markdown 报告

使用方法

当用户提出类似以下需求时:

  • - 采集 GitLab 今天的提交数据
  • 拉取今天的代码提交记录
  • 生成 GitLab 提交日报
  • 生成今天的代码提交报告
  • 生成某天的提交报告,比如 2026-03-18

运行:

bash

采集今天的 push events(配合 cron 每小时执行)


node dist/index.js collect

生成今日日报

node dist/index.js report

生成指定日期日报

node dist/index.js report 2026-03-18

输出

该技能将生成:

~/openclaw-skill-data/gitlab-commit-report/YYYY-MM-DD.json # 当天所有 push 事件原始数据(增量去重追加)
~/openclaw-skill-data/gitlab-commit-report/YYYY-MM-DD.md # 指定日期提交日报

配置

将 config.example.json 复制到 ~/openclaw-skill-data/gitlab-commit-report/config.json,并填写以下内容:

json
{
gitlabUrl: https://git.corp.kuaishou.com,
groupId: your-group-path,
groupName: 我的团队
}

报告内容

  • - 概览:提交总次数、活跃提交人数、涉及仓库数
  • Top 10 提交者排行
  • Top 5 活跃仓库排行

标签

skill ai

通过对话安装

以下为平台配置的接入选项,并非逐项实测通过。能否安装取决于客户端支持、技能来源和运行环境:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 gitlab-commit-report-1776051242 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 gitlab-commit-report-1776051242 技能

通过命令行安装

skillhub install gitlab-commit-report-1776051242

下载

⬇ 下载 gitlab-commit-report v1.0.0(免费)

文件大小: 11.27 KB | 发布时间: 2026-4-14 09:58

v1.0.0 最新 2026-4-14 09:58
Initial release of gitlab-commit-report skill.

- Collects GitLab group push events by paginating the Group Activity API in a logged-in Chrome session.
- Extracts key push event details: author, repository, commit id, message, and timestamp.
- Saves daily raw event data with commit deduplication to JSON files.
- Aggregates and generates daily Markdown reports with commit stats, top authors, and top repositories.
- Supports cron scheduling and on-demand reports for any date.
- Configurable via a JSON file for GitLab URL, group path, and team name.
返回顶部