生成适合团队复盘、周会同步和对外汇报的 GitLab 周报。
config/config.json;如果不存在,先从 config/config.example.json 复制一份再填写。scripts/generate-report.sh 生成周报主文件。scripts/generate-charts.py;如果环境缺少 matplotlib,接受 Mermaid 回退方案。scripts/upload-to-feishu.sh 或 scripts/upload-to-feishu.js。weekly_report.md 与 weekly_report.htmlstats.json、图表和 reports/index.htmlscripts/generate-report.sh:命令入口scripts/generate-report.py:主逻辑scripts/generate-charts.py:图表生成scripts/upload-to-feishu.sh / scripts/upload-to-feishu.js:飞书上传config/config.example.json:配置示例config/classification.rules.example.json:分类规则示例templates/report.template.md:报告模板优先使用以下文件:
config/config.jsonconfig/classification.rules.json如果规则文件不存在,就从对应的 *.example.json 复制后再修改。
优先调整顺序:
repo_rules:适合仓库名、路径、项目归属明显的场景keyword_rules:适合 title / label / branch 关键词补充判断default_category:兜底分类cd /path/to/gitlab-weekly-report
cp config/config.example.json config/config.json
cp config/classification.rules.example.json config/classification.rules.json
./scripts/generate-report.sh \
-c config/config.json \
-s 2026-03-14 \
-e 2026-03-19
可选参数:
| 参数 | 说明 |
|---|---|
| --- | --- |
-c, --config | 配置文件 |
-s, --start-date | 开始日期 |
-e, --end-date | 结束日期 |
-o, --output | 输出目录 |
--no-charts | 跳过图表生成 |
reports/
├── index.html
├── latest -> 2026-03-14_to_2026-03-19/
└── 2026-03-14_to_2026-03-19/
├── weekly_report.md
├── weekly_report.html
├── stats.json
└── charts/
必需:
python3jq推荐:
matplotlibpandasrequests安装:
pip3 install -r requirements.txt
SKILL.md 聚焦流程和决策,不要把大段样例配置塞进来。matplotlib 阻塞周报生成。共 1 个版本
暂无安全检测报告