← 返回
未分类 Key

PR Auto-Check

Automated PR submission pipeline: run code review, verify service health, and post the full result to a Discord channel. Use when a new PR is submitted and n...
自动化PR提交流水线:执行代码审查、验证服务健康并将完整结果发布至Discord频道,适用于新PR提交时。
terrycarter1985 terrycarter1985 来源
未分类 clawhub v3.0.0 3 版本 100000 Key: 需要
★ 0
Stars
📥 402
下载
💾 0
安装
3
版本
#latest

概述

PR Auto-Check

Automated pipeline that runs on new PR submission: code review → health check → Discord notification.

Workflow

  1. Run the pipeline script — collects CI status, diff stats, and health check results:

```bash

bash {baseDir}/scripts/pr_auto_check.sh --pr [--repo ] [--json]

```

  • --json: machine-readable output (for piping)
  • Without --json: human-readable report printed to stdout
  • Prints the temp result-file path as the last line (for piping to notification)
  1. Conduct code review — use the code-review skill on the PR diff. Focus on:
    • Critical issues and security findings
    • CI/CD failures (if any)
    • Summarize findings into the report
  1. Post result to Discord:

```bash

bash {baseDir}/scripts/notify_discord.sh --webhook --result

```

One-liner (CI/CD integration)

RESULT=$(bash {baseDir}/scripts/pr_auto_check.sh --pr 42 --json) && \
  bash {baseDir}/scripts/notify_discord.sh --webhook "$WEBHOOK" --result "$RESULT"

Required Environment

  • gh CLI authenticated (gh auth login)
  • jq for JSON processing
  • curl for Discord webhook
  • Discord webhook URL (set as DISCORD_WEBHOOK env var or pass --webhook)
  • Optional: healthcheck skill installed for service health validation

Discord Webhook Setup

  1. Server Settings → Integrations → Webhooks → New Webhook
  2. Copy the webhook URL
  3. Set DISCORD_WEBHOOK in your environment or pass via --webhook

Exit Codes (pr_auto_check.sh)

CodeMeaning
---------------
0All checks passed
1CI failures or health warnings
2Critical health issues

Output Format

See references/output-format.md for the JSON schema.

版本历史

共 3 个版本

  • v3.0.0 当前
    2026-05-21 13:31 安全 安全
  • v2.0.0
    2026-05-08 13:16 安全 安全
  • v1.0.0
    2026-05-08 03:53

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

dev-programming

CodeConductor.ai

larsonreever
AI驱动平台,提供快速全栈开发、智能体、工作流自动化及低代码AI集成的可扩展产品创建。
★ 75 📥 182,360
dev-programming

Mcporter

steipete
使用 mcporter CLI 直接列出、配置、认证及调用 MCP 服务器/工具(支持 HTTP 或 stdio),涵盖临时服务器、配置编辑及 CLI/类型生成功能。
★ 196 📥 67,911
data-analysis

Stock Price Alert

terrycarter1985
股价异动实时提醒,支持行情接口、邮件和Sonos语音播报
★ 0 📥 750