← 返回
未分类 中文

Fleet PR Agent

Multi-repo PR monitoring and triage agent. Scans GitHub repos for open PRs, prioritizes by staleness/review status/CI state, and generates a structured Markd...
多仓库 PR 监控与分诊代理。扫描 GitHub 仓库中的开放 PR,按时效、评审状态、CI 状态进行优先级排序,并生成结构化 Markdown 报告。
lanxevo3 lanxevo3 来源
未分类 clawhub v1.1.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 349
下载
💾 0
安装
1
版本
#github#latest#monitoring#pr

概述

Fleet PR Agent

Multi-repository pull request monitoring, triage, and summary tool for engineering teams and AI agent fleets managing many repos at once.

What It Does

  • Scans one or more GitHub repos for open PRs using the gh CLI
  • Prioritizes by: staleness, review status, CI pass/fail, label priority
  • Generates a structured Markdown triage report (no external dependencies — pure Python stdlib + gh)
  • Supports concurrent scanning of multiple repos in a single run

Prerequisites

  • gh CLI authenticated (gh auth status)
  • Python 3.6+ (standard library only — no pip packages required)
  • Repos accessible to your GitHub token

Quick Start

# Scan a single repo
python3 scripts/triage.py owner/repo

# Scan multiple repos
python3 scripts/triage.py owner/repo1 owner/repo2 owner/repo3

# Generate triage report to file
python3 scripts/triage.py owner/repo --output report.md

Usage as Claude Code Skill

When invoked as /fleet-pr-agent, provide repos:

/fleet-pr-agent owner/repo1 owner/repo2

The agent will:

  1. Fetch all open PRs from each repo via gh
  2. Score and rank them by urgency (stale > failing CI > needs review > draft)
  3. Output a prioritized Markdown summary

Triage Priority Rules

PriorityCondition
---------------------
P0 - CriticalCI failing + older than 3 days
P1 - HighApproved but not merged, or review requested > 2 days ago
P2 - MediumOpen > 5 days, no review activity
P3 - LowDraft PRs, recently opened

Output Format

## PR Triage Report — 2026-03-27

### P0 — Critical (2)
- [#123 Fix auth middleware](url) — CI failing since Mar 24, 2 approvals
- [#456 DB migration](url) — CI failing since Mar 25, no reviews

### P1 — High (1)
- [#789 Add caching layer](url) — Approved Mar 25, ready to merge

### P2 — Medium (3)
...

### Summary
- Total open PRs: 15
- Needing attention: 6
- Repos scanned: 2

Configuration

Set env vars to override defaults:

VariableDefaultDescription
--------------------------------
FLEET_PR_STALE_DAYS5Days before a PR is considered stale
FLEET_PR_CI_WEIGHT3Weight multiplier for CI-failing PRs
FLEET_PR_MAX_PRS50Max PRs to fetch per repo

Architecture

  • scripts/triage.py — Pure Python 3 triage engine (stdlib only)
  • No external package dependencies
  • Uses gh pr list --json for all data fetching
  • Portable across Linux, macOS, Windows (Python + gh required)

License

MIT

版本历史

共 1 个版本

  • v1.1.0 当前
    2026-05-07 05:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

Freelance Job Scraper

lanxevo3
自主自由职业工作监控代理,扫描 Hacker News招聘帖、YC 招聘板和远程工作聚合平台,获取高价值自动化与 AI 工作机会。
★ 0 📥 570

PR Auto-Merge Agent

lanxevo3
自动PR合并代理。扫描已批准且CI通过的PR并自动合并。支持干运行模式、压缩合并选项及最小批准数。
★ 0 📥 499

Bounty Hunter Agent

lanxevo3
自动扫描 GitHub、Algora、Opire 的赏金任务,按报酬和竞争程度评分并排序,可自动提交 PR。
★ 0 📥 365