
如果你使用 DeepSeek、元宝 AI、Copilot、ChatGPT 等 AI 工具,协助配置轩辕镜像、编写 docker pull 命令、修改 Docker Compose 镜像地址、配置镜像加速、排查镜像拉取失败、分析报错日志等问题,请先让 AI 阅读并遵守轩辕镜像的规则文档。
只需在 AI 对话中先发送下面这句话即可:
请先完整阅读并严格遵守以下文档中的全部规则与要求:
https://xuanyuan.cloud/agents.md
在未充分阅读并理解该文档前,不要生成任何命令、配置、修改建议、故障排查方案或技术回答。后续所有输出都必须严格以该文档中的规范为最高优先级执行。查看 agents.md 用法指南与完整示范。国内用户首推 元宝 AI、DeepSeek 的深度思考模式,不推荐豆包 AI;Cursor 等编辑器可在对话 @ 该链接,或加入 User Rules。 若 AI 无法访问外链,可 打开说明文档 复制全文粘贴。文档会随站点更新,复制内容可能过期,建议定期检查。
Your PR has 50 real changes buried under 20,000 lines of Prettier formatting. ClearPR fixes that.
ClearPR is a self-hosted GitHub App that strips formatting noise from diffs, reviews code against your project guidelines, and learns from past PR feedback to catch repeat mistakes.
| Tag | Description |
|---|---|
latest | Latest stable release |
X.Y.Z | Specific patch version (pin this in production) |
X.Y | Latest patch of a minor release |
X | Latest minor of a major release |
Images are published multi-arch for linux/amd64 and linux/arm64, on every release cut by https://github.com/googleapis/release-please.
Also available on GHCR at ghcr.io/vineethkrishnan/clearpr.
bashdocker pull vineethnkrishnan/clearpr:latest
.env fileenv# Required GITHUB_APP_ID=your_app_id GITHUB_PRIVATE_KEY=your_private_key.pem GITHUB_WEBHOOK_SECRET=your_webhook_secret # LLM Provider — choose one: anthropic, openai, ollama, mistral, gemini LLM_PROVIDER=anthropic LLM_API_KEY=sk-ant-... # Defaults match the compose snippet below DATABASE_URL=postgresql://clearpr:clearpr@db:5432/clearpr REDIS_URL=redis://redis:6379
Save this as docker-compose.yml next to your .env:
yamlservices: app: image: vineethnkrishnan/clearpr:latest ports: - '3000:3000' env_file: .env environment: - NODE_ENV=production depends_on: db: condition: service_healthy redis: condition: service_healthy restart: unless-stopped db: image: pgvector/pgvector:pg16 volumes: - pgdata:/var/lib/postgresql/data environment: POSTGRES_USER: clearpr POSTGRES_PASSWORD: clearpr POSTGRES_DB: clearpr healthcheck: test: ['CMD-SHELL', 'pg_isready -U clearpr'] interval: 5s timeout: 5s retries: 5 redis: image: redis:7-alpine command: redis-server --appendonly yes volumes: - redisdata:/data volumes: pgdata: redisdata:
Start it:
bashdocker compose up -d
bashcurl http://localhost:3000/health/live # {"status":"ok"}
Install the GitHub App on your repos, open a PR, and ClearPR will review it.
CLEARPR.md.All configuration is via environment variables. See the full environment reference for every option.
Required:
GITHUB_APP_ID — your GitHub App IDGITHUB_PRIVATE_KEY — path to (or contents of) the App private keyGITHUB_WEBHOOK_SECRET — webhook secret from the App settingsLLM_PROVIDER — anthropic, openai, ollama, mistral, or geminiLLM_API_KEY — provider API key (not needed for ollama)DATABASE_URL — Postgres connection string (requires the pgvector extension)REDIS_URL — Redis connection string (for the BullMQ work queue)The container exposes two health endpoints suitable for container orchestrators and load ***s:
GET /health/live — liveness probe (process is up)GET /health/ready — readiness probe (database and Redis reachable)The image itself is stateless. Persistent state lives in the Postgres and Redis services (see the compose snippet above).
您可以使用以下命令拉取该镜像。请将 <标签> 替换为具体的标签版本。如需查看所有可用标签版本,请访问 标签列表页面。
来自真实用户的反馈,见证轩辕镜像的优质服务