@firestartr/cli 1.50.1-snapshot-3 → 1.50.1-snapshot-4
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 +89 -148
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -309585,19 +309585,10 @@ class GithubDecanter extends decanter_base {
|
|
|
309585
309585
|
}
|
|
309586
309586
|
}
|
|
309587
309587
|
|
|
309588
|
-
;// CONCATENATED MODULE: ../importer/src/logger.ts
|
|
309589
|
-
|
|
309590
|
-
/* harmony default export */ const importer_src_logger = (catalog_common.logger);
|
|
309591
|
-
|
|
309592
309588
|
;// CONCATENATED MODULE: ../importer/src/decanter/gh/github_group.ts
|
|
309593
309589
|
|
|
309594
309590
|
|
|
309595
309591
|
|
|
309596
|
-
|
|
309597
|
-
|
|
309598
|
-
|
|
309599
|
-
|
|
309600
|
-
|
|
309601
309592
|
class GroupGithubDecanter extends GithubDecanter {
|
|
309602
309593
|
constructor() {
|
|
309603
309594
|
super(...arguments);
|
|
@@ -309654,43 +309645,28 @@ class GroupGithubDecanter extends GithubDecanter {
|
|
|
309654
309645
|
return this.__validateEqual(members, this.data.members);
|
|
309655
309646
|
}
|
|
309656
309647
|
async __adaptInitializerBase(_claim) {
|
|
309657
|
-
|
|
309658
|
-
|
|
309659
|
-
|
|
309660
|
-
|
|
309661
|
-
|
|
309662
|
-
|
|
309663
|
-
|
|
309664
|
-
|
|
309665
|
-
|
|
309666
|
-
|
|
309667
|
-
external_fs_.existsSync(githubGroupDefaultsFilePath)) {
|
|
309668
|
-
adapter = catalog_common.io.fromYaml(external_fs_.readFileSync(githubGroupDefaultsFilePath, 'utf-8'));
|
|
309669
|
-
}
|
|
309670
|
-
else {
|
|
309671
|
-
adapter = {
|
|
309672
|
-
name: 'base',
|
|
309673
|
-
apiVersion: 'firestartr.dev/v1',
|
|
309674
|
-
kind: 'FirestartrGithubGroup',
|
|
309675
|
-
defaultValues: {
|
|
309676
|
-
context: {
|
|
309677
|
-
backend: {
|
|
309678
|
-
ref: {
|
|
309679
|
-
kind: 'FirestartrProviderConfig',
|
|
309680
|
-
name: 'firestartr-terraform-state',
|
|
309681
|
-
},
|
|
309648
|
+
const adapterBase = {
|
|
309649
|
+
name: 'base',
|
|
309650
|
+
apiVersion: 'firestartr.dev/v1',
|
|
309651
|
+
kind: 'FirestartrGithubGroup',
|
|
309652
|
+
defaultValues: {
|
|
309653
|
+
context: {
|
|
309654
|
+
backend: {
|
|
309655
|
+
ref: {
|
|
309656
|
+
kind: 'FirestartrProviderConfig',
|
|
309657
|
+
name: 'firestartr-terraform-state',
|
|
309682
309658
|
},
|
|
309683
|
-
|
|
309684
|
-
|
|
309685
|
-
|
|
309686
|
-
|
|
309687
|
-
|
|
309659
|
+
},
|
|
309660
|
+
provider: {
|
|
309661
|
+
ref: {
|
|
309662
|
+
kind: 'FirestartrProviderConfig',
|
|
309663
|
+
name: 'github-app',
|
|
309688
309664
|
},
|
|
309689
309665
|
},
|
|
309690
309666
|
},
|
|
309691
|
-
}
|
|
309692
|
-
}
|
|
309693
|
-
return new InitializerDefault(
|
|
309667
|
+
},
|
|
309668
|
+
};
|
|
309669
|
+
return new InitializerDefault(adapterBase);
|
|
309694
309670
|
}
|
|
309695
309671
|
__validateKind(cr) {
|
|
309696
309672
|
return true;
|
|
@@ -309787,11 +309763,6 @@ applyCollectionMixins(GroupCollectionGithubDecanter);
|
|
|
309787
309763
|
|
|
309788
309764
|
|
|
309789
309765
|
|
|
309790
|
-
|
|
309791
|
-
|
|
309792
|
-
|
|
309793
|
-
|
|
309794
|
-
|
|
309795
309766
|
class MemberGithubDecanter extends GithubDecanter {
|
|
309796
309767
|
constructor() {
|
|
309797
309768
|
super(...arguments);
|
|
@@ -309829,43 +309800,28 @@ class MemberGithubDecanter extends GithubDecanter {
|
|
|
309829
309800
|
});
|
|
309830
309801
|
}
|
|
309831
309802
|
async __adaptInitializerBase(_claim) {
|
|
309832
|
-
|
|
309833
|
-
|
|
309834
|
-
|
|
309835
|
-
|
|
309836
|
-
|
|
309837
|
-
|
|
309838
|
-
|
|
309839
|
-
|
|
309840
|
-
|
|
309841
|
-
|
|
309842
|
-
external_fs_.existsSync(githubMemberDefaultsFilePath)) {
|
|
309843
|
-
adapter = catalog_common.io.fromYaml(external_fs_.readFileSync(githubMemberDefaultsFilePath, 'utf-8'));
|
|
309844
|
-
}
|
|
309845
|
-
else {
|
|
309846
|
-
adapter = {
|
|
309847
|
-
name: 'base',
|
|
309848
|
-
apiVersion: 'firestartr.dev/v1',
|
|
309849
|
-
kind: 'FirestartrGithubMembership',
|
|
309850
|
-
defaultValues: {
|
|
309851
|
-
context: {
|
|
309852
|
-
backend: {
|
|
309853
|
-
ref: {
|
|
309854
|
-
kind: 'FirestartrProviderConfig',
|
|
309855
|
-
name: 'firestartr-terraform-state',
|
|
309856
|
-
},
|
|
309803
|
+
const adapterBase = {
|
|
309804
|
+
name: 'base',
|
|
309805
|
+
apiVersion: 'firestartr.dev/v1',
|
|
309806
|
+
kind: 'FirestartrGithubMembership',
|
|
309807
|
+
defaultValues: {
|
|
309808
|
+
context: {
|
|
309809
|
+
backend: {
|
|
309810
|
+
ref: {
|
|
309811
|
+
kind: 'FirestartrProviderConfig',
|
|
309812
|
+
name: 'firestartr-terraform-state',
|
|
309857
309813
|
},
|
|
309858
|
-
|
|
309859
|
-
|
|
309860
|
-
|
|
309861
|
-
|
|
309862
|
-
|
|
309814
|
+
},
|
|
309815
|
+
provider: {
|
|
309816
|
+
ref: {
|
|
309817
|
+
kind: 'FirestartrProviderConfig',
|
|
309818
|
+
name: 'github-app',
|
|
309863
309819
|
},
|
|
309864
309820
|
},
|
|
309865
309821
|
},
|
|
309866
|
-
}
|
|
309867
|
-
}
|
|
309868
|
-
return new InitializerDefault(
|
|
309822
|
+
},
|
|
309823
|
+
};
|
|
309824
|
+
return new InitializerDefault(adapterBase);
|
|
309869
309825
|
}
|
|
309870
309826
|
}
|
|
309871
309827
|
|
|
@@ -309898,11 +309854,6 @@ applyCollectionMixins(MemberCollectionGithubDecanter);
|
|
|
309898
309854
|
|
|
309899
309855
|
|
|
309900
309856
|
|
|
309901
|
-
|
|
309902
|
-
|
|
309903
|
-
|
|
309904
|
-
|
|
309905
|
-
|
|
309906
309857
|
const TYPE_MAP = {
|
|
309907
309858
|
User: 'user',
|
|
309908
309859
|
Team: 'group',
|
|
@@ -309919,6 +309870,7 @@ class RepoGithubDecanter extends GithubDecanter {
|
|
|
309919
309870
|
version: this.VERSION(),
|
|
309920
309871
|
type: 'service',
|
|
309921
309872
|
lifecycle: 'production',
|
|
309873
|
+
system: `system:${this.org}-system`,
|
|
309922
309874
|
name: this.data.repoDetails.name,
|
|
309923
309875
|
};
|
|
309924
309876
|
}
|
|
@@ -310156,74 +310108,59 @@ class RepoGithubDecanter extends GithubDecanter {
|
|
|
310156
310108
|
return null;
|
|
310157
310109
|
}
|
|
310158
310110
|
async __adaptInitializerBase(_claim) {
|
|
310159
|
-
|
|
310160
|
-
|
|
310161
|
-
|
|
310162
|
-
|
|
310163
|
-
|
|
310164
|
-
|
|
310165
|
-
|
|
310166
|
-
|
|
310167
|
-
|
|
310168
|
-
|
|
310169
|
-
external_fs_.existsSync(githubRepoDefaultsFilePath)) {
|
|
310170
|
-
adapter = catalog_common.io.fromYaml(external_fs_.readFileSync(githubRepoDefaultsFilePath, 'utf-8'));
|
|
310171
|
-
}
|
|
310172
|
-
else {
|
|
310173
|
-
adapter = {
|
|
310174
|
-
name: 'base',
|
|
310175
|
-
apiVersion: 'firestartr.dev/v1',
|
|
310176
|
-
kind: 'FirestartrGithubRepository',
|
|
310177
|
-
defaultValues: {
|
|
310178
|
-
context: {
|
|
310179
|
-
backend: {
|
|
310180
|
-
ref: {
|
|
310181
|
-
kind: 'FirestartrProviderConfig',
|
|
310182
|
-
name: 'firestartr-terraform-state',
|
|
310183
|
-
},
|
|
310111
|
+
const adapterBase = {
|
|
310112
|
+
name: 'base',
|
|
310113
|
+
apiVersion: 'firestartr.dev/v1',
|
|
310114
|
+
kind: 'FirestartrGithubRepository',
|
|
310115
|
+
defaultValues: {
|
|
310116
|
+
context: {
|
|
310117
|
+
backend: {
|
|
310118
|
+
ref: {
|
|
310119
|
+
kind: 'FirestartrProviderConfig',
|
|
310120
|
+
name: 'firestartr-terraform-state',
|
|
310184
310121
|
},
|
|
310185
|
-
|
|
310186
|
-
|
|
310187
|
-
|
|
310188
|
-
|
|
310189
|
-
|
|
310122
|
+
},
|
|
310123
|
+
provider: {
|
|
310124
|
+
ref: {
|
|
310125
|
+
kind: 'FirestartrProviderConfig',
|
|
310126
|
+
name: 'github-app',
|
|
310190
310127
|
},
|
|
310191
310128
|
},
|
|
310192
|
-
|
|
310129
|
+
},
|
|
310130
|
+
name: this.data.repoDetails.name,
|
|
310131
|
+
description: this.data.repoDetails.description,
|
|
310132
|
+
org: this.org,
|
|
310133
|
+
firestartr: {
|
|
310134
|
+
technology: { stack: 'none', version: 'none' },
|
|
310135
|
+
},
|
|
310136
|
+
repo: {
|
|
310193
310137
|
description: this.data.repoDetails.description,
|
|
310194
|
-
|
|
310195
|
-
|
|
310196
|
-
|
|
310197
|
-
|
|
310198
|
-
|
|
310199
|
-
|
|
310200
|
-
|
|
310201
|
-
|
|
310202
|
-
|
|
310203
|
-
|
|
310204
|
-
|
|
310205
|
-
autoInit: true,
|
|
310206
|
-
archiveOnDestroy: true,
|
|
310207
|
-
allowUpdateBranch: this.data.repoDetails.allow_update_branch,
|
|
310208
|
-
hasIssues: this.data.repoDetails.has_issues,
|
|
310209
|
-
visibility: this.data.repoDetails.visibility,
|
|
310210
|
-
defaultBranch: this.data.repoDetails.default_branch,
|
|
310211
|
-
},
|
|
310212
|
-
permissions: [],
|
|
310213
|
-
actions: {
|
|
310214
|
-
oidc: this.data.oidc.use_default
|
|
310215
|
-
? undefined
|
|
310216
|
-
: {
|
|
310217
|
-
useDefault: this.data.oidc.use_default,
|
|
310218
|
-
includeClaimKeys: this.data.oidc.include_claim_keys
|
|
310219
|
-
? this.data.oidc.include_claim_keys
|
|
310220
|
-
: [],
|
|
310221
|
-
},
|
|
310222
|
-
},
|
|
310138
|
+
allowMergeCommit: this.data.repoDetails.allow_merge_commit,
|
|
310139
|
+
allowSquashMerge: this.data.repoDetails.allow_squash_merge,
|
|
310140
|
+
allowRebaseMerge: this.data.repoDetails.allow_rebase_merge,
|
|
310141
|
+
allowAutoMerge: this.data.repoDetails.allow_auto_merge,
|
|
310142
|
+
deleteBranchOnMerge: this.data.repoDetails.delete_branch_on_merge,
|
|
310143
|
+
autoInit: true,
|
|
310144
|
+
archiveOnDestroy: true,
|
|
310145
|
+
allowUpdateBranch: this.data.repoDetails.allow_update_branch,
|
|
310146
|
+
hasIssues: this.data.repoDetails.has_issues,
|
|
310147
|
+
visibility: this.data.repoDetails.visibility,
|
|
310148
|
+
defaultBranch: this.data.repoDetails.default_branch,
|
|
310223
310149
|
},
|
|
310224
|
-
|
|
310225
|
-
|
|
310226
|
-
|
|
310150
|
+
permissions: [],
|
|
310151
|
+
actions: {
|
|
310152
|
+
oidc: this.data.oidc.use_default
|
|
310153
|
+
? undefined
|
|
310154
|
+
: {
|
|
310155
|
+
useDefault: this.data.oidc.use_default,
|
|
310156
|
+
includeClaimKeys: this.data.oidc.include_claim_keys
|
|
310157
|
+
? this.data.oidc.include_claim_keys
|
|
310158
|
+
: [],
|
|
310159
|
+
},
|
|
310160
|
+
},
|
|
310161
|
+
},
|
|
310162
|
+
};
|
|
310163
|
+
return new InitializerDefault(adapterBase);
|
|
310227
310164
|
}
|
|
310228
310165
|
async __adaptOverriderRepo(_claim) {
|
|
310229
310166
|
return new GithubRepositoryOverrider();
|
|
@@ -310259,6 +310196,10 @@ RepoCollectionGithubDecanter.collectionKind = 'gh-repo';
|
|
|
310259
310196
|
applyCollectionMixins(RepoCollectionGithubDecanter);
|
|
310260
310197
|
/* harmony default export */ const github_repo_collection = (RepoCollectionGithubDecanter);
|
|
310261
310198
|
|
|
310199
|
+
;// CONCATENATED MODULE: ../importer/src/logger.ts
|
|
310200
|
+
|
|
310201
|
+
/* harmony default export */ const importer_src_logger = (catalog_common.logger);
|
|
310202
|
+
|
|
310262
310203
|
;// CONCATENATED MODULE: ../importer/src/decanter/index.ts
|
|
310263
310204
|
|
|
310264
310205
|
|