返回顶部
o

openclaw-gitcode-pr-monitorGitCode PR监控

Monitor GitCode PRs for one or more repos, auto-run AI review via OpenClaw Gateway, post PR comments, and send notifications (DingTalk + WeCom).

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

openclaw-gitcode-pr-monitor

openclaw-gitcode-pr-monitor

该技能封装了一个生产就绪的GitCode PR监控与自动审查流水线。

功能说明

  • - 轮询一个或多个仓库的GitCode PR列表(默认使用匿名占位符:ExampleOrg/examplerepo1 + ExampleOrg/examplerepo2)
  • 检测到新PR时:
- 发送“审查已开始”通知 - 运行openclaw agent生成Markdown格式的审查报告 - 将报告作为评论发布回PR - 发送“审查已完成”通知并附带报告

文件结构

  • - scripts/monitor-gitcode-pr.sh — 获取最新PR,比较状态,输出NEWPRDETECTED
  • scripts/gitcode-pr-monitor-agent.sh — 编排器(多仓库循环)
  • scripts/code-review-robust.sh — 运行AI审查(感知仓库,每日轮换会话ID)
  • scripts/submit-pr-comment.sh — 发布PR评论(感知仓库)

快速开始

1) 将GitCode令牌放入:

  • - $HOME/.openclaw/workspace/data/gitcode-token.txt

2) 配置通知目标

本打包版本默认支持钉钉+企业微信,但必须设置自己的目标。

推荐(环境变量):

bash
export TARGET_DINGTALK=<你的钉钉目标>
export TARGET_WECOM=user:<企业微信用户ID>

3) 配置仓库

推荐(环境变量):

bash
export REPO_OWNER=<你的组织>
export REPOSCSV=repoa,repo_b

4) 安装定时任务

示例(每5分钟执行):

cron
/5 * OPENCLAWWORKSPACE=$HOME/.openclaw/workspace REPOOWNER=... REPOSCSV=... TARGETDINGTALK=... TARGETWECOM=... $OPENCLAWWORKSPACE/skills/openclaw-gitcode-pr-monitor/scripts/gitcode-pr-monitor-agent.sh >> $OPENCLAW_WORKSPACE/logs/cron-gitcode-pr.log 2>&1

参见:references/CONFIG.md。

标签

skill ai

通过对话安装

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

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-gitcode-pr-monitor-1776075015 技能

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

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-gitcode-pr-monitor-1776075015 技能

通过命令行安装

skillhub install openclaw-gitcode-pr-monitor-1776075015

下载

⬇ 下载 openclaw-gitcode-pr-monitor v0.1.2(免费)

文件大小: 11.79 KB | 发布时间: 2026-4-15 13:44

v0.1.2 最新 2026-4-15 13:44
Further sanitize package: remove hardcoded repo defaults and absolute local install paths; use env-based config and PATH discovery.

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

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

p2p_official_large
返回顶部