const VERSION_LABEL_PREFIX = "affects-"; const NEEDS_VERSION_LABEL = "needs-version-info"; const RETEST_LABEL = "needs-retest-on-latest"; const NEEDS_DECOMPOSITION_LABEL = "needs-decomposition"; const BUG_LABEL = "bug"; const DOCS_LABEL = "documentation"; const ENHANCEMENT_LABEL = "enhancement"; function escapeRegExp(value) { return String(value || "").replace(/[.*+?^${}()|[\]\\]/g, "\\$&"); } // Use the same locked GFM lexer as Pulse's Markdown surfaces, without // rendering or executing any issue content. Only top-level declarations count. const { lexer } = require("marked"); function inlineProjection(tokens, maskCode = false) { return (tokens || []).map((token) => { const raw = token.raw || ""; // Keep line positions when removing hidden comments. A comment inside a // code span is a literal, not an HTML token, and remains evidence. if (token.type === "html" && /^