@d5render/cli 0.1.58 → 0.1.61
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/README.md +5 -3
- package/bin/mcpServer.js +4 -5
- package/package.json +1 -1
package/README.md
CHANGED
package/bin/mcpServer.js
CHANGED
|
@@ -19137,7 +19137,6 @@ function distReports(input) {
|
|
|
19137
19137
|
}
|
|
19138
19138
|
];
|
|
19139
19139
|
if (issues.length === 0 && suggestions.length === 0) {
|
|
19140
|
-
gitlabReport.report = [];
|
|
19141
19140
|
gitlabCommitReport.report = [];
|
|
19142
19141
|
dingdingReport.report = [];
|
|
19143
19142
|
usage();
|
|
@@ -19208,6 +19207,7 @@ function distReports(input) {
|
|
|
19208
19207
|
}
|
|
19209
19208
|
gitlabReportMessage += withNoFile + withFile;
|
|
19210
19209
|
}
|
|
19210
|
+
usage();
|
|
19211
19211
|
let subCommitUrl = url;
|
|
19212
19212
|
if (DINGTALK_WEBHOOK) {
|
|
19213
19213
|
dingdingReportMessage = `### 📖 ${title}\n\n**共计**:${issues.length}个问题\n\n${risks.length > 0 ? "**主要风险**:\n\n" + risks.join("\n\n") + "\n\n" : "\n\n"}-----\n\n**项目名**:${CI_PROJECT_NAME}`;
|
|
@@ -19220,12 +19220,12 @@ function distReports(input) {
|
|
|
19220
19220
|
dingdingReportMessage += `${type === "merge_request" ? `\n\n**合并${commit}**:[${CI_MERGE_REQUEST_IID}](${url})` : `\n\n**提交${commit}**:[${CI_COMMIT_SHA.slice(0, 8)}](${url})`}`;
|
|
19221
19221
|
}
|
|
19222
19222
|
if (severityMap.size > 0) {
|
|
19223
|
-
dingdingReportMessage += `${commitsMap.size > 0 ? `\n\n含问题的commits:${[...commitsMap.keys()].map((v) => `[${v.slice(0, 8)}](${linkBase}/${v})`).join(", ")}` : ""}\n\n-----\n\n#### Issues
|
|
19223
|
+
dingdingReportMessage += `${commitsMap.size > 0 ? `\n\n含问题的commits:${[...commitsMap.keys()].map((v) => `[${v.slice(0, 8)}](${linkBase}/${v})`).join(", ")}` : ""}\n\n-----\n\n#### 🐞 Issues\n\n`;
|
|
19224
19224
|
let bugLength = 0;
|
|
19225
19225
|
const maxBugLength = 5;
|
|
19226
19226
|
for (const [severity, severityIssues] of severityMap) {
|
|
19227
19227
|
if (bugLength > maxBugLength) break;
|
|
19228
|
-
dingdingReportMessage += `\n\n
|
|
19228
|
+
dingdingReportMessage += `\n\n**${severity}**`;
|
|
19229
19229
|
for (const issue of severityIssues) {
|
|
19230
19230
|
if (bugLength > maxBugLength) {
|
|
19231
19231
|
dingdingReportMessage += `\n\n\n...以及其他 ${issues.length - bugLength} 个问题,[详见报告](${url})`;
|
|
@@ -19243,7 +19243,7 @@ function distReports(input) {
|
|
|
19243
19243
|
let { id = "" } = value || {};
|
|
19244
19244
|
dingdingReportMessage += `\n\n-----\n\n#### [**改进建议请查看**](${url}#note_${id})\n`;
|
|
19245
19245
|
}
|
|
19246
|
-
if (jiras.length > 0) dingdingReportMessage += `\n\n#### JIRA
|
|
19246
|
+
if (jiras.length > 0) dingdingReportMessage += `\n\n#### 🔗 JIRA \n\n\n\n${jiras.map((v) => `[${v.key}](${JIRA_BASE_URL}/browse/${v.key}): ${v.summary}`).join("\n\n")}`;
|
|
19247
19247
|
}
|
|
19248
19248
|
if (commitsURL) gitlabCommitReport.report = commitComments.map(({ sha, file, line, note }) => () => {
|
|
19249
19249
|
const { value = {} } = lastComment;
|
|
@@ -19260,7 +19260,6 @@ function distReports(input) {
|
|
|
19260
19260
|
})
|
|
19261
19261
|
});
|
|
19262
19262
|
});
|
|
19263
|
-
usage();
|
|
19264
19263
|
return result;
|
|
19265
19264
|
}
|
|
19266
19265
|
async function runReport(input) {
|