Issue creation only covers a scan's new findings, so a finding whose issue
failed (a failed listing, a refused create) never got one. ISSUE_CATCHUP
(off | dry_run | on, default off; unknown values warn and stay off) adds a
catch-up after a Gitea target's normal issue creation, on the same listing:
open/triaged/needs-review findings of medium or above without
tracker_issue_url are linked to their existing issue (marker, then title;
groups by fingerprint only) or get a new one, at most 20 new per target and
scan, highest severity then oldest first; the rest are deferred. dry_run
only counts. One INFO summary line per target with counts and severities.
Issue creation and the catch-up share one IssueSink: it opens an issue,
ensures the managed labels lazily on the first create, and records the
issue on the finding plus a tracker_issues record (upserted per finding),
so a linked issue follows the finding's status like an opened one.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p