Versions 22 to 23
Lines 7–25 at 23 (were 7–13 at 22)
77
10−import type { Api, Ask, Attachment, Draft, DraftBody, IssuePage, IssueRow, IssueSearchHit } from "./api.ts";
Lines 337–412 at 23 (were 325–330 at 22)
327339
340+/** The flags --copy-to goes with: anything else on the same command is refused, so a copy is never half an edit. */
342+
344+async function runCopy(api: Api, id: number, to: string, args: Parsed, env: Env): Promise<Output> {
347+ throw new UsageError(`--copy-to goes alone (with --clean and --dry-run), not with --${other[0]}`);
356+ answer = await api.issueCopy(to, { ...texts, from, issue: id, ...(dryRun ? { dryRun: true } : {}) });
367+ ` ${q(p.title)}${p.closed ? `, ${p.closed.how}` : ""}${p.edited.length > 0 ? ` (${p.edited.join(" and ")} edited when copied)` : ""}`,
368+ ` ${plural(p.comments.length, "comment")}${edited(p.comments) > 0 ? ` (${edited(p.comments)} edited)` : ""}, ${plural(p.asks.length, "answered ask")}${edited(p.asks) > 0 ? ` (${edited(p.asks)} edited)` : ""}${p.labels.length > 0 ? `, labelled ${p.labels.join(", ")}` : ""}`,
376+ `Copied ${from} issue ${id} to ${to} issue ${answer.id}. Its comments and asks keep their authors and times, and issue ${id} has a comment saying where it went.`,
382+
388+ return parts.length > 0 ? [` not copied: ${parts.join("; ")} (open asks, and what --clean left out)`] : [];
390+
391+/** --clean's file: cleaned texts by source id. The server checks each id against the issue it reads. */
398+ `--clean ${given}: ${(e as NodeJS.ErrnoException).code === "ENOENT" ? "no such file" : "not JSON"}`,
402+ throw new UsageError(`--clean ${given}: a JSON object with title, description, comments or asks`);
406+ throw new UsageError(`--clean ${given}: ${unknown[0]} isn't one of title, description, comments, asks`);
409+
Lines 429–438 at 23 (were 347–352 at 22)
347429 'abso issue <N> [--comment "..." | --object "..." | --drop | --reopen | --done [--done-by <version>] | an edit], or abso issue new "<title>"',
- MCP
- compare on this site's /mcp
- CLI
- abso diff 22 23 client/src/issues.ts --json
- JSON
- /christopher/abso-core/compare/22..23?file=client%2Fsrc%2Fissues.ts&format=json