openclaw-gitcode-pr-monitor — OpenClaw-GitCode-PR监控器
v0.1.2监控一个或多个仓库的GitCode PR,通过OpenClaw Gateway自动运行AI审查,发布PR评论,并发送通知(DingTalk + WeCom)。
运行时依赖
安装命令
点击复制技能文档
openclaw-gitcode-pr-monitor 这个技能包装了一个生产就绪的 GitCode PR 监控 + 自动审查流水线。它的作用是: 轮询 GitCode PR 列表,监控一个或多个仓库(默认使用匿名占位符:ExampleOrg/example_repo_1 + ExampleOrg/example_repo_2) 当检测到新 PR 时: 发送“审查开始”通知 运行 openclaw 代理生成 Markdown 审查报告 将报告作为评论发布回 PR 发送“审查完成”通知 + 附上报告 文件 scripts/monitor-gitcode-pr.sh — 获取最新 PR,比较状态,输出 NEW_PR_DETECTED scripts/gitcode-pr-monitor-agent.sh — 编排器(多仓库循环) scripts/code-review-robust.sh — 运行 AI 审查(仓库感知,日轮换会话 ID) scripts/submit-pr-comment.sh — 发布 PR 评论(仓库感知) 快速开始 将您的 GitCode 令牌放置在:$HOME/.openclaw/workspace/data/gitcode-token.txt 配置通知目标 此打包版本默认为 DingTalk + WeCom,但您必须设置自己的目标。 推荐(环境变量): export TARGET_DINGTALK="<你的 DingTalk 目标>" export TARGET_WECOM="user:<你的 WeCom 用户 ID>" 配置仓库 推荐(环境变量): export REPO_OWNER="<你的组织>" export REPOS_CSV="repo_a,repo_b" 安装 cron 示例(每 5 分钟): /5 * OPENCLAW_WORKSPACE="$HOME/.openclaw/workspace" REPO_OWNER="..." REPOS_CSV="..." TARGET_DINGTALK="..." TARGET_WECOM="..." $OPENCLAW_WORKSPACE/skills/openclaw-gitcode-pr-monitor/scripts/gitcode-pr-monitor-agent.sh >> $OPENCLAW_WORKSPACE/logs/cron-gitcode-pr.log 2>&1 请参阅:references/CONFIG.md。