@firestartr/cli 1.36.6 → 1.37.0
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
|
@@ -134452,11 +134452,11 @@ class BranchStrategiesInitializer extends InitializerPatches {
|
|
|
134452
134452
|
}
|
|
134453
134453
|
async __patches(claim, previousCR) {
|
|
134454
134454
|
let strategyInitializers = false;
|
|
134455
|
-
if (!['none'].includes(claim.providers.github.branchStrategy)) {
|
|
134456
|
-
strategyInitializers = this.data.values.strategies.find((strategy) => strategy.name === claim.providers.github.branchStrategy);
|
|
134455
|
+
if (!['none'].includes(claim.providers.github.branchStrategy.name)) {
|
|
134456
|
+
strategyInitializers = this.data.values.strategies.find((strategy) => strategy.name === claim.providers.github.branchStrategy.name);
|
|
134457
134457
|
if (!strategyInitializers &&
|
|
134458
|
-
claim.providers.github.branchStrategy !== 'custom')
|
|
134459
|
-
throw new Error(`No branch strategy found for ${claim.providers.github.branchStrategy}`);
|
|
134458
|
+
claim.providers.github.branchStrategy.name !== 'custom')
|
|
134459
|
+
throw new Error(`No branch strategy found for ${claim.providers.github.branchStrategy.name}`);
|
|
134460
134460
|
}
|
|
134461
134461
|
return [
|
|
134462
134462
|
{
|
|
@@ -134475,7 +134475,7 @@ class BranchStrategiesInitializer extends InitializerPatches {
|
|
|
134475
134475
|
strategyInitializers.values.branchProtections;
|
|
134476
134476
|
}
|
|
134477
134477
|
else if (!strategyInitializers &&
|
|
134478
|
-
claim.providers.github.branchStrategy === 'custom') {
|
|
134478
|
+
claim.providers.github.branchStrategy.name === 'custom') {
|
|
134479
134479
|
cr.spec.repo.defaultBranch = claim.providers.github.defaultBranch;
|
|
134480
134480
|
cr.spec.branchProtections = previousCR.spec.branchProtections;
|
|
134481
134481
|
}
|
|
@@ -141619,6 +141619,7 @@ class FeatureRepoChart extends BaseGithubChart {
|
|
|
141619
141619
|
annotations: {
|
|
141620
141620
|
'firestartr.dev/claim-ref': `${this.get('repoCr').metadata.annotations['firestartr.dev/claim-ref']}`,
|
|
141621
141621
|
'firestartr.dev/external-name': claim.name,
|
|
141622
|
+
'firestartr.dev/feature-name': claim.feature.name,
|
|
141622
141623
|
},
|
|
141623
141624
|
},
|
|
141624
141625
|
spec: {
|
|
@@ -329427,7 +329428,8 @@ async function observe(plural, namespace, onAdd, onChange, onDelete, _onRename)
|
|
|
329427
329428
|
}
|
|
329428
329429
|
});
|
|
329429
329430
|
informer.on('update', (obj) => {
|
|
329430
|
-
reflector_log(`informer (on update): The item ${obj.kind}: ${obj.metadata.name} has been updated
|
|
329431
|
+
reflector_log(`informer (on update): The item ${obj.kind}: ${obj.metadata.name} has been updated.`);
|
|
329432
|
+
reflector_log(`informer (on update): resourceVersion: ${obj.metadata.resourceVersion} name: ${obj.metadata.name}.`);
|
|
329431
329433
|
if (!store.getItem(obj).markedToDelete &&
|
|
329432
329434
|
store.hasDeletionTimestamp(obj) &&
|
|
329433
329435
|
(store.hasBeenMarkedToDelete(obj) || store.modified(obj))) {
|
|
@@ -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: {
|
|
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
|
+
} | Record<string, never>;
|
|
455
|
+
committer: {
|
|
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
|
+
} | Record<string, never>;
|
|
479
479
|
parents: {
|
|
480
480
|
sha: string;
|
|
481
481
|
url: string;
|