MCPcopy Create free account
hub / github.com/Martian-Engineering/pr-sheriff / cacheKey

Function cacheKey

src/github/file_cache.mjs:14–17  ·  view source on GitHub ↗
(parts)

Source from the content-addressed store, hash-verified

12 * Keep this deterministic across platforms by using JSON with sorted keys.
13 */
14export function cacheKey(parts) {
15 const stable = JSON.stringify(parts, Object.keys(parts).sort());
16 return sha256Hex(stable);
17}
18
19export function ensureDir(dirPath) {
20 fs.mkdirSync(dirPath, { recursive: true });

Callers 4

#restPaginateArrayMethod · 0.90
#restPaginateSearchMethod · 0.90
#restRequestMethod · 0.90
#graphqlPaginateNodesMethod · 0.90

Calls 1

sha256HexFunction · 0.85

Tested by

no test coverage detected