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
累計下載
1006
星標
-
全站排名
#5,032
全站前 100% · 「開發程式設計」前 100%
平台累計安裝累計下載星標評論
ClawHub ↗22876-2
SkillHub ↗1071006-—

各平台的計數口徑不同,統計時間不一致。

這個技能是做什麼的

主文描述了檢測新 PR、呼叫 OpenClaw 生成 Markdown 審查報告、回帖評論併傳送釘釘或企業微信通知。流程會使用 GitCode 憑據並向外部系統釋出內容;啟用前應使用最小許可權令牌、審閱通知目標和報告,並隔離處理可能包含不可信程式碼或提示注入的 PR 內容。不要在未稽核的情況下自動發表評論或傳送附件。

資料釋出於 2026-10-29

可以用來做什麼

  • 彙總指定倉庫中待審 PR 的狀態
  • 先生成本地審查報告草稿而不發表評論
  • 檢查通知目標和 GitCode 令牌許可權

什麼時候用

  • 需要監控 GitCode PR 並準備審查報告時
  • 能夠安全管理令牌並審查通知目標時
  • 釋出評論或通知前可以進行人工稽核時

示例提示詞

以下是根據技能文件生成的示例,不代表實際執行結果。

彙總這個倉庫的 PR 狀態,但不要釋出評論
起草審查報告並標註需人工確認的內容
檢查通知目標和令牌許可權後再啟用自動流程

月度資料趨勢

累計下載1006
16861810682026-03 · 累計下載 2302026-05 · 累計下載 5272026-06 · 累計下載 6132026-07 · 累計下載 7712026-08 · 累計下載 8362026-09 · 累計下載 100626-0326-09
星標-
0112026-03 · 星標 -2026-05 · 星標 -2026-06 · 星標 -2026-07 · 星標 -2026-08 · 星標 -2026-09 · 星標 -26-0326-09

2026-09 起統計方法調整:同名技能按作者分別統計,並覆蓋全部技能。圖中虛線為調整前的月份,與之後的資料不直接比較,也不計算跨越調整的增長。

月份累計下載環比星標
2026-091006—-
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),按月更新。口徑說明見資料方法。