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

Function parsePrType

scripts/pr-labels/index.js:252–255  ·  view source on GitHub ↗
(title)

Source from the content-addressed store, hash-verified

250// ============================================================================
251
252function parsePrType(title) {
253 const match = String(title || "").trim().match(/^([a-z]+)(?:\([^)]+\))?!?:/i);
254 return match ? match[1].toLowerCase() : "";
255}
256
257function isLowRiskPath(filePath) {
258 const normalized = normalizePath(filePath);

Callers 1

classifyPrFunction · 0.85

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected