@clickview/ship-it 0.0.32 → 0.0.34
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.
|
@@ -67,18 +67,18 @@ var GitLabApiClient = /** @class */ (function () {
|
|
|
67
67
|
}
|
|
68
68
|
GitLabApiClient.prototype.getMergeRequests = function (options) {
|
|
69
69
|
return __awaiter(this, void 0, void 0, function () {
|
|
70
|
-
var milestone, projectIds,
|
|
70
|
+
var milestone, projectIds, updatedAfter, mergeRequests;
|
|
71
71
|
return __generator(this, function (_a) {
|
|
72
72
|
switch (_a.label) {
|
|
73
73
|
case 0:
|
|
74
74
|
milestone = options.milestone, projectIds = options.projectIds;
|
|
75
75
|
if (!milestone && !(projectIds === null || projectIds === void 0 ? void 0 : projectIds.length))
|
|
76
76
|
throw new errors_1.ShipItError('Must specify one of the following: Milestone or ProjectIds');
|
|
77
|
-
|
|
78
|
-
|
|
77
|
+
updatedAfter = new Date();
|
|
78
|
+
updatedAfter.setMonth(updatedAfter.getMonth() - 3);
|
|
79
79
|
return [4 /*yield*/, this.client.MergeRequests.all({
|
|
80
80
|
milestone: milestone,
|
|
81
|
-
|
|
81
|
+
updatedAfter: updatedAfter.toISOString(),
|
|
82
82
|
scope: 'all'
|
|
83
83
|
})];
|
|
84
84
|
case 1:
|
|
@@ -270,7 +270,7 @@ var InstallPackagesTask = /** @class */ (function () {
|
|
|
270
270
|
case 2:
|
|
271
271
|
commitFiles = _a.concat([(_c.content = _d.sent(),
|
|
272
272
|
_c)]);
|
|
273
|
-
return [4 /*yield*/, this.service.commit(project.id, branchName, 'Installing
|
|
273
|
+
return [4 /*yield*/, this.service.commit(project.id, branchName, 'Installing clickview npm packages', commitFiles)];
|
|
274
274
|
case 3:
|
|
275
275
|
_d.sent();
|
|
276
276
|
return [2 /*return*/];
|