@firestartr/cli 1.36.6 → 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 +5 -5
  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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@firestartr/cli",
3
- "version": "1.36.6",
3
+ "version": "1.36.7",
4
4
  "private": false,
5
5
  "description": "Commandline tool",
6
6
  "main": "build/main.js",