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

Function skillDomainForPath

scripts/pr-labels/index.js:279–284  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

277}
278
279function skillDomainForPath(filePath) {
280 const parts = normalizePath(filePath).split("/");
281 return parts.length >= 2 && parts[0] === "skills" && parts[1].startsWith("lark-")
282 ? parts[1].slice("lark-".length)
283 : "";
284}
285
286// Get business domain label based on CODEOWNERS path mapping
287function getBusinessDomain(filePath) {

Callers 1

classifyPrFunction · 0.85

Calls 1

normalizePathFunction · 0.85

Tested by

no test coverage detected