* 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> )
| 352 | * single sync (and its deferred getDocument calls) reuse one listing. |
| 353 | */ |
| 354 | async 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 |
no test coverage detected