@firestartr/cli 1.36.5 → 1.36.7

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.
Files changed (2) hide show
  1. package/build/index.js +6 -6
  2. package/package.json +1 -1
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
  }
@@ -141732,7 +141732,7 @@ class GithubRepositoryChart extends BaseGithubChart {
141732
141732
  const features = [];
141733
141733
  for (const featurePatch of featuresPatches) {
141734
141734
  const featureClaim = await featurePatch.post(cr);
141735
- const renderedFeature = await (await new FeatureRepoChart(this, featureClaim.name, cr.spec.firestartr.tfStateKey, featureClaim, [], cr).render()).postRenderer([]);
141735
+ const renderedFeature = await (await new FeatureRepoChart(this, `${featureClaim.name}-feature`, cr.spec.firestartr.tfStateKey, featureClaim, [], cr).render()).postRenderer([]);
141736
141736
  features.push({
141737
141737
  claim: {
141738
141738
  kind: featureClaim.kind,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.36.5",
3
+ "version": "1.36.7",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",