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

Function resolveWikis

apps/sim/connectors/azure-devops/azure-devops.ts:354–365  ·  view source on GitHub ↗

* Resolves the wikis for the project, caching them on the sync context so a * single sync (and its deferred getDocument calls) reuse one listing.

(
  accessToken: string,
  organization: string,
  project: string,
  syncContext?: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

352 * single sync (and its deferred getDocument calls) reuse one listing.
353 */
354async function resolveWikis(
355 accessToken: string,
356 organization: string,
357 project: string,
358 syncContext?: Record<string, unknown>
359): Promise<WikiV2[]> {
360 const cached = syncContext?.wikis as WikiV2[] | undefined
361 if (cached) return cached
362 const wikis = await listWikis(accessToken, organization, project, undefined, syncContext)
363 if (syncContext) syncContext.wikis = wikis
364 return wikis
365}
366
367/**
368 * Returns true when the wiki should be included given an optional wiki filter

Callers 2

listWikiPagesFunction · 0.85
azure-devops.tsFile · 0.85

Calls 1

listWikisFunction · 0.85

Tested by

no test coverage detected