mingyang1996

openclaw-gitcode-pr-monitor

开发编程v0.1.2
作者:mingyang1996更新于 2026-05-11共 3 个版本 · 最新版本发布于 2026-03-15@clawhub_mingyang1996/openclaw-gitcode-pr-monitor
代码审查脚本工具Git 辅助

据 AlphaMoat 统计,截至 2026-09,openclaw-gitcode-pr-monitor 累计下载 1,006 次、获 0 个星标,在全部 5,078 个 AI 技能中排名第 5,032 位,在「开发编程」分类(577 个)中排名第 574 位。

累计安装
107
累计下载
1,006
星标
-
全站排名
#5,032
全站前 100% · 「开发编程」前 100%
平台累计安装累计下载星标评论
ClawHub ↗22876-2
SkillHub ↗1071,006-—

各平台的计数口径不同,统计时间不一致。

这个技能是做什么的

主文描述了检测新 PR、调用 OpenClaw 生成 Markdown 审查报告、回帖评论并发送钉钉或企业微信通知。流程会使用 GitCode 凭据并向外部系统发布内容;启用前应使用最小权限令牌、审阅通知目标和报告,并隔离处理可能包含不可信代码或提示注入的 PR 内容。不要在未审核的情况下自动发表评论或发送附件。

资料发布于 2026-10-29

可以用来做什么

  • 汇总指定仓库中待审 PR 的状态
  • 先生成本地审查报告草稿而不发表评论
  • 检查通知目标和 GitCode 令牌权限

什么时候用

  • 需要监控 GitCode PR 并准备审查报告时
  • 能够安全管理令牌并审查通知目标时
  • 发布评论或通知前可以进行人工审核时

示例提示词

以下是根据技能文档生成的示例,不代表实际运行结果。

汇总这个仓库的 PR 状态,但不要发布评论
起草审查报告并标注需人工确认的内容
检查通知目标和令牌权限后再启用自动流程

月度数据趋势

累计下载1,006
1686181,0682026-03 · 累计下载 2302026-05 · 累计下载 5272026-06 · 累计下载 6132026-07 · 累计下载 7712026-08 · 累计下载 8362026-09 · 累计下载 1,00626-0326-09
星标-
0112026-03 · 星标 -2026-05 · 星标 -2026-06 · 星标 -2026-07 · 星标 -2026-08 · 星标 -2026-09 · 星标 -26-0326-09

2026-09 起统计方法调整:同名技能按作者分别统计,并覆盖全部技能。图中虚线为调整前的月份,与之后的数据不直接比较,也不计算跨越调整的增长。

月份累计下载环比星标
2026-091,006—-
2026-08836+8.4%-
2026-07771+25.8%-
2026-06613+16.3%-
2026-05527—-
2026-03230—-

SKILL.md 原文

以下是作者发布的原始文件,按纯文本显示,本站未做修改或审核;其中的链接不可点击,命令请核实后再运行。抓取于 2026-10-23。

1.9 KB · ClawHub v0.1.2
---
name: openclaw-gitcode-pr-monitor
description: Monitor GitCode PRs for one or more repos, auto-run AI review via OpenClaw Gateway, post PR comments, and send notifications (DingTalk + WeCom).
---

# openclaw-gitcode-pr-monitor

This skill packages a production-ready GitCode PR monitoring + auto-review pipeline.

## What it does
展开全部(共 61 行)

- Poll GitCode PR list for one or more repos (defaults use **anonymous placeholders**: `ExampleOrg/example_repo_1` + `ExampleOrg/example_repo_2`)
- When a new PR is detected:
  - send “review started” notification
  - run `openclaw agent` to generate a Markdown review report
  - post the report back to the PR as a comment
  - send “review finished” notification + attach the report

## Files

- `scripts/monitor-gitcode-pr.sh` — fetch latest PR, compare state, output `NEW_PR_DETECTED`
- `scripts/gitcode-pr-monitor-agent.sh` — orchestrator (multi-repo loop)
- `scripts/code-review-robust.sh` — run AI review (repo-aware, daily rotated session id)
- `scripts/submit-pr-comment.sh` — post PR comment (repo-aware)

## Quick start

1) Put your GitCode token at:

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

2) Configure notification targets

This packaged version defaults to DingTalk + WeCom, but you **must** set your own targets.

Recommended (env vars):

```bash
export TARGET_DINGTALK="<your-dingtalk-target>"
export TARGET_WECOM="user:<wecom-userid>"
```

3) Configure repos

Recommended (env vars):

```bash
export REPO_OWNER="<your-org>"
export REPOS_CSV="repo_a,repo_b"
```

4) Install cron

Example (every 5 minutes):

```cron
*/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
```

See: `references/CONFIG.md`.

「开发编程」分类下的热门技能

数据月份:2026-09 · 下载/星标/安装数聚合自公开技能注册库(ClawHub、SkillHub),按月更新。口径说明见数据方法。