bot/src/commands/test-result.ts
openaliro/openaliro
Module

test-result.ts

@file /test-result pass|fail — run inside the claim thread, by whoever…

bot/src/commands/test-result.ts

Overview

@file /test-result pass|fail — run inside the claim thread, by whoever claimed it. Closes the job (claimed -> done, atomically, so a retried or duplicate delivery cannot record two validations for one claim), writes a validation row, and edits the original queue Container to a pass/fail accent — the one edit in this bot that a component's own interaction token cannot make, since this command runs in the thread, a different channel from the card it needs to update, so it goes through the bot token like the escalation sweep does.

depends on boards.ts command.ts discord.ts discordRest.ts followup.ts testRequestContainer.ts testRequests.ts validations.ts  ·  used by index.ts

flowchart TD
  handler --> boardLabel
  handler --> buildTestRequestMessage
  handler --> defer
  handler --> editMessage
  handler --> getRequestByThreadId
  handler --> invokerId
  handler --> markDone
  handler --> message
  handler --> optionString
  handler --> recordValidation
Undocumented (1)

handler