triage_pr
Screen pull requests against repository policies to detect rule violations and get a verdict, preflight checks, and recommended actions before submission.
Instructions
Policy-aware PR screening.
Reads docs/policies/-.md and checks the PR against hard/soft rules.
返回: verdict: pass / needs_preflight / warn / reject policy_loaded: bool violations: list of {rule, severity, evidence} generic_checks: list (only when needs_preflight) recommended_action: str (always)
Example: triage_pr("docs: typo", "Ikalus1988/MisakaNet", "fix typo", "docs/faq.md | 3 ++-") → {verdict: "pass", policy_loaded: true, ...}
triage_pr("docs: add installation", "pallets/flask", ...)
→ {verdict: "needs_preflight", generic_checks: [...6 items...], ...}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | ||
| repo | Yes | ||
| title | Yes | ||
| labels | No | ||
| diff_stat | No |