Skip to content
← Public packages

@kody/kody-factory

Forkable multi-project software factory: signals, priority queue, project UI, sweep job. Agent runners and Sentry reach it by events.

FollowFork

Files

remove.ts

17 lines · 708 B · TypeScript
/**
 * Delete a report, for test data or a bad post. With `removeCards: true` it
 * also deletes cards the report created that nobody has worked on yet (still
 * New or Needs you, no run, no PR). Cards that moved on are always kept.
 *
 * @param input - `reportId`; optional `removeCards`, `dryRun`
 * @returns `{ ok, reportId, removedCards, keptCards }`
 *
 * @example
 * import removeReport from 'kody:@kody/kody-factory/reports/remove'
 * await removeReport({ reportId: 'rp_0123456789abcdef', removeCards: true, dryRun: true })
 */
import { removeReport, type RemoveReportInput } from '../../reports/post.ts'

export default async function remove(input: RemoveReportInput) {
	return removeReport(input)
}