|
| 1 | +import type { CloseReason } from "./clawsweeper-types.js"; |
| 2 | + |
| 3 | +export function closeReasonText(reason: CloseReason): string { |
| 4 | + switch (reason) { |
| 5 | + case "implemented_on_main": |
| 6 | + return "already implemented on main"; |
| 7 | + case "mostly_implemented_on_main": |
| 8 | + return "mostly implemented on main"; |
| 9 | + case "cannot_reproduce": |
| 10 | + return "cannot reproduce on current main"; |
| 11 | + case "clawhub": |
| 12 | + return "belongs on ClawHub"; |
| 13 | + case "duplicate_or_superseded": |
| 14 | + return "duplicate or superseded"; |
| 15 | + case "low_signal_unmergeable_pr": |
| 16 | + return "low-signal unmergeable PR"; |
| 17 | + case "stalled_unproven_pr": |
| 18 | + return "stalled PR without requested real-behavior proof"; |
| 19 | + case "abandoned_pr": |
| 20 | + return "abandoned inactive PR"; |
| 21 | + case "unconfirmed_product_direction": |
| 22 | + return "feature-like PR without confirmed product direction"; |
| 23 | + case "unsponsored_feature_request": |
| 24 | + return "feature request without maintainer sponsorship"; |
| 25 | + case "author_pr_budget_exceeded": |
| 26 | + return "lowest-signal PR over the author's open-PR budget"; |
| 27 | + case "stale_version_bug": |
| 28 | + return "bug report against a stale version"; |
| 29 | + case "obsolete_fix_pr": |
| 30 | + return "fix made obsolete by later main-branch changes"; |
| 31 | + case "not_actionable_in_repo": |
| 32 | + return "not actionable in this repository"; |
| 33 | + case "incoherent": |
| 34 | + return "too unclear to act on"; |
| 35 | + case "stale_insufficient_info": |
| 36 | + return "stale with insufficient information"; |
| 37 | + case "none": |
| 38 | + return "kept open"; |
| 39 | + } |
| 40 | +} |
0 commit comments