Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

501 B
Raw Blame
/** Keep the local creation time visible before the repeated conflict label in narrow task lists. */
export function formatCindyMakeMergeTitle(title: string, createdAt: number | string): string {
  const date = new Date(createdAt);
  if (!Number.isFinite(date.getTime())) return title;
  const pad = (value: number) => String(value).padStart(2, '0');
  const time = `${pad(date.getMonth() + 1)}-${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}`;
  return `${time} ${title}`;
}