delimit_external_pr_check
Check for duplicate pull requests in external repositories before drafting. Returns 'duplicate' if an open or recently merged PR exists, preventing wasted work.
Instructions
Pre-PR duplicate guard for external repos — call BEFORE drafting.
When to use: as the first step before drafting any PR against a repo you don't own. Fail-closed by design. When NOT to use: for internal repos or to evaluate a non-PR action (use delimit_gov_evaluate).
Sibling contrast: delimit_gov_evaluate(action="external_pr") wraps this with policy evaluation; this is the underlying duplicate check.
Side effects: read-only network call. Calls backends.governance_bridge.external_pr_check which shells out to gh CLI. Any open PR or PR merged in the last 30 days yields verdict="duplicate" — caller stops drafting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | Yes | External GitHub repo, e.g. "goharbor/harbor". Required. | |
| author | No | GitHub username to filter by (recommended). Empty = all. | |
| state | No | "open", "closed", "merged", or "all" (default). | all |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||