MCPcopy Index your code
hub / github.com/simstudioai/sim / buildWikiContentHash

Function buildWikiContentHash

apps/sim/connectors/gitlab/gitlab.ts:242–249  ·  view source on GitHub ↗

* Builds the change-detection hash for a wiki page. * * GitLab wiki pages expose no version number or `updated_at` timestamp in the * REST API, so there is no metadata field that reliably changes when a page is * edited. As a last resort we hash the page content itself. To keep the hash * ident

(
  projectId: string,
  slug: string,
  content: string
)

Source from the content-addressed store, hash-verified

240 * this same function.
241 */
242async function buildWikiContentHash(
243 projectId: string,
244 slug: string,
245 content: string
246): Promise<string> {
247 const contentDigest = await computeContentHash(content)
248 return `gitlab:wiki:${projectId}:${slug}:${contentDigest}`
249}
250
251/**
252 * Builds the change-detection hash for an issue. Issues expose `updated_at`,

Callers 1

wikiPageToDocumentFunction · 0.85

Calls 1

computeContentHashFunction · 0.90

Tested by

no test coverage detected