(filePath)
| 285 | |
| 286 | // Get business domain label based on CODEOWNERS path mapping |
| 287 | function getBusinessDomain(filePath) { |
| 288 | const normalized = normalizePath(filePath); |
| 289 | for (const [prefix, domain] of Object.entries(PATH_TO_DOMAIN_MAP)) { |
| 290 | if (normalized.startsWith(prefix)) { |
| 291 | return domain; |
| 292 | } |
| 293 | } |
| 294 | return ""; |
| 295 | } |
| 296 | |
| 297 | async function detectNewShortcutDomain(files) { |
| 298 | for (const item of files) { |
no test coverage detected