@clipboard-health/groundcrew 4.50.0 → 4.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parsing.d.ts","sourceRoot":"","sources":["../../../../src/lib/adapters/linear/parsing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuC,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAC3F,OAAO,EAA6B,KAAK,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAE1F,eAAO,MAAM,kBAAkB,WAAW,CAAC;AAG3C,MAAM,MAAM,oBAAoB,GAAG;IAAE,IAAI,EAAE,IAAI,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,IAAI,EAAE,SAAS,CAAA;CAAE,CAAC;AAE5F,MAAM,MAAM,eAAe,GACvB;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,GACpB;IAAE,IAAI,EAAE,WAAW,CAAA;CAAE,GACrB;IAAE,IAAI,EAAE,sBAAsB,CAAC;IAAC,cAAc,EAAE,MAAM,CAAC;IAAC,aAAa,EAAE,MAAM,CAAA;CAAE,CAAC;AAEpF,wBAAgB,0BAA0B,CAAC,UAAU,EAAE;IACrD,MAAM,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjC,GAAG,mBAAmB,GAAG,SAAS,CAIlC;AASD,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAUnE;
|
|
1
|
+
{"version":3,"file":"parsing.d.ts","sourceRoot":"","sources":["../../../../src/lib/adapters/linear/parsing.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAuC,KAAK,cAAc,EAAE,MAAM,iBAAiB,CAAC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AA;KAAE,CAAC,CAAC;IAChC,MAAM,EAAE,cAAc,CAAC;CACxB,GAAG,eAAe,CAiBlB"}
|
|
@@ -40,17 +40,23 @@ function extractDeclaredRepository(description) {
|
|
|
40
40
|
}
|
|
41
41
|
// Resolve one candidate name (full `owner/repo` or bare `repo`) against
|
|
42
42
|
// knownRepositories: a bare name canonicalizes to its full entry, a bare name
|
|
43
|
-
// matching several entries is ambiguous,
|
|
44
|
-
// `unknown` (the caller decides
|
|
45
|
-
//
|
|
46
|
-
// (a mis-cased declared repo still
|
|
47
|
-
// configured spelling.
|
|
43
|
+
// matching several entries is ambiguous, a full name canonicalizes to a bare
|
|
44
|
+
// configured entry, and anything unconfigured is `unknown` (the caller decides
|
|
45
|
+
// whether that WARN+skips or errors). GitHub owners and repository names are
|
|
46
|
+
// case-insensitive, so the match ignores case (a mis-cased declared repo still
|
|
47
|
+
// resolves) while always returning the configured spelling.
|
|
48
48
|
function canonicalizeKnownRepositoryName(name, knownRepositories) {
|
|
49
49
|
const lowerName = name.toLowerCase();
|
|
50
|
-
const
|
|
50
|
+
const directCandidates = knownRepositories.filter((repo) => {
|
|
51
51
|
const lowerRepo = repo.toLowerCase();
|
|
52
52
|
return lowerRepo === lowerName || lowerRepo.endsWith(`/${lowerName}`);
|
|
53
53
|
});
|
|
54
|
+
const candidates = directCandidates.length > 0
|
|
55
|
+
? directCandidates
|
|
56
|
+
: knownRepositories.filter((repo) => {
|
|
57
|
+
const lowerRepo = repo.toLowerCase();
|
|
58
|
+
return !lowerRepo.includes("/") && lowerName.endsWith(`/${lowerRepo}`);
|
|
59
|
+
});
|
|
54
60
|
if (candidates.length > 1) {
|
|
55
61
|
return { kind: "ambiguous" };
|
|
56
62
|
}
|
package/package.json
CHANGED