MCPcopy
hub / github.com/toeverything/AFFiNE / docLabel

Function docLabel

tools/doc-diff/src/rootdoc.ts:67–73  ·  view source on GitHub ↗
(id: string, meta: KeyedRecord)

Source from the content-addressed store, hash-verified

65}
66
67function docLabel(id: string, meta: KeyedRecord) {
68 const title = meta.title;
69 if (typeof title === 'string' && title.trim()) {
70 return `${id} "${title}"`;
71 }
72 return id;
73}
74
75export function printRootDocPairDiff(opts: {
76 fromLabel: string;

Callers 1

printRootDocPairDiffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected