Tu Tran e7b5530c4c Auto-fix confirmed-dead and moved links via a bot-opened PR
Closes the loop on the link-rot sweep: previously it only ever produced a
report, leaving every fix to be typed by hand. Adds a `prune` subcommand
that applies only the two categories safe enough to fix without a human
judgment call:
- entries HARD_DEAD for 2+ consecutive weekly checks with no known redirect
  -> remove the line (cascading to remove a now-empty series title too)
- entries that now redirect to a different working URL -> rewrite in place

Suspect links, secondary/prose links, and anything matching more than one
entry are left untouched for the existing manual report flow.

link-rot.yml now runs `prune` after the sweep and, if anything changed,
opens or updates a single PR from a dedicated automated/link-rot-fixes
branch (same upsert pattern as the report issue -- one running PR, not a
new one weekly). It still requires a human merge; nothing auto-lands.

Also surfaces "moved" links in the report for the first time -- previously
an OK-but-redirected URL never appeared anywhere.
2026-07-04 11:41:25 -07:00
..