@firestartr/cli 1.41.1 → 1.42.1-snapshot-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.
package/build/index.js
CHANGED
@@ -287185,6 +287185,7 @@ function extractRefs(renderClaims, kind) {
|
|
287185
287185
|
function extractAllRefs(claimData) {
|
287186
287186
|
const refs = getClaimReferences(claimData);
|
287187
287187
|
const parsedClaim = yaml_dist.parse(claimData);
|
287188
|
+
refs.push(...extractVirtualRefs(parsedClaim));
|
287188
287189
|
switch (parsedClaim.kind) {
|
287189
287190
|
case 'TFWorkspaceClaim': {
|
287190
287191
|
const tfWorkspaceRefs = getTfWorkspacesRefs(parsedClaim.providers.terraform.values);
|
@@ -287205,6 +287206,20 @@ function extractAllRefs(claimData) {
|
|
287205
287206
|
}
|
287206
287207
|
return [...new Set(refs)];
|
287207
287208
|
}
|
287209
|
+
function extractVirtualRefs(parsedClaim) {
|
287210
|
+
const virtualRefs = [];
|
287211
|
+
switch (parsedClaim.kind) {
|
287212
|
+
case 'ComponentClaim': {
|
287213
|
+
if (parsedClaim.providers.github.orgPermissions === 'view' ||
|
287214
|
+
parsedClaim.providers.github.orgPermissions === 'maintain') {
|
287215
|
+
refsExtractor_log(`Adding virtual reference for ${parsedClaim.providers.github.org}-all`);
|
287216
|
+
virtualRefs.push(`group:${parsedClaim.providers.github.org}-all`);
|
287217
|
+
}
|
287218
|
+
break;
|
287219
|
+
}
|
287220
|
+
}
|
287221
|
+
return virtualRefs;
|
287222
|
+
}
|
287208
287223
|
function getGroupParentRef(parent, references = []) {
|
287209
287224
|
if (!parent)
|
287210
287225
|
return [];
|
@@ -428,7 +428,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
428
428
|
verified_at: string;
|
429
429
|
};
|
430
430
|
};
|
431
|
-
author: {
|
431
|
+
author: Record<string, never> | {
|
432
432
|
name?: string;
|
433
433
|
email?: string;
|
434
434
|
login: string;
|
@@ -451,8 +451,8 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
451
451
|
site_admin: boolean;
|
452
452
|
starred_at?: string;
|
453
453
|
user_view_type?: string;
|
454
|
-
}
|
455
|
-
committer: {
|
454
|
+
};
|
455
|
+
committer: Record<string, never> | {
|
456
456
|
name?: string;
|
457
457
|
email?: string;
|
458
458
|
login: string;
|
@@ -475,7 +475,7 @@ export declare function getBranch(repo: string, branch: string, owner?: string):
|
|
475
475
|
site_admin: boolean;
|
476
476
|
starred_at?: string;
|
477
477
|
user_view_type?: string;
|
478
|
-
}
|
478
|
+
};
|
479
479
|
parents: {
|
480
480
|
sha: string;
|
481
481
|
url: string;
|