* 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 )
| 240 | * this same function. |
| 241 | */ |
| 242 | async 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`, |
no test coverage detected