@clickview/ship-it 0.0.42-dev.1 → 0.0.42
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/Dockerfile +37 -33
- package/README.md +48 -48
- package/config.json +19 -19
- package/lib/config.json +20 -20
- package/lib/src/api-clients/git-lab/GitLabApiClient.js +581 -564
- package/lib/src/api-clients/git-lab/GitLabMapper.js +122 -122
- package/lib/src/api-clients/index.js +20 -20
- package/lib/src/api-clients/slack/SlackApiClient.js +206 -206
- package/lib/src/api-clients/team-city/TeamCityApiClient.js +100 -100
- package/lib/src/api-clients/trello/TrelloApiClient.js +145 -145
- package/lib/src/commands/BumpPackagesCommand.js +76 -76
- package/lib/src/commands/ConfigureProjectsCommand.js +84 -84
- package/lib/src/commands/CreateBranchCommand.js +100 -100
- package/lib/src/commands/CreateMergeRequestCommand.js +107 -107
- package/lib/src/commands/CreateNotesAuditCommand.js +84 -84
- package/lib/src/commands/CreateReleaseNotesCommand.js +95 -95
- package/lib/src/commands/CreateTrelloCardsCommand.js +76 -76
- package/lib/src/commands/InstallPackagesCommand.js +76 -76
- package/lib/src/commands/ListProjectsCommand.js +76 -76
- package/lib/src/commands/ReleaseCommand.js +136 -136
- package/lib/src/commands/StartProjectBuildsCommand.js +76 -76
- package/lib/src/commands/StatusCommand.js +93 -93
- package/lib/src/commands/TagMasterCommand.js +76 -76
- package/lib/src/commands/ToolingReleaseCommand.js +144 -0
- package/lib/src/commands/ValidateMergeRequestCommand.js +76 -76
- package/lib/src/commands/VersionCommand.js +76 -76
- package/lib/src/commands/index.js +32 -31
- package/lib/src/constants/CommandTypeMapping.js +22 -21
- package/lib/src/constants/GitLabMemberIds.js +6 -6
- package/lib/src/constants/MonorepoPackageJsonFiles.js +41 -41
- package/lib/src/constants/MonorepoProjectNames.js +16 -16
- package/lib/src/constants/ProjectNames.js +69 -69
- package/lib/src/constants/SlackUserEmailList.js +13 -13
- package/lib/src/constants/TeamCityBuildIDs.js +46 -46
- package/lib/src/constants/index.js +19 -19
- package/lib/src/errors/ShipItError.js +32 -32
- package/lib/src/errors/index.js +17 -17
- package/lib/src/index.js +18 -18
- package/lib/src/interfaces/Config.js +2 -2
- package/lib/src/interfaces/MergeRequestState.js +2 -2
- package/lib/src/interfaces/ProjectNames.js +2 -2
- package/lib/src/interfaces/ShipItCommand.js +2 -2
- package/lib/src/interfaces/ShipItTask.js +2 -2
- package/lib/src/interfaces/SourceBranch.js +2 -0
- package/lib/src/interfaces/VersionType.js +2 -2
- package/lib/src/interfaces/command-cli-options/DockerMilestoneCommandCliOptions.js +2 -2
- package/lib/src/interfaces/command-cli-options/MilestoneCommandCliOptions.js +2 -2
- package/lib/src/interfaces/command-cli-options/ReleaseCommandCliOptions.js +2 -2
- package/lib/src/interfaces/command-cli-options/StatusCommandCliOptions.js +2 -2
- package/lib/src/interfaces/command-cli-options/ToolingReleaseCommandCliOptions.js +2 -0
- package/lib/src/interfaces/command-cli-options/index.js +20 -19
- package/lib/src/interfaces/command-options/BaseCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/BumpPackagesCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/ConfigureProjectsOptions.js +2 -2
- package/lib/src/interfaces/command-options/DockerMilestoneCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/MilestoneCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/ReleaseCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/StatusCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/ToolingReleaseCommandOptions.js +2 -0
- package/lib/src/interfaces/command-options/ValidateMRCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/index.js +24 -23
- package/lib/src/interfaces/index.js +26 -26
- package/lib/src/interfaces/models/ApprovalRule.js +2 -2
- package/lib/src/interfaces/models/ApprovalRuleConfiguration.js +2 -2
- package/lib/src/interfaces/models/Branch.js +2 -2
- package/lib/src/interfaces/models/Commit.js +2 -2
- package/lib/src/interfaces/models/CommitFile.js +2 -2
- package/lib/src/interfaces/models/CreateApprovalRuleRequest.js +2 -2
- package/lib/src/interfaces/models/File.js +2 -2
- package/lib/src/interfaces/models/Group.js +2 -2
- package/lib/src/interfaces/models/Label.js +2 -2
- package/lib/src/interfaces/models/MergeRequest.js +2 -2
- package/lib/src/interfaces/models/Milestone.js +2 -2
- package/lib/src/interfaces/models/Project.js +2 -2
- package/lib/src/interfaces/models/ProjectConfig.js +9 -9
- package/lib/src/interfaces/models/ProtectedBranch.js +2 -2
- package/lib/src/interfaces/models/Release.js +2 -2
- package/lib/src/interfaces/models/Tag.js +2 -2
- package/lib/src/interfaces/models/index.js +32 -32
- package/lib/src/interfaces/view-models/MilestoneProject.js +2 -2
- package/lib/src/interfaces/view-models/index.js +17 -17
- package/lib/src/inversify.config.js +82 -79
- package/lib/src/services/GitLabService.js +556 -553
- package/lib/src/services/SlackService.js +142 -142
- package/lib/src/services/TeamCityService.js +37 -37
- package/lib/src/services/TrelloService.js +84 -84
- package/lib/src/services/index.js +20 -20
- package/lib/src/startup/AddMilestoneCommand.js +92 -88
- package/lib/src/startup/GetAction.js +68 -68
- package/lib/src/startup/SetupCommands.js +228 -191
- package/lib/src/tasks/BumpPackagesTask.js +230 -230
- package/lib/src/tasks/BumpVersionTxtTask.js +110 -110
- package/lib/src/tasks/{CommitPackageVersionsTask.js → ChangeMilestoneTask.js} +117 -116
- package/lib/src/tasks/CreateBranchTask.js +109 -104
- package/lib/src/tasks/CreateMergeRequestTask.js +126 -126
- package/lib/src/tasks/CreateNotesAuditTask.js +140 -140
- package/lib/src/tasks/CreateReleaseNotesTask.js +144 -144
- package/lib/src/tasks/InstallPackagesTask.js +409 -409
- package/lib/src/tasks/ListProjectsTask.js +87 -87
- package/lib/src/tasks/PopulateTrelloBoardTask.js +140 -140
- package/lib/src/tasks/StartMonorepoBuildTask.js +109 -109
- package/lib/src/tasks/StartProjectBuildsTask.js +164 -164
- package/lib/src/tasks/TagMasterTask.js +200 -196
- package/lib/src/tasks/ValidateCommitsTask.js +210 -210
- package/lib/src/tasks/ValidateDescriptionsTask.js +164 -178
- package/lib/src/tasks/ValidateMergeRequestTask.js +115 -115
- package/lib/src/tasks/ValidateTask.js +419 -419
- package/lib/src/tasks/VersionTask.js +98 -98
- package/lib/src/tasks/configure-projects/AddApprovalRulesTask.js +199 -199
- package/lib/src/tasks/configure-projects/CreateToolingBranchTask.js +138 -138
- package/lib/src/tasks/configure-projects/EnsureApprovalRulesTask.js +106 -106
- package/lib/src/tasks/configure-projects/index.js +18 -18
- package/lib/src/tasks/configure-projects/primitives/BaseConfigureProjectsTask.js +98 -98
- package/lib/src/tasks/index.js +34 -34
- package/lib/src/types.js +62 -60
- package/lib/src/utils/BranchNames.js +11 -11
- package/lib/src/utils/Commits.js +90 -82
- package/lib/src/utils/Csv.js +54 -54
- package/lib/src/utils/Descriptions.js +274 -274
- package/lib/src/utils/GroupIds.js +6 -6
- package/lib/src/utils/Logger.js +62 -62
- package/lib/src/utils/ProjectIds.js +48 -48
- package/lib/src/utils/Versions.js +20 -20
- package/lib/src/utils/index.js +22 -22
- package/package.json +50 -50
- package/dist/I3/I3 Notes Audit.csv +0 -127
- package/dist/J1/J1 Notes Audit.csv +0 -38
- package/dist/J2/J2 Notes Audit.csv +0 -52
- package/dist/L1/L1 Notes Audit.csv +0 -139
|
@@ -1,23 +1,24 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./BumpPackagesCommandOptions"), exports);
|
|
18
|
-
__exportStar(require("./DockerMilestoneCommandOptions"), exports);
|
|
19
|
-
__exportStar(require("./MilestoneCommandOptions"), exports);
|
|
20
|
-
__exportStar(require("./ValidateMRCommandOptions"), exports);
|
|
21
|
-
__exportStar(require("./ReleaseCommandOptions"), exports);
|
|
22
|
-
__exportStar(require("./StatusCommandOptions"), exports);
|
|
23
|
-
__exportStar(require("./ConfigureProjectsOptions"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./BumpPackagesCommandOptions"), exports);
|
|
18
|
+
__exportStar(require("./DockerMilestoneCommandOptions"), exports);
|
|
19
|
+
__exportStar(require("./MilestoneCommandOptions"), exports);
|
|
20
|
+
__exportStar(require("./ValidateMRCommandOptions"), exports);
|
|
21
|
+
__exportStar(require("./ReleaseCommandOptions"), exports);
|
|
22
|
+
__exportStar(require("./StatusCommandOptions"), exports);
|
|
23
|
+
__exportStar(require("./ConfigureProjectsOptions"), exports);
|
|
24
|
+
__exportStar(require("./ToolingReleaseCommandOptions"), exports);
|
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./command-cli-options"), exports);
|
|
18
|
-
__exportStar(require("./command-options"), exports);
|
|
19
|
-
__exportStar(require("./models"), exports);
|
|
20
|
-
__exportStar(require("./view-models"), exports);
|
|
21
|
-
__exportStar(require("./Config"), exports);
|
|
22
|
-
__exportStar(require("./MergeRequestState"), exports);
|
|
23
|
-
__exportStar(require("./ShipItCommand"), exports);
|
|
24
|
-
__exportStar(require("./ShipItTask"), exports);
|
|
25
|
-
__exportStar(require("./VersionType"), exports);
|
|
26
|
-
__exportStar(require("./ProjectNames"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./command-cli-options"), exports);
|
|
18
|
+
__exportStar(require("./command-options"), exports);
|
|
19
|
+
__exportStar(require("./models"), exports);
|
|
20
|
+
__exportStar(require("./view-models"), exports);
|
|
21
|
+
__exportStar(require("./Config"), exports);
|
|
22
|
+
__exportStar(require("./MergeRequestState"), exports);
|
|
23
|
+
__exportStar(require("./ShipItCommand"), exports);
|
|
24
|
+
__exportStar(require("./ShipItTask"), exports);
|
|
25
|
+
__exportStar(require("./VersionType"), exports);
|
|
26
|
+
__exportStar(require("./ProjectNames"), exports);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DefaultProjectConfig = void 0;
|
|
4
|
-
exports.DefaultProjectConfig = {
|
|
5
|
-
monorepo: {
|
|
6
|
-
enabled: false,
|
|
7
|
-
validSubProjects: []
|
|
8
|
-
}
|
|
9
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DefaultProjectConfig = void 0;
|
|
4
|
+
exports.DefaultProjectConfig = {
|
|
5
|
+
monorepo: {
|
|
6
|
+
enabled: false,
|
|
7
|
+
validSubProjects: []
|
|
8
|
+
}
|
|
9
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ApprovalRule"), exports);
|
|
18
|
-
__exportStar(require("./ApprovalRuleConfiguration"), exports);
|
|
19
|
-
__exportStar(require("./Branch"), exports);
|
|
20
|
-
__exportStar(require("./Commit"), exports);
|
|
21
|
-
__exportStar(require("./CommitFile"), exports);
|
|
22
|
-
__exportStar(require("./CreateApprovalRuleRequest"), exports);
|
|
23
|
-
__exportStar(require("./File"), exports);
|
|
24
|
-
__exportStar(require("./Group"), exports);
|
|
25
|
-
__exportStar(require("./Label"), exports);
|
|
26
|
-
__exportStar(require("./MergeRequest"), exports);
|
|
27
|
-
__exportStar(require("./Milestone"), exports);
|
|
28
|
-
__exportStar(require("./Project"), exports);
|
|
29
|
-
__exportStar(require("./ProjectConfig"), exports);
|
|
30
|
-
__exportStar(require("./ProtectedBranch"), exports);
|
|
31
|
-
__exportStar(require("./Release"), exports);
|
|
32
|
-
__exportStar(require("./Tag"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./ApprovalRule"), exports);
|
|
18
|
+
__exportStar(require("./ApprovalRuleConfiguration"), exports);
|
|
19
|
+
__exportStar(require("./Branch"), exports);
|
|
20
|
+
__exportStar(require("./Commit"), exports);
|
|
21
|
+
__exportStar(require("./CommitFile"), exports);
|
|
22
|
+
__exportStar(require("./CreateApprovalRuleRequest"), exports);
|
|
23
|
+
__exportStar(require("./File"), exports);
|
|
24
|
+
__exportStar(require("./Group"), exports);
|
|
25
|
+
__exportStar(require("./Label"), exports);
|
|
26
|
+
__exportStar(require("./MergeRequest"), exports);
|
|
27
|
+
__exportStar(require("./Milestone"), exports);
|
|
28
|
+
__exportStar(require("./Project"), exports);
|
|
29
|
+
__exportStar(require("./ProjectConfig"), exports);
|
|
30
|
+
__exportStar(require("./ProtectedBranch"), exports);
|
|
31
|
+
__exportStar(require("./Release"), exports);
|
|
32
|
+
__exportStar(require("./Tag"), exports);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./MilestoneProject"), exports);
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./MilestoneProject"), exports);
|
|
@@ -1,79 +1,82 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createContainer = void 0;
|
|
4
|
-
var inversify_1 = require("inversify");
|
|
5
|
-
var api_clients_1 = require("./api-clients");
|
|
6
|
-
var services_1 = require("./services");
|
|
7
|
-
var commands_1 = require("./commands");
|
|
8
|
-
var tasks_1 = require("./tasks");
|
|
9
|
-
var types_1 = require("./types");
|
|
10
|
-
var EnsureApprovalRulesTask_1 = require("./tasks/configure-projects/EnsureApprovalRulesTask");
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
container.bind(types_1.MISC.
|
|
18
|
-
container.bind(types_1.MISC.
|
|
19
|
-
container.bind(types_1.MISC.
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
container.bind(types_1.API_CLIENTS.
|
|
25
|
-
container.bind(types_1.API_CLIENTS.
|
|
26
|
-
container.bind(types_1.API_CLIENTS.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
container.bind(types_1.SERVICES.
|
|
32
|
-
container.bind(types_1.SERVICES.
|
|
33
|
-
container.bind(types_1.SERVICES.
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
container.bind(types_1.TASKS.
|
|
39
|
-
container.bind(types_1.TASKS.
|
|
40
|
-
container.bind(types_1.TASKS.
|
|
41
|
-
container.bind(types_1.TASKS.
|
|
42
|
-
container.bind(types_1.TASKS.
|
|
43
|
-
container.bind(types_1.TASKS.
|
|
44
|
-
container.bind(types_1.TASKS.
|
|
45
|
-
container.bind(types_1.TASKS.
|
|
46
|
-
container.bind(types_1.TASKS.
|
|
47
|
-
container.bind(types_1.TASKS.
|
|
48
|
-
container.bind(types_1.TASKS.
|
|
49
|
-
container.bind(types_1.TASKS.
|
|
50
|
-
container.bind(types_1.TASKS.
|
|
51
|
-
container.bind(types_1.TASKS.
|
|
52
|
-
container.bind(types_1.TASKS.
|
|
53
|
-
container.bind(types_1.TASKS.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
container.bind(types_1.TASKS.
|
|
57
|
-
container.bind(types_1.TASKS.
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
container.bind(types_1.COMMANDS.
|
|
64
|
-
container.bind(types_1.COMMANDS.
|
|
65
|
-
container.bind(types_1.COMMANDS.
|
|
66
|
-
container.bind(types_1.COMMANDS.
|
|
67
|
-
container.bind(types_1.COMMANDS.
|
|
68
|
-
container.bind(types_1.COMMANDS.
|
|
69
|
-
container.bind(types_1.COMMANDS.
|
|
70
|
-
container.bind(types_1.COMMANDS.
|
|
71
|
-
container.bind(types_1.COMMANDS.
|
|
72
|
-
container.bind(types_1.COMMANDS.
|
|
73
|
-
container.bind(types_1.COMMANDS.
|
|
74
|
-
container.bind(types_1.COMMANDS.
|
|
75
|
-
|
|
76
|
-
container.bind(types_1.COMMANDS.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createContainer = void 0;
|
|
4
|
+
var inversify_1 = require("inversify");
|
|
5
|
+
var api_clients_1 = require("./api-clients");
|
|
6
|
+
var services_1 = require("./services");
|
|
7
|
+
var commands_1 = require("./commands");
|
|
8
|
+
var tasks_1 = require("./tasks");
|
|
9
|
+
var types_1 = require("./types");
|
|
10
|
+
var EnsureApprovalRulesTask_1 = require("./tasks/configure-projects/EnsureApprovalRulesTask");
|
|
11
|
+
var ChangeMilestoneTask_1 = require("./tasks/ChangeMilestoneTask");
|
|
12
|
+
function createContainer(config) {
|
|
13
|
+
var container = new inversify_1.Container();
|
|
14
|
+
/**
|
|
15
|
+
* Misc
|
|
16
|
+
*/
|
|
17
|
+
container.bind(types_1.MISC.GitLabConfig).toConstantValue(config.gitLab);
|
|
18
|
+
container.bind(types_1.MISC.TeamCityConfig).toConstantValue(config.teamCity);
|
|
19
|
+
container.bind(types_1.MISC.SlackConfig).toConstantValue(config.slack);
|
|
20
|
+
container.bind(types_1.MISC.TrelloConfig).toConstantValue(config.trello);
|
|
21
|
+
/**
|
|
22
|
+
* Clients
|
|
23
|
+
*/
|
|
24
|
+
container.bind(types_1.API_CLIENTS.GitLabApiClient).to(api_clients_1.GitLabApiClient);
|
|
25
|
+
container.bind(types_1.API_CLIENTS.TeamCityApiClient).to(api_clients_1.TeamCityApiClient);
|
|
26
|
+
container.bind(types_1.API_CLIENTS.SlackApiClient).to(api_clients_1.SlackApiClient);
|
|
27
|
+
container.bind(types_1.API_CLIENTS.TrelloApiClient).to(api_clients_1.TrelloApiClient);
|
|
28
|
+
/**
|
|
29
|
+
* Services
|
|
30
|
+
*/
|
|
31
|
+
container.bind(types_1.SERVICES.GitLabService).to(services_1.GitLabService).inSingletonScope();
|
|
32
|
+
container.bind(types_1.SERVICES.TeamCityService).to(services_1.TeamCityService).inSingletonScope();
|
|
33
|
+
container.bind(types_1.SERVICES.SlackService).to(services_1.SlackService).inSingletonScope();
|
|
34
|
+
container.bind(types_1.SERVICES.TrelloService).to(services_1.TrelloService).inSingletonScope();
|
|
35
|
+
/**
|
|
36
|
+
* Tasks
|
|
37
|
+
*/
|
|
38
|
+
container.bind(types_1.TASKS.ValidateTask).to(tasks_1.ValidateTask);
|
|
39
|
+
container.bind(types_1.TASKS.VersionTask).to(tasks_1.VersionTask);
|
|
40
|
+
container.bind(types_1.TASKS.CreateBranchTask).to(tasks_1.CreateBranchTask);
|
|
41
|
+
container.bind(types_1.TASKS.ValidateCommitsTask).to(tasks_1.ValidateCommitsTask);
|
|
42
|
+
container.bind(types_1.TASKS.BumpVersionTxtTask).to(tasks_1.BumpVersionTxtTask);
|
|
43
|
+
container.bind(types_1.TASKS.CreateMergeRequestTask).to(tasks_1.CreateMergeRequestTask);
|
|
44
|
+
container.bind(types_1.TASKS.ValidateDescriptionsTask).to(tasks_1.ValidateDescriptionsTask);
|
|
45
|
+
container.bind(types_1.TASKS.CreateReleaseNotesTask).to(tasks_1.CreateReleaseNotesTask);
|
|
46
|
+
container.bind(types_1.TASKS.CreateNotesAuditTask).to(tasks_1.CreateNotesAuditTask);
|
|
47
|
+
container.bind(types_1.TASKS.InstallPackagesTask).to(tasks_1.InstallPackagesTask);
|
|
48
|
+
container.bind(types_1.TASKS.BumpPackagesTask).to(tasks_1.BumpPackagesTask);
|
|
49
|
+
container.bind(types_1.TASKS.ValidateMergeRequestTask).to(tasks_1.ValidateMergeRequestTask);
|
|
50
|
+
container.bind(types_1.TASKS.StartMonorepoBuildTask).to(tasks_1.StartMonorepoBuildTask);
|
|
51
|
+
container.bind(types_1.TASKS.TagMasterTask).to(tasks_1.TagMasterTask);
|
|
52
|
+
container.bind(types_1.TASKS.ListProjectsTask).to(tasks_1.ListProjectsTask);
|
|
53
|
+
container.bind(types_1.TASKS.PopulateTrelloBoardTask).to(tasks_1.PopulateTrelloBoardTask);
|
|
54
|
+
container.bind(types_1.TASKS.StartProjectBuildsTask)
|
|
55
|
+
.to(tasks_1.StartProjectBuildsTask);
|
|
56
|
+
container.bind(types_1.TASKS.AddApprovalRulesTask).to(tasks_1.AddApprovalRulesTask);
|
|
57
|
+
container.bind(types_1.TASKS.EnsureApprovalRulesTask).to(EnsureApprovalRulesTask_1.EnsureApprovalRulesTask);
|
|
58
|
+
container.bind(types_1.TASKS.CreateToolingBranchTask).to(tasks_1.CreateToolingBranchTask);
|
|
59
|
+
container.bind(types_1.TASKS.ChangeMilestoneTask).to(ChangeMilestoneTask_1.ChangeMilestoneTask);
|
|
60
|
+
/**
|
|
61
|
+
* Commands
|
|
62
|
+
*/
|
|
63
|
+
container.bind(types_1.COMMANDS.StatusCommand).to(commands_1.StatusCommand);
|
|
64
|
+
container.bind(types_1.COMMANDS.VersionCommand).to(commands_1.VersionCommand);
|
|
65
|
+
container.bind(types_1.COMMANDS.CreateBranchCommand).to(commands_1.CreateBranchCommand);
|
|
66
|
+
container.bind(types_1.COMMANDS.CreateMergeRequestCommand).to(commands_1.CreateMergeRequestCommand);
|
|
67
|
+
container.bind(types_1.COMMANDS.ReleaseCommand).to(commands_1.ReleaseCommand);
|
|
68
|
+
container.bind(types_1.COMMANDS.ToolingReleaseCommand).to(commands_1.ToolingReleaseCommand);
|
|
69
|
+
container.bind(types_1.COMMANDS.CreateReleaseNotesCommand).to(commands_1.CreateReleaseNotesCommand);
|
|
70
|
+
container.bind(types_1.COMMANDS.CreateNotesAuditCommand).to(commands_1.CreateNotesAuditCommand);
|
|
71
|
+
container.bind(types_1.COMMANDS.InstallPackagesCommand).to(commands_1.InstallPackagesCommand);
|
|
72
|
+
container.bind(types_1.COMMANDS.BumpPackagesCommand).to(commands_1.BumpPackagesCommand);
|
|
73
|
+
container.bind(types_1.COMMANDS.ValidateMergeRequestCommand).to(commands_1.ValidateMergeRequestCommand);
|
|
74
|
+
container.bind(types_1.COMMANDS.TagMasterCommand).to(commands_1.TagMasterCommand);
|
|
75
|
+
container.bind(types_1.COMMANDS.ListProjectsCommand).to(commands_1.ListProjectsCommand);
|
|
76
|
+
container.bind(types_1.COMMANDS.CreateTrelloCardsCommand).to(commands_1.CreateTrelloCardsCommand);
|
|
77
|
+
container.bind(types_1.COMMANDS.StartProjectBuildsCommand)
|
|
78
|
+
.to(commands_1.StartProjectBuildsCommand);
|
|
79
|
+
container.bind(types_1.COMMANDS.ConfigureProjectsCommand).to(commands_1.ConfigureProjectsCommand);
|
|
80
|
+
return container;
|
|
81
|
+
}
|
|
82
|
+
exports.createContainer = createContainer;
|