@clickview/ship-it 0.0.40 → 0.0.42-dev.1
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 +33 -33
- package/README.md +48 -48
- package/config.json +19 -19
- package/dist/I3/I3 Notes Audit.csv +127 -0
- package/dist/J1/J1 Notes Audit.csv +38 -0
- package/dist/J2/J2 Notes Audit.csv +52 -0
- package/dist/L1/L1 Notes Audit.csv +139 -0
- package/lib/config.json +20 -20
- package/lib/src/api-clients/git-lab/GitLabApiClient.js +564 -557
- 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 -77
- 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/ValidateMergeRequestCommand.js +76 -76
- package/lib/src/commands/VersionCommand.js +76 -76
- package/lib/src/commands/index.js +31 -31
- package/lib/src/constants/CommandTypeMapping.js +21 -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/VersionType.js +2 -2
- package/lib/src/interfaces/command-cli-options/DockerMilestoneCommandCliOptions.js +2 -0
- 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/index.js +19 -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/ValidateMRCommandOptions.js +2 -2
- package/lib/src/interfaces/command-options/index.js +23 -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 +79 -79
- package/lib/src/services/GitLabService.js +553 -544
- 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 +88 -96
- package/lib/src/startup/GetAction.js +68 -68
- package/lib/src/startup/SetupCommands.js +191 -180
- package/lib/src/tasks/BumpPackagesTask.js +230 -230
- package/lib/src/tasks/BumpVersionTxtTask.js +110 -110
- package/lib/src/tasks/CommitPackageVersionsTask.js +116 -0
- package/lib/src/tasks/CreateBranchTask.js +104 -104
- package/lib/src/tasks/CreateMergeRequestTask.js +126 -118
- package/lib/src/tasks/CreateNotesAuditTask.js +140 -140
- package/lib/src/tasks/CreateReleaseNotesTask.js +144 -144
- package/lib/src/tasks/InstallPackagesTask.js +409 -415
- 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 -170
- package/lib/src/tasks/TagMasterTask.js +196 -189
- package/lib/src/tasks/ValidateCommitsTask.js +210 -143
- package/lib/src/tasks/ValidateDescriptionsTask.js +178 -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 -182
- package/lib/src/tasks/configure-projects/CreateToolingBranchTask.js +138 -136
- 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 +60 -60
- package/lib/src/utils/BranchNames.js +11 -11
- package/lib/src/utils/Commits.js +82 -55
- 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 -47
- package/lib/src/utils/Versions.js +20 -20
- package/lib/src/utils/index.js +22 -22
- package/package.json +50 -50
|
@@ -1,122 +1,122 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GitLabMapper = void 0;
|
|
4
|
-
exports.GitLabMapper = {
|
|
5
|
-
mergeRequest: function (m) {
|
|
6
|
-
var _a;
|
|
7
|
-
return {
|
|
8
|
-
iid: m.iid,
|
|
9
|
-
title: m.title,
|
|
10
|
-
description: m.description,
|
|
11
|
-
status: m.state,
|
|
12
|
-
projectId: m.project_id,
|
|
13
|
-
mergeCommit: m.merge_commit_sha,
|
|
14
|
-
author: m.author.name,
|
|
15
|
-
assignee: (_a = m.assignee) === null || _a === void 0 ? void 0 : _a.name,
|
|
16
|
-
url: m.web_url,
|
|
17
|
-
hasConflicts: m.has_conflicts,
|
|
18
|
-
targetBranch: m.target_branch,
|
|
19
|
-
sourceBranch: m.source_branch,
|
|
20
|
-
milestone: exports.GitLabMapper.milestone(m.milestone),
|
|
21
|
-
labels: m.labels,
|
|
22
|
-
dateCreated: m.created_at
|
|
23
|
-
};
|
|
24
|
-
},
|
|
25
|
-
project: function (p) {
|
|
26
|
-
return {
|
|
27
|
-
id: p.id,
|
|
28
|
-
title: p.name,
|
|
29
|
-
url: p.web_url
|
|
30
|
-
};
|
|
31
|
-
},
|
|
32
|
-
tag: function (t) {
|
|
33
|
-
return {
|
|
34
|
-
name: t.name,
|
|
35
|
-
target: t.commit.id
|
|
36
|
-
};
|
|
37
|
-
},
|
|
38
|
-
commit: function (c) {
|
|
39
|
-
return {
|
|
40
|
-
id: c.id,
|
|
41
|
-
title: c.title,
|
|
42
|
-
message: c.message,
|
|
43
|
-
parentIds: c.parent_ids
|
|
44
|
-
};
|
|
45
|
-
},
|
|
46
|
-
branch: function (b) {
|
|
47
|
-
return {
|
|
48
|
-
name: b.name
|
|
49
|
-
};
|
|
50
|
-
},
|
|
51
|
-
protectedBranch: function (b) {
|
|
52
|
-
return {
|
|
53
|
-
id: b.id,
|
|
54
|
-
name: b.name
|
|
55
|
-
};
|
|
56
|
-
},
|
|
57
|
-
file: function (f) {
|
|
58
|
-
return {
|
|
59
|
-
name: f.file_name,
|
|
60
|
-
path: f.file_path,
|
|
61
|
-
content: f.content
|
|
62
|
-
};
|
|
63
|
-
},
|
|
64
|
-
milestone: function (m) {
|
|
65
|
-
if (!m)
|
|
66
|
-
return null;
|
|
67
|
-
return {
|
|
68
|
-
id: m.id,
|
|
69
|
-
name: m.title
|
|
70
|
-
};
|
|
71
|
-
},
|
|
72
|
-
label: function (m) {
|
|
73
|
-
return {
|
|
74
|
-
name: m.name,
|
|
75
|
-
description: m.description
|
|
76
|
-
};
|
|
77
|
-
},
|
|
78
|
-
release: function (m) {
|
|
79
|
-
var _a;
|
|
80
|
-
return {
|
|
81
|
-
name: m.name,
|
|
82
|
-
tag: m.tag_name,
|
|
83
|
-
description: m.description,
|
|
84
|
-
ref: m.commit.id,
|
|
85
|
-
milestones: (_a = m.milestones) === null || _a === void 0 ? void 0 : _a.map(function (m) { return m.title; })
|
|
86
|
-
};
|
|
87
|
-
},
|
|
88
|
-
approvalRuleConfiguration: function (m) {
|
|
89
|
-
return {
|
|
90
|
-
disableOverridingApproversPerMergeRequest: m.disable_overriding_approvers_per_merge_request,
|
|
91
|
-
mergeRequestsAuthorApproval: m.merge_requests_author_approval,
|
|
92
|
-
mergeRequestsDisableCommittersApproval: m.merge_requests_disable_committers_approval,
|
|
93
|
-
requirePasswordToApprove: m.require_password_to_approve,
|
|
94
|
-
resetApprovalsOnPush: m.reset_approvals_on_push
|
|
95
|
-
};
|
|
96
|
-
},
|
|
97
|
-
reverseApprovalRuleConfiguration: function (config) {
|
|
98
|
-
return {
|
|
99
|
-
disable_overriding_approvers_per_merge_request: config.disableOverridingApproversPerMergeRequest,
|
|
100
|
-
merge_requests_author_approval: config.mergeRequestsAuthorApproval,
|
|
101
|
-
merge_requests_disable_committers_approval: config.mergeRequestsDisableCommittersApproval,
|
|
102
|
-
require_password_to_approve: config.requirePasswordToApprove,
|
|
103
|
-
reset_approvals_on_push: config.resetApprovalsOnPush,
|
|
104
|
-
approvals_before_merge: 0
|
|
105
|
-
};
|
|
106
|
-
},
|
|
107
|
-
approvalRule: function (m) {
|
|
108
|
-
var _a;
|
|
109
|
-
return {
|
|
110
|
-
id: m.id,
|
|
111
|
-
name: m.name,
|
|
112
|
-
approvalsRequired: m.approvals_required,
|
|
113
|
-
groups: (_a = m.groups) === null || _a === void 0 ? void 0 : _a.map(exports.GitLabMapper.group)
|
|
114
|
-
};
|
|
115
|
-
},
|
|
116
|
-
group: function (m) {
|
|
117
|
-
return {
|
|
118
|
-
id: m.id,
|
|
119
|
-
name: m.name
|
|
120
|
-
};
|
|
121
|
-
}
|
|
122
|
-
};
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GitLabMapper = void 0;
|
|
4
|
+
exports.GitLabMapper = {
|
|
5
|
+
mergeRequest: function (m) {
|
|
6
|
+
var _a;
|
|
7
|
+
return {
|
|
8
|
+
iid: m.iid,
|
|
9
|
+
title: m.title,
|
|
10
|
+
description: m.description,
|
|
11
|
+
status: m.state,
|
|
12
|
+
projectId: m.project_id,
|
|
13
|
+
mergeCommit: m.merge_commit_sha,
|
|
14
|
+
author: m.author.name,
|
|
15
|
+
assignee: (_a = m.assignee) === null || _a === void 0 ? void 0 : _a.name,
|
|
16
|
+
url: m.web_url,
|
|
17
|
+
hasConflicts: m.has_conflicts,
|
|
18
|
+
targetBranch: m.target_branch,
|
|
19
|
+
sourceBranch: m.source_branch,
|
|
20
|
+
milestone: exports.GitLabMapper.milestone(m.milestone),
|
|
21
|
+
labels: m.labels,
|
|
22
|
+
dateCreated: m.created_at
|
|
23
|
+
};
|
|
24
|
+
},
|
|
25
|
+
project: function (p) {
|
|
26
|
+
return {
|
|
27
|
+
id: p.id,
|
|
28
|
+
title: p.name,
|
|
29
|
+
url: p.web_url
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
tag: function (t) {
|
|
33
|
+
return {
|
|
34
|
+
name: t.name,
|
|
35
|
+
target: t.commit.id
|
|
36
|
+
};
|
|
37
|
+
},
|
|
38
|
+
commit: function (c) {
|
|
39
|
+
return {
|
|
40
|
+
id: c.id,
|
|
41
|
+
title: c.title,
|
|
42
|
+
message: c.message,
|
|
43
|
+
parentIds: c.parent_ids
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
branch: function (b) {
|
|
47
|
+
return {
|
|
48
|
+
name: b.name
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
protectedBranch: function (b) {
|
|
52
|
+
return {
|
|
53
|
+
id: b.id,
|
|
54
|
+
name: b.name
|
|
55
|
+
};
|
|
56
|
+
},
|
|
57
|
+
file: function (f) {
|
|
58
|
+
return {
|
|
59
|
+
name: f.file_name,
|
|
60
|
+
path: f.file_path,
|
|
61
|
+
content: f.content
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
milestone: function (m) {
|
|
65
|
+
if (!m)
|
|
66
|
+
return null;
|
|
67
|
+
return {
|
|
68
|
+
id: m.id,
|
|
69
|
+
name: m.title
|
|
70
|
+
};
|
|
71
|
+
},
|
|
72
|
+
label: function (m) {
|
|
73
|
+
return {
|
|
74
|
+
name: m.name,
|
|
75
|
+
description: m.description
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
release: function (m) {
|
|
79
|
+
var _a;
|
|
80
|
+
return {
|
|
81
|
+
name: m.name,
|
|
82
|
+
tag: m.tag_name,
|
|
83
|
+
description: m.description,
|
|
84
|
+
ref: m.commit.id,
|
|
85
|
+
milestones: (_a = m.milestones) === null || _a === void 0 ? void 0 : _a.map(function (m) { return m.title; })
|
|
86
|
+
};
|
|
87
|
+
},
|
|
88
|
+
approvalRuleConfiguration: function (m) {
|
|
89
|
+
return {
|
|
90
|
+
disableOverridingApproversPerMergeRequest: m.disable_overriding_approvers_per_merge_request,
|
|
91
|
+
mergeRequestsAuthorApproval: m.merge_requests_author_approval,
|
|
92
|
+
mergeRequestsDisableCommittersApproval: m.merge_requests_disable_committers_approval,
|
|
93
|
+
requirePasswordToApprove: m.require_password_to_approve,
|
|
94
|
+
resetApprovalsOnPush: m.reset_approvals_on_push
|
|
95
|
+
};
|
|
96
|
+
},
|
|
97
|
+
reverseApprovalRuleConfiguration: function (config) {
|
|
98
|
+
return {
|
|
99
|
+
disable_overriding_approvers_per_merge_request: config.disableOverridingApproversPerMergeRequest,
|
|
100
|
+
merge_requests_author_approval: config.mergeRequestsAuthorApproval,
|
|
101
|
+
merge_requests_disable_committers_approval: config.mergeRequestsDisableCommittersApproval,
|
|
102
|
+
require_password_to_approve: config.requirePasswordToApprove,
|
|
103
|
+
reset_approvals_on_push: config.resetApprovalsOnPush,
|
|
104
|
+
approvals_before_merge: 0
|
|
105
|
+
};
|
|
106
|
+
},
|
|
107
|
+
approvalRule: function (m) {
|
|
108
|
+
var _a;
|
|
109
|
+
return {
|
|
110
|
+
id: m.id,
|
|
111
|
+
name: m.name,
|
|
112
|
+
approvalsRequired: m.approvals_required,
|
|
113
|
+
groups: (_a = m.groups) === null || _a === void 0 ? void 0 : _a.map(exports.GitLabMapper.group)
|
|
114
|
+
};
|
|
115
|
+
},
|
|
116
|
+
group: function (m) {
|
|
117
|
+
return {
|
|
118
|
+
id: m.id,
|
|
119
|
+
name: m.name
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
};
|
|
@@ -1,20 +1,20 @@
|
|
|
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("./git-lab/GitLabApiClient"), exports);
|
|
18
|
-
__exportStar(require("./team-city/TeamCityApiClient"), exports);
|
|
19
|
-
__exportStar(require("./slack/SlackApiClient"), exports);
|
|
20
|
-
__exportStar(require("./trello/TrelloApiClient"), 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("./git-lab/GitLabApiClient"), exports);
|
|
18
|
+
__exportStar(require("./team-city/TeamCityApiClient"), exports);
|
|
19
|
+
__exportStar(require("./slack/SlackApiClient"), exports);
|
|
20
|
+
__exportStar(require("./trello/TrelloApiClient"), exports);
|