openclaw-gitcode-pr-monitor
by @mingyang1996
Monitor GitCode PRs for one or more repos, auto-run AI review via OpenClaw Gateway, post PR comments, and send notifications (DingTalk + WeCom).
clawhub install openclaw-gitcode-pr-monitor📖 About This Skill
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
ExampleOrg/example_repo_1 + ExampleOrg/example_repo_2)openclaw agent to generate a Markdown review report
- post the report back to the PR as a comment
- send “review finished” notification + attach the reportFiles
scripts/monitor-gitcode-pr.sh — fetch latest PR, compare state, output NEW_PR_DETECTEDscripts/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.txt2) Configure notification targets
This packaged version defaults to DingTalk + WeCom, but you must set your own targets.
Recommended (env vars):
export TARGET_DINGTALK=""
export TARGET_WECOM="user:"
3) Configure repos
Recommended (env vars):
export REPO_OWNER=""
export REPOS_CSV="repo_a,repo_b"
4) Install cron
Example (every 5 minutes):
*/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.
💡 Examples
1) Put your GitCode token at:
$HOME/.openclaw/workspace/data/gitcode-token.txt2) Configure notification targets
This packaged version defaults to DingTalk + WeCom, but you must set your own targets.
Recommended (env vars):
export TARGET_DINGTALK=""
export TARGET_WECOM="user:"
3) Configure repos
Recommended (env vars):
export REPO_OWNER=""
export REPOS_CSV="repo_a,repo_b"
4) Install cron
Example (every 5 minutes):
*/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.