@zzp123/mcp-zentao 1.8.8 → 1.8.9
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/CHANGELOG.md +11 -0
- package/dist/api/zentaoApi.js +3 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,17 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [1.8.9] - 2025-11-06
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
- **修复 resolveBug 工具必须提供 resolvedBuild 参数的问题**
|
|
12
|
+
- 当 resolution 为 "fixed" 时,如果未提供 resolvedBuild,自动设置为 "trunk"(主干版本)
|
|
13
|
+
- 消除了使用 resolveBug 工具时的常见错误:"当解决方案为"已解决(fixed)"时,必须提供解决版本(resolvedBuild)"
|
|
14
|
+
- 简化了解决Bug的操作流程,提升用户体验
|
|
15
|
+
|
|
16
|
+
### Improved
|
|
17
|
+
- 添加了自动默认值设置的日志输出,便于调试和追踪
|
|
18
|
+
|
|
8
19
|
## [1.8.8] - 2025-11-06
|
|
9
20
|
|
|
10
21
|
### Fixed
|
package/dist/api/zentaoApi.js
CHANGED
|
@@ -249,9 +249,10 @@ export class ZentaoAPI {
|
|
|
249
249
|
async resolveBug(bugId, resolution) {
|
|
250
250
|
try {
|
|
251
251
|
console.log(`正在解决Bug ${bugId}...`);
|
|
252
|
-
//
|
|
252
|
+
// 验证必填字段并设置默认值
|
|
253
253
|
if (resolution.resolution === 'fixed' && !resolution.resolvedBuild) {
|
|
254
|
-
|
|
254
|
+
console.log('解决方案为"fixed"时未提供resolvedBuild,自动设置为"trunk"');
|
|
255
|
+
resolution.resolvedBuild = 'trunk';
|
|
255
256
|
}
|
|
256
257
|
if (resolution.resolution === 'duplicate' && !resolution.duplicateBug) {
|
|
257
258
|
throw new Error('当解决方案为"重复Bug(duplicate)"时,必须提供重复Bug的ID(duplicateBug)');
|