@meet-im/lxcli 0.1.3 → 0.1.4
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.
|
@@ -49,7 +49,7 @@ export const PARAM_DEFS = {
|
|
|
49
49
|
{ name: 'owner_id', type: 'integer', required: false, description: '处理人 Kanboard 用户 ID。处理人必须可分配到该项目。' },
|
|
50
50
|
{ name: 'creator_id', type: 'integer', required: false, description: '创建人 Kanboard 用户 ID。登录态存在时创建人会使用当前用户。' },
|
|
51
51
|
{ name: 'category_id', type: 'integer', required: false, description: '分类 ID。服务端会根据分类和 bug 类型选择泳道。' },
|
|
52
|
-
{ name: 'iteration_id', type: 'integer', required: false, description: '迭代 ID;未传或为 0
|
|
52
|
+
{ name: 'iteration_id', type: 'integer', required: false, description: '迭代 ID;未传或为 0 时由服务端选择需求池或首个迭代。可用 getAllActiveIterations 查询启用迭代列表,根据 date_start/date_end(Unix 时间戳)确定目标迭代。' },
|
|
53
53
|
{ name: 'date_due', type: 'string', required: false, description: '截止日期,建议使用 YYYY-MM-DD' },
|
|
54
54
|
{ name: 'date_started', type: 'string', required: false, description: '开始日期,建议使用 YYYY-MM-DD' },
|
|
55
55
|
{ name: 'priority', type: 'integer', required: false, description: '优先级:0 高、1 中、2 低,其他值为无关紧要' },
|
|
@@ -74,7 +74,7 @@ export const PARAM_DEFS = {
|
|
|
74
74
|
{ name: 'description', type: 'string', required: false, description: '描述内容(Markdown)' },
|
|
75
75
|
{ name: 'owner_id', type: 'integer', required: false, description: '处理人用户 ID。目标用户必须可分配到该项目。' },
|
|
76
76
|
{ name: 'category_id', type: 'integer', required: false, description: '分类 ID' },
|
|
77
|
-
{ name: 'iteration_id', type: 'integer', required: false, description: '迭代 ID。传入后修改需求/bug
|
|
77
|
+
{ name: 'iteration_id', type: 'integer', required: false, description: '迭代 ID。传入后修改需求/bug 所属迭代;未传时保持原迭代不变。可用 getAllActiveIterations 查询启用迭代列表,根据 date_start/date_end(Unix 时间戳)确定目标迭代。' },
|
|
78
78
|
{ name: 'date_due', type: 'string', required: false, description: '截止日期,建议使用 YYYY-MM-DD' },
|
|
79
79
|
{ name: 'date_started', type: 'string', required: false, description: '开始日期,建议使用 YYYY-MM-DD' },
|
|
80
80
|
{ name: 'priority', type: 'integer', required: false, description: '优先级:0 高、1 中、2 低,其他值为无关紧要' },
|
|
@@ -26,6 +26,36 @@ export const METHOD_SKILL_METADATA = {
|
|
|
26
26
|
'仅在确实需要时才传 `with_comments`、`with_files`、`with_links`、`with_subtasks`,避免把额外第三方内容带入代理上下文。',
|
|
27
27
|
],
|
|
28
28
|
},
|
|
29
|
+
getAllActiveIterations: {
|
|
30
|
+
paramsExample: {
|
|
31
|
+
project_id: 4,
|
|
32
|
+
},
|
|
33
|
+
sections: [
|
|
34
|
+
{
|
|
35
|
+
title: '返回值说明',
|
|
36
|
+
kind: 'bullets',
|
|
37
|
+
items: [
|
|
38
|
+
'返回数组中每个对象包含 `id`、`name`、`date_start`、`date_end`、`position`、`nb_open_tasks`、`nb_closed_tasks` 等字段。',
|
|
39
|
+
'`date_start` 和 `date_end` 是 **Unix 时间戳**(秒级整数),`0` 表示未设置。显示或比较前需转换为可读日期。',
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: '确定下个迭代',
|
|
44
|
+
kind: 'bullets',
|
|
45
|
+
items: [
|
|
46
|
+
'将当前时间转为 Unix 时间戳(秒),筛选 `date_start > 当前时间戳` 的迭代。',
|
|
47
|
+
'在筛选结果中取 `date_start` 最小的那个,即为"下个迭代"。',
|
|
48
|
+
'若所有迭代的 `date_start` 都 ≤ 当前时间,说明没有未来的迭代;可取 `date_end` 最大且仍 ≥ 当前时间的迭代作为"当前迭代"。',
|
|
49
|
+
'获得迭代后,将其 `id` 传入 `createTask --iteration_id` 或 `updateTask --iteration_id`。',
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
],
|
|
53
|
+
},
|
|
54
|
+
createTask: {
|
|
55
|
+
notes: [
|
|
56
|
+
'如需指定迭代,先调用 `getAllActiveIterations` 查询项目的启用迭代列表,根据 `date_start`/`date_end`(Unix 时间戳)确定目标迭代 ID,再传入 `iteration_id`。',
|
|
57
|
+
],
|
|
58
|
+
},
|
|
29
59
|
searchTasks: {
|
|
30
60
|
paramsExample: {
|
|
31
61
|
project_id: 4,
|