@clickview/ship-it 0.0.40 → 0.0.41

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 (124) hide show
  1. package/Dockerfile +33 -33
  2. package/README.md +48 -48
  3. package/config.json +19 -19
  4. package/dist/I3/I3 Notes Audit.csv +127 -0
  5. package/dist/J1/J1 Notes Audit.csv +38 -0
  6. package/dist/J2/J2 Notes Audit.csv +52 -0
  7. package/dist/L1/L1 Notes Audit.csv +139 -0
  8. package/lib/config.json +20 -20
  9. package/lib/src/api-clients/git-lab/GitLabApiClient.js +561 -557
  10. package/lib/src/api-clients/git-lab/GitLabMapper.js +122 -122
  11. package/lib/src/api-clients/index.js +20 -20
  12. package/lib/src/api-clients/slack/SlackApiClient.js +206 -206
  13. package/lib/src/api-clients/team-city/TeamCityApiClient.js +100 -100
  14. package/lib/src/api-clients/trello/TrelloApiClient.js +145 -145
  15. package/lib/src/commands/BumpPackagesCommand.js +76 -76
  16. package/lib/src/commands/ConfigureProjectsCommand.js +84 -84
  17. package/lib/src/commands/CreateBranchCommand.js +100 -100
  18. package/lib/src/commands/CreateMergeRequestCommand.js +107 -107
  19. package/lib/src/commands/CreateNotesAuditCommand.js +84 -84
  20. package/lib/src/commands/CreateReleaseNotesCommand.js +95 -95
  21. package/lib/src/commands/CreateTrelloCardsCommand.js +77 -77
  22. package/lib/src/commands/InstallPackagesCommand.js +76 -76
  23. package/lib/src/commands/ListProjectsCommand.js +76 -76
  24. package/lib/src/commands/ReleaseCommand.js +136 -136
  25. package/lib/src/commands/StartProjectBuildsCommand.js +76 -76
  26. package/lib/src/commands/StatusCommand.js +93 -93
  27. package/lib/src/commands/TagMasterCommand.js +76 -76
  28. package/lib/src/commands/ValidateMergeRequestCommand.js +76 -76
  29. package/lib/src/commands/VersionCommand.js +76 -76
  30. package/lib/src/commands/index.js +31 -31
  31. package/lib/src/constants/CommandTypeMapping.js +21 -21
  32. package/lib/src/constants/GitLabMemberIds.js +6 -6
  33. package/lib/src/constants/MonorepoPackageJsonFiles.js +41 -41
  34. package/lib/src/constants/MonorepoProjectNames.js +16 -16
  35. package/lib/src/constants/ProjectNames.js +69 -69
  36. package/lib/src/constants/SlackUserEmailList.js +13 -13
  37. package/lib/src/constants/TeamCityBuildIDs.js +46 -46
  38. package/lib/src/constants/index.js +19 -19
  39. package/lib/src/errors/ShipItError.js +32 -32
  40. package/lib/src/errors/index.js +17 -17
  41. package/lib/src/index.js +18 -18
  42. package/lib/src/interfaces/Config.js +2 -2
  43. package/lib/src/interfaces/MergeRequestState.js +2 -2
  44. package/lib/src/interfaces/ProjectNames.js +2 -2
  45. package/lib/src/interfaces/ShipItCommand.js +2 -2
  46. package/lib/src/interfaces/ShipItTask.js +2 -2
  47. package/lib/src/interfaces/VersionType.js +2 -2
  48. package/lib/src/interfaces/command-cli-options/MilestoneCommandCliOptions.js +2 -2
  49. package/lib/src/interfaces/command-cli-options/ReleaseCommandCliOptions.js +2 -2
  50. package/lib/src/interfaces/command-cli-options/StatusCommandCliOptions.js +2 -2
  51. package/lib/src/interfaces/command-cli-options/index.js +19 -19
  52. package/lib/src/interfaces/command-options/BaseCommandOptions.js +2 -2
  53. package/lib/src/interfaces/command-options/BumpPackagesCommandOptions.js +2 -2
  54. package/lib/src/interfaces/command-options/ConfigureProjectsOptions.js +2 -2
  55. package/lib/src/interfaces/command-options/DockerMilestoneCommandOptions.js +2 -2
  56. package/lib/src/interfaces/command-options/MilestoneCommandOptions.js +2 -2
  57. package/lib/src/interfaces/command-options/ReleaseCommandOptions.js +2 -2
  58. package/lib/src/interfaces/command-options/StatusCommandOptions.js +2 -2
  59. package/lib/src/interfaces/command-options/ValidateMRCommandOptions.js +2 -2
  60. package/lib/src/interfaces/command-options/index.js +23 -23
  61. package/lib/src/interfaces/index.js +26 -26
  62. package/lib/src/interfaces/models/ApprovalRule.js +2 -2
  63. package/lib/src/interfaces/models/ApprovalRuleConfiguration.js +2 -2
  64. package/lib/src/interfaces/models/Branch.js +2 -2
  65. package/lib/src/interfaces/models/Commit.js +2 -2
  66. package/lib/src/interfaces/models/CommitFile.js +2 -2
  67. package/lib/src/interfaces/models/CreateApprovalRuleRequest.js +2 -2
  68. package/lib/src/interfaces/models/File.js +2 -2
  69. package/lib/src/interfaces/models/Group.js +2 -2
  70. package/lib/src/interfaces/models/Label.js +2 -2
  71. package/lib/src/interfaces/models/MergeRequest.js +2 -2
  72. package/lib/src/interfaces/models/Milestone.js +2 -2
  73. package/lib/src/interfaces/models/Project.js +2 -2
  74. package/lib/src/interfaces/models/ProjectConfig.js +9 -9
  75. package/lib/src/interfaces/models/ProtectedBranch.js +2 -2
  76. package/lib/src/interfaces/models/Release.js +2 -2
  77. package/lib/src/interfaces/models/Tag.js +2 -2
  78. package/lib/src/interfaces/models/index.js +32 -32
  79. package/lib/src/interfaces/view-models/MilestoneProject.js +2 -2
  80. package/lib/src/interfaces/view-models/index.js +17 -17
  81. package/lib/src/inversify.config.js +79 -79
  82. package/lib/src/services/GitLabService.js +544 -544
  83. package/lib/src/services/SlackService.js +142 -142
  84. package/lib/src/services/TeamCityService.js +37 -37
  85. package/lib/src/services/TrelloService.js +84 -84
  86. package/lib/src/services/index.js +20 -20
  87. package/lib/src/startup/AddMilestoneCommand.js +96 -96
  88. package/lib/src/startup/GetAction.js +68 -68
  89. package/lib/src/startup/SetupCommands.js +180 -180
  90. package/lib/src/tasks/BumpPackagesTask.js +230 -230
  91. package/lib/src/tasks/BumpVersionTxtTask.js +110 -110
  92. package/lib/src/tasks/CommitPackageVersionsTask.js +116 -0
  93. package/lib/src/tasks/CreateBranchTask.js +104 -104
  94. package/lib/src/tasks/CreateMergeRequestTask.js +118 -118
  95. package/lib/src/tasks/CreateNotesAuditTask.js +140 -140
  96. package/lib/src/tasks/CreateReleaseNotesTask.js +144 -144
  97. package/lib/src/tasks/InstallPackagesTask.js +415 -415
  98. package/lib/src/tasks/ListProjectsTask.js +87 -87
  99. package/lib/src/tasks/PopulateTrelloBoardTask.js +140 -140
  100. package/lib/src/tasks/StartMonorepoBuildTask.js +109 -109
  101. package/lib/src/tasks/StartProjectBuildsTask.js +170 -170
  102. package/lib/src/tasks/TagMasterTask.js +189 -189
  103. package/lib/src/tasks/ValidateCommitsTask.js +143 -143
  104. package/lib/src/tasks/ValidateDescriptionsTask.js +178 -178
  105. package/lib/src/tasks/ValidateMergeRequestTask.js +115 -115
  106. package/lib/src/tasks/ValidateTask.js +419 -419
  107. package/lib/src/tasks/VersionTask.js +98 -98
  108. package/lib/src/tasks/configure-projects/AddApprovalRulesTask.js +199 -182
  109. package/lib/src/tasks/configure-projects/CreateToolingBranchTask.js +138 -136
  110. package/lib/src/tasks/configure-projects/EnsureApprovalRulesTask.js +106 -106
  111. package/lib/src/tasks/configure-projects/index.js +18 -18
  112. package/lib/src/tasks/configure-projects/primitives/BaseConfigureProjectsTask.js +98 -98
  113. package/lib/src/tasks/index.js +34 -34
  114. package/lib/src/types.js +60 -60
  115. package/lib/src/utils/BranchNames.js +11 -11
  116. package/lib/src/utils/Commits.js +55 -55
  117. package/lib/src/utils/Csv.js +54 -54
  118. package/lib/src/utils/Descriptions.js +274 -274
  119. package/lib/src/utils/GroupIds.js +6 -6
  120. package/lib/src/utils/Logger.js +62 -62
  121. package/lib/src/utils/ProjectIds.js +47 -47
  122. package/lib/src/utils/Versions.js +20 -20
  123. package/lib/src/utils/index.js +22 -22
  124. package/package.json +50 -50
@@ -1,145 +1,145 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
- function verb(n) { return function (v) { return step([n, v]); }; }
27
- function step(op) {
28
- if (f) throw new TypeError("Generator is already executing.");
29
- while (_) try {
30
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
- if (y = 0, t) op = [op[0] & 2, t.value];
32
- switch (op[0]) {
33
- case 0: case 1: t = op; break;
34
- case 4: _.label++; return { value: op[1], done: false };
35
- case 5: _.label++; y = op[1]; op = [0]; continue;
36
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
- default:
38
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
- if (t[2]) _.ops.pop();
43
- _.trys.pop(); continue;
44
- }
45
- op = body.call(thisArg, _);
46
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
- }
49
- };
50
- var __importDefault = (this && this.__importDefault) || function (mod) {
51
- return (mod && mod.__esModule) ? mod : { "default": mod };
52
- };
53
- Object.defineProperty(exports, "__esModule", { value: true });
54
- exports.TrelloApiClient = void 0;
55
- require("reflect-metadata");
56
- var trello_1 = __importDefault(require("trello"));
57
- var inversify_1 = require("inversify");
58
- var types_1 = require("../../types");
59
- var utils_1 = require("../../utils");
60
- var TrelloApiClient = /** @class */ (function () {
61
- function TrelloApiClient(config) {
62
- this.config = config;
63
- this.client = new trello_1.default(this.config.apiKey, this.config.apiToken);
64
- }
65
- TrelloApiClient.prototype.getListId = function (listName) {
66
- return __awaiter(this, void 0, void 0, function () {
67
- var lists, targetList, error_1;
68
- return __generator(this, function (_a) {
69
- switch (_a.label) {
70
- case 0:
71
- _a.trys.push([0, 2, , 3]);
72
- return [4 /*yield*/, this.client.getListsOnBoard(this.config.boardId)];
73
- case 1:
74
- lists = _a.sent();
75
- targetList = lists.find(function (list) { return list.name === listName; });
76
- if (targetList) {
77
- return [2 /*return*/, targetList.id];
78
- }
79
- else {
80
- utils_1.Logger.logError("List with name '".concat(listName, "' not found on the board with ID '").concat(this.config.boardId, "'."));
81
- return [2 /*return*/, null];
82
- }
83
- return [3 /*break*/, 3];
84
- case 2:
85
- error_1 = _a.sent();
86
- utils_1.Logger.logError('Error:', error_1.message);
87
- return [2 /*return*/, null];
88
- case 3: return [2 /*return*/];
89
- }
90
- });
91
- });
92
- };
93
- TrelloApiClient.prototype.createCard = function (cardName, description, listId) {
94
- return __awaiter(this, void 0, void 0, function () {
95
- var card, error_2;
96
- return __generator(this, function (_a) {
97
- switch (_a.label) {
98
- case 0:
99
- _a.trys.push([0, 2, , 3]);
100
- return [4 /*yield*/, this.client.addCard(cardName, description, listId)];
101
- case 1:
102
- card = _a.sent();
103
- return [2 /*return*/, card.id];
104
- case 2:
105
- error_2 = _a.sent();
106
- utils_1.Logger.logError('Error creating card:', error_2.message);
107
- return [2 /*return*/, null];
108
- case 3: return [2 /*return*/];
109
- }
110
- });
111
- });
112
- };
113
- TrelloApiClient.prototype.deleteAllCardsInList = function (listId) {
114
- return __awaiter(this, void 0, void 0, function () {
115
- var cards, promises, error_3;
116
- var _this = this;
117
- return __generator(this, function (_a) {
118
- switch (_a.label) {
119
- case 0:
120
- _a.trys.push([0, 3, , 4]);
121
- return [4 /*yield*/, this.client.getCardsOnList(listId)];
122
- case 1:
123
- cards = _a.sent();
124
- promises = cards.map(function (card) { return _this.client.deleteCard(card.id); });
125
- return [4 /*yield*/, Promise.all(promises)];
126
- case 2:
127
- _a.sent();
128
- return [2 /*return*/, true];
129
- case 3:
130
- error_3 = _a.sent();
131
- utils_1.Logger.logError('Error deleting cards:', error_3.message);
132
- return [3 /*break*/, 4];
133
- case 4: return [2 /*return*/, false];
134
- }
135
- });
136
- });
137
- };
138
- TrelloApiClient = __decorate([
139
- (0, inversify_1.injectable)(),
140
- __param(0, (0, inversify_1.inject)(types_1.MISC.TrelloConfig)),
141
- __metadata("design:paramtypes", [Object])
142
- ], TrelloApiClient);
143
- return TrelloApiClient;
144
- }());
145
- exports.TrelloApiClient = TrelloApiClient;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ var __generator = (this && this.__generator) || function (thisArg, body) {
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
+ function verb(n) { return function (v) { return step([n, v]); }; }
27
+ function step(op) {
28
+ if (f) throw new TypeError("Generator is already executing.");
29
+ while (_) try {
30
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
+ if (y = 0, t) op = [op[0] & 2, t.value];
32
+ switch (op[0]) {
33
+ case 0: case 1: t = op; break;
34
+ case 4: _.label++; return { value: op[1], done: false };
35
+ case 5: _.label++; y = op[1]; op = [0]; continue;
36
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
+ default:
38
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
+ if (t[2]) _.ops.pop();
43
+ _.trys.pop(); continue;
44
+ }
45
+ op = body.call(thisArg, _);
46
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
+ }
49
+ };
50
+ var __importDefault = (this && this.__importDefault) || function (mod) {
51
+ return (mod && mod.__esModule) ? mod : { "default": mod };
52
+ };
53
+ Object.defineProperty(exports, "__esModule", { value: true });
54
+ exports.TrelloApiClient = void 0;
55
+ require("reflect-metadata");
56
+ var trello_1 = __importDefault(require("trello"));
57
+ var inversify_1 = require("inversify");
58
+ var types_1 = require("../../types");
59
+ var utils_1 = require("../../utils");
60
+ var TrelloApiClient = /** @class */ (function () {
61
+ function TrelloApiClient(config) {
62
+ this.config = config;
63
+ this.client = new trello_1.default(this.config.apiKey, this.config.apiToken);
64
+ }
65
+ TrelloApiClient.prototype.getListId = function (listName) {
66
+ return __awaiter(this, void 0, void 0, function () {
67
+ var lists, targetList, error_1;
68
+ return __generator(this, function (_a) {
69
+ switch (_a.label) {
70
+ case 0:
71
+ _a.trys.push([0, 2, , 3]);
72
+ return [4 /*yield*/, this.client.getListsOnBoard(this.config.boardId)];
73
+ case 1:
74
+ lists = _a.sent();
75
+ targetList = lists.find(function (list) { return list.name === listName; });
76
+ if (targetList) {
77
+ return [2 /*return*/, targetList.id];
78
+ }
79
+ else {
80
+ utils_1.Logger.logError("List with name '".concat(listName, "' not found on the board with ID '").concat(this.config.boardId, "'."));
81
+ return [2 /*return*/, null];
82
+ }
83
+ return [3 /*break*/, 3];
84
+ case 2:
85
+ error_1 = _a.sent();
86
+ utils_1.Logger.logError('Error:', error_1.message);
87
+ return [2 /*return*/, null];
88
+ case 3: return [2 /*return*/];
89
+ }
90
+ });
91
+ });
92
+ };
93
+ TrelloApiClient.prototype.createCard = function (cardName, description, listId) {
94
+ return __awaiter(this, void 0, void 0, function () {
95
+ var card, error_2;
96
+ return __generator(this, function (_a) {
97
+ switch (_a.label) {
98
+ case 0:
99
+ _a.trys.push([0, 2, , 3]);
100
+ return [4 /*yield*/, this.client.addCard(cardName, description, listId)];
101
+ case 1:
102
+ card = _a.sent();
103
+ return [2 /*return*/, card.id];
104
+ case 2:
105
+ error_2 = _a.sent();
106
+ utils_1.Logger.logError('Error creating card:', error_2.message);
107
+ return [2 /*return*/, null];
108
+ case 3: return [2 /*return*/];
109
+ }
110
+ });
111
+ });
112
+ };
113
+ TrelloApiClient.prototype.deleteAllCardsInList = function (listId) {
114
+ return __awaiter(this, void 0, void 0, function () {
115
+ var cards, promises, error_3;
116
+ var _this = this;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
119
+ case 0:
120
+ _a.trys.push([0, 3, , 4]);
121
+ return [4 /*yield*/, this.client.getCardsOnList(listId)];
122
+ case 1:
123
+ cards = _a.sent();
124
+ promises = cards.map(function (card) { return _this.client.deleteCard(card.id); });
125
+ return [4 /*yield*/, Promise.all(promises)];
126
+ case 2:
127
+ _a.sent();
128
+ return [2 /*return*/, true];
129
+ case 3:
130
+ error_3 = _a.sent();
131
+ utils_1.Logger.logError('Error deleting cards:', error_3.message);
132
+ return [3 /*break*/, 4];
133
+ case 4: return [2 /*return*/, false];
134
+ }
135
+ });
136
+ });
137
+ };
138
+ TrelloApiClient = __decorate([
139
+ (0, inversify_1.injectable)(),
140
+ __param(0, (0, inversify_1.inject)(types_1.MISC.TrelloConfig)),
141
+ __metadata("design:paramtypes", [Object])
142
+ ], TrelloApiClient);
143
+ return TrelloApiClient;
144
+ }());
145
+ exports.TrelloApiClient = TrelloApiClient;
@@ -1,76 +1,76 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
- function verb(n) { return function (v) { return step([n, v]); }; }
27
- function step(op) {
28
- if (f) throw new TypeError("Generator is already executing.");
29
- while (_) try {
30
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
- if (y = 0, t) op = [op[0] & 2, t.value];
32
- switch (op[0]) {
33
- case 0: case 1: t = op; break;
34
- case 4: _.label++; return { value: op[1], done: false };
35
- case 5: _.label++; y = op[1]; op = [0]; continue;
36
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
- default:
38
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
- if (t[2]) _.ops.pop();
43
- _.trys.pop(); continue;
44
- }
45
- op = body.call(thisArg, _);
46
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
- }
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.BumpPackagesCommand = void 0;
52
- require("reflect-metadata");
53
- var inversify_1 = require("inversify");
54
- var types_1 = require("../types");
55
- var BumpPackagesCommand = /** @class */ (function () {
56
- function BumpPackagesCommand(bumpPackagesTask) {
57
- this.bumpPackagesTask = bumpPackagesTask;
58
- }
59
- BumpPackagesCommand.prototype.run = function (options) {
60
- return __awaiter(this, void 0, void 0, function () {
61
- return __generator(this, function (_a) {
62
- switch (_a.label) {
63
- case 0: return [4 /*yield*/, this.bumpPackagesTask.run(options)];
64
- case 1: return [2 /*return*/, _a.sent()];
65
- }
66
- });
67
- });
68
- };
69
- BumpPackagesCommand = __decorate([
70
- (0, inversify_1.injectable)(),
71
- __param(0, (0, inversify_1.inject)(types_1.TASKS.BumpPackagesTask)),
72
- __metadata("design:paramtypes", [Object])
73
- ], BumpPackagesCommand);
74
- return BumpPackagesCommand;
75
- }());
76
- exports.BumpPackagesCommand = BumpPackagesCommand;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ var __generator = (this && this.__generator) || function (thisArg, body) {
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
+ function verb(n) { return function (v) { return step([n, v]); }; }
27
+ function step(op) {
28
+ if (f) throw new TypeError("Generator is already executing.");
29
+ while (_) try {
30
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
+ if (y = 0, t) op = [op[0] & 2, t.value];
32
+ switch (op[0]) {
33
+ case 0: case 1: t = op; break;
34
+ case 4: _.label++; return { value: op[1], done: false };
35
+ case 5: _.label++; y = op[1]; op = [0]; continue;
36
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
+ default:
38
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
+ if (t[2]) _.ops.pop();
43
+ _.trys.pop(); continue;
44
+ }
45
+ op = body.call(thisArg, _);
46
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
+ }
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.BumpPackagesCommand = void 0;
52
+ require("reflect-metadata");
53
+ var inversify_1 = require("inversify");
54
+ var types_1 = require("../types");
55
+ var BumpPackagesCommand = /** @class */ (function () {
56
+ function BumpPackagesCommand(bumpPackagesTask) {
57
+ this.bumpPackagesTask = bumpPackagesTask;
58
+ }
59
+ BumpPackagesCommand.prototype.run = function (options) {
60
+ return __awaiter(this, void 0, void 0, function () {
61
+ return __generator(this, function (_a) {
62
+ switch (_a.label) {
63
+ case 0: return [4 /*yield*/, this.bumpPackagesTask.run(options)];
64
+ case 1: return [2 /*return*/, _a.sent()];
65
+ }
66
+ });
67
+ });
68
+ };
69
+ BumpPackagesCommand = __decorate([
70
+ (0, inversify_1.injectable)(),
71
+ __param(0, (0, inversify_1.inject)(types_1.TASKS.BumpPackagesTask)),
72
+ __metadata("design:paramtypes", [Object])
73
+ ], BumpPackagesCommand);
74
+ return BumpPackagesCommand;
75
+ }());
76
+ exports.BumpPackagesCommand = BumpPackagesCommand;
@@ -1,84 +1,84 @@
1
- "use strict";
2
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
- return c > 3 && r && Object.defineProperty(target, key, r), r;
7
- };
8
- var __metadata = (this && this.__metadata) || function (k, v) {
9
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
- };
11
- var __param = (this && this.__param) || function (paramIndex, decorator) {
12
- return function (target, key) { decorator(target, key, paramIndex); }
13
- };
14
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
- return new (P || (P = Promise))(function (resolve, reject) {
17
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
- step((generator = generator.apply(thisArg, _arguments || [])).next());
21
- });
22
- };
23
- var __generator = (this && this.__generator) || function (thisArg, body) {
24
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
- function verb(n) { return function (v) { return step([n, v]); }; }
27
- function step(op) {
28
- if (f) throw new TypeError("Generator is already executing.");
29
- while (_) try {
30
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
- if (y = 0, t) op = [op[0] & 2, t.value];
32
- switch (op[0]) {
33
- case 0: case 1: t = op; break;
34
- case 4: _.label++; return { value: op[1], done: false };
35
- case 5: _.label++; y = op[1]; op = [0]; continue;
36
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
- default:
38
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
- if (t[2]) _.ops.pop();
43
- _.trys.pop(); continue;
44
- }
45
- op = body.call(thisArg, _);
46
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
- }
49
- };
50
- Object.defineProperty(exports, "__esModule", { value: true });
51
- exports.ConfigureProjectsCommand = void 0;
52
- require("reflect-metadata");
53
- var inversify_1 = require("inversify");
54
- var types_1 = require("../types");
55
- var ConfigureProjectsCommand = /** @class */ (function () {
56
- function ConfigureProjectsCommand(addApprovalRulesTask, createToolingBranchTask) {
57
- this.addApprovalRulesTask = addApprovalRulesTask;
58
- this.createToolingBranchTask = createToolingBranchTask;
59
- }
60
- ConfigureProjectsCommand.prototype.run = function (options) {
61
- return __awaiter(this, void 0, void 0, function () {
62
- var cont;
63
- return __generator(this, function (_a) {
64
- switch (_a.label) {
65
- case 0: return [4 /*yield*/, this.addApprovalRulesTask.run(options)];
66
- case 1:
67
- cont = _a.sent();
68
- if (!cont)
69
- return [2 /*return*/, false];
70
- return [4 /*yield*/, this.createToolingBranchTask.run(options)];
71
- case 2: return [2 /*return*/, _a.sent()];
72
- }
73
- });
74
- });
75
- };
76
- ConfigureProjectsCommand = __decorate([
77
- (0, inversify_1.injectable)(),
78
- __param(0, (0, inversify_1.inject)(types_1.TASKS.AddApprovalRulesTask)),
79
- __param(1, (0, inversify_1.inject)(types_1.TASKS.CreateToolingBranchTask)),
80
- __metadata("design:paramtypes", [Object, Object])
81
- ], ConfigureProjectsCommand);
82
- return ConfigureProjectsCommand;
83
- }());
84
- exports.ConfigureProjectsCommand = ConfigureProjectsCommand;
1
+ "use strict";
2
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
3
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
4
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
5
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
6
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
7
+ };
8
+ var __metadata = (this && this.__metadata) || function (k, v) {
9
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
10
+ };
11
+ var __param = (this && this.__param) || function (paramIndex, decorator) {
12
+ return function (target, key) { decorator(target, key, paramIndex); }
13
+ };
14
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
15
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
16
+ return new (P || (P = Promise))(function (resolve, reject) {
17
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
18
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
19
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
20
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
21
+ });
22
+ };
23
+ var __generator = (this && this.__generator) || function (thisArg, body) {
24
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
25
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
26
+ function verb(n) { return function (v) { return step([n, v]); }; }
27
+ function step(op) {
28
+ if (f) throw new TypeError("Generator is already executing.");
29
+ while (_) try {
30
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
31
+ if (y = 0, t) op = [op[0] & 2, t.value];
32
+ switch (op[0]) {
33
+ case 0: case 1: t = op; break;
34
+ case 4: _.label++; return { value: op[1], done: false };
35
+ case 5: _.label++; y = op[1]; op = [0]; continue;
36
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
37
+ default:
38
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
39
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
40
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
41
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
42
+ if (t[2]) _.ops.pop();
43
+ _.trys.pop(); continue;
44
+ }
45
+ op = body.call(thisArg, _);
46
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
47
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
48
+ }
49
+ };
50
+ Object.defineProperty(exports, "__esModule", { value: true });
51
+ exports.ConfigureProjectsCommand = void 0;
52
+ require("reflect-metadata");
53
+ var inversify_1 = require("inversify");
54
+ var types_1 = require("../types");
55
+ var ConfigureProjectsCommand = /** @class */ (function () {
56
+ function ConfigureProjectsCommand(addApprovalRulesTask, createToolingBranchTask) {
57
+ this.addApprovalRulesTask = addApprovalRulesTask;
58
+ this.createToolingBranchTask = createToolingBranchTask;
59
+ }
60
+ ConfigureProjectsCommand.prototype.run = function (options) {
61
+ return __awaiter(this, void 0, void 0, function () {
62
+ var cont;
63
+ return __generator(this, function (_a) {
64
+ switch (_a.label) {
65
+ case 0: return [4 /*yield*/, this.addApprovalRulesTask.run(options)];
66
+ case 1:
67
+ cont = _a.sent();
68
+ if (!cont)
69
+ return [2 /*return*/, false];
70
+ return [4 /*yield*/, this.createToolingBranchTask.run(options)];
71
+ case 2: return [2 /*return*/, _a.sent()];
72
+ }
73
+ });
74
+ });
75
+ };
76
+ ConfigureProjectsCommand = __decorate([
77
+ (0, inversify_1.injectable)(),
78
+ __param(0, (0, inversify_1.inject)(types_1.TASKS.AddApprovalRulesTask)),
79
+ __param(1, (0, inversify_1.inject)(types_1.TASKS.CreateToolingBranchTask)),
80
+ __metadata("design:paramtypes", [Object, Object])
81
+ ], ConfigureProjectsCommand);
82
+ return ConfigureProjectsCommand;
83
+ }());
84
+ exports.ConfigureProjectsCommand = ConfigureProjectsCommand;