export function isWorkbenchMergeTicketNo(ticketNo?: string | null): boolean {
  return (ticketNo ?? "").trim().toUpperCase().startsWith("TI-M-");
}

/** Workbench ticket carries extra DOs when releaseType or legacy TI-E- ticket. */
export function isWorkbenchExtraTicket(
  releaseType?: string | null,
  ticketNo?: string | null,
): boolean {
  const rt = (releaseType ?? "").trim().toLowerCase();
  const tn = (ticketNo ?? "").trim().toUpperCase();
  return (
    rt === "isextrabatch" ||
    rt === "isextrasingle" ||
    rt === "isextra" ||
    tn.startsWith("TI-E-") ||
    tn.startsWith("TI-M-")
  );
}
