← Public packages
@kentcdodds/sentry-triage
Sentry triage wakes Cole (Grok Bot) per issue: one active wake per repo (lease + queue), loop-safe Discord. Cole may spawn Cursor for isolated repo work.
src/reset-issue.d.ts
23 lines · 631 B · TypeScriptexport type ResetIssueInput = {
/** Sentry issue id (numeric string). */
issueId: string
}
export type ResetIssueResult = {
ok: true
issueId: string
hadRecord: boolean
}
/**
* Maintenance: clear the triage record and claim for one Sentry issue so the
* next delivery (or a manual re-invocation of the handler) triages it again.
*
* @example
* import resetIssue from 'kody:@kentcdodds/sentry-triage/reset-issue'
* const result = await resetIssue({ issueId: '12345' })
* // => { ok: true, issueId: '12345', hadRecord: true }
*/
export default function resetIssue(
input: ResetIssueInput,
): Promise<ResetIssueResult>