MCPcopy
hub / github.com/larksuite/cli / detectNewShortcutDomain

Function detectNewShortcutDomain

scripts/pr-labels/index.js:297–309  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

295}
296
297async function detectNewShortcutDomain(files) {
298 for (const item of files) {
299 if (item.status !== "added") continue;
300 const domain = shortcutDomainForPath(item.filename);
301 if (!domain) continue;
302 try {
303 await fs.access(path.join(ROOT, "shortcuts", domain));
304 } catch {
305 return domain;
306 }
307 }
308 return "";
309}
310
311function collectCoreAreas(filenames) {
312 const areas = new Set();

Callers 1

classifyPrFunction · 0.85

Calls 1

shortcutDomainForPathFunction · 0.85

Tested by

no test coverage detected