Skip to content

armgit / kaneo

Public Imported from GitHub
0

⚡ Project management that doesn't become the project. Boards, Gantt charts, and GitHub integration. Self-host it or use Kaneo Cloud.

443 B
Raw Blame
// Persist the origin in Gitea so delayed webhooks and later imports also skip echoes.
const KANEO_COMMENT_PREFIX = "<!-- kaneo:comment -->\n\n";

export function markKaneoComment(body: string): string {
  // Keep the marker outside user-controlled Markdown, including unclosed code fences.
  return `${KANEO_COMMENT_PREFIX}${body}`;
}

export function isKaneoComment(body: string): boolean {
  return body.startsWith(KANEO_COMMENT_PREFIX);
}