isEvent

tcmts.share.isEvent · #og36auce · term · runs anywhere

An event (closing, reopening) is kept as a comment saying so.

import type { Comment } from "#codebase/tcmts/store";

export const isEvent = (k: Comment) => /^(closed|reopened)$|^merged into \S+ as #[a-z2-7]+$/.test(k.body)

uses

used by