Files
openclaw/scripts/github/dated-todo-upsert.d.mts
Peter Steinberger 4596fd2dd2 feat(ci): weekly Codex sweep for date-carrying to-dos (#113914)
* feat(ci): weekly Codex sweep for date-carrying to-dos

Mondays 06:23 UTC (plus default-branch-only manual dispatch with
dry_run): a deterministic prefilter collects candidate lines where
to-do markers co-occur with date tokens, plus every deprecated compat
record from the plugin registry; a pinned openai/codex-action step
judges each candidate in context (genuine dated commitment vs
historical date or fixture) and writes an OVERDUE / DUE-30-days /
FUTURE report; a separate privileged job validates the report (tracked
file:line locations, date shape, inert text) and upserts one
marker-tagged tracking issue via the Barnacle app token, commenting
only when items newly become due.

The app token is minted on a fresh runner and checkout — never beside
Codex or its child processes; only the validated report artifact
crosses jobs. No permission-* subsets on token minting (installations
reject explicit subsets; see pr-ci-sweeper).

* chore(ci): localize upsert helpers with no external consumers
2026-07-25 18:18:06 -07:00

17 lines
479 B
TypeScript

export function validateDatedTodoReport(
report: string,
options?: { expectedDate?: string; repoRoot?: string },
): void;
export function runDatedTodoUpsert(params: {
github: Record<string, unknown>;
context: { repo: { owner: string; repo: string } };
core: { info: (message: string) => void; warning: (message: string) => void };
dryRun?: boolean;
report?: string;
}): Promise<{
action: "create" | "update";
issueNumber?: number;
addedUrgent: string[];
}>;