@godv61/dsh-task-engine 0.5.1 → 0.5.3
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/defaults/eng.json +11 -11
- package/hooks/commit-msg +11 -11
- package/lib/client.js +768 -233
- package/lib/client.js.map +4 -4
- package/package.json +1 -1
package/defaults/eng.json
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
{
|
|
2
|
-
"stages": ["
|
|
3
|
-
"start_stage": "
|
|
2
|
+
"stages": ["需求评审", "设计", "开发", "交付", "代码审核", "完成"],
|
|
3
|
+
"start_stage": "需求评审",
|
|
4
4
|
"transitions": [
|
|
5
|
-
{ "from": "
|
|
6
|
-
{ "from": "
|
|
7
|
-
{ "from": "
|
|
8
|
-
{ "from": "
|
|
9
|
-
{ "from": "
|
|
5
|
+
{ "from": "需求评审", "to": "设计", "requires": ["requirement_confirmation", "artifacts_present"] },
|
|
6
|
+
{ "from": "设计", "to": "开发", "requires": ["solution_confirmation", "artifacts_present"] },
|
|
7
|
+
{ "from": "开发", "to": "交付", "requires": ["todos_done"] },
|
|
8
|
+
{ "from": "交付", "to": "代码审核", "requires": ["verified"] },
|
|
9
|
+
{ "from": "代码审核", "to": "完成", "requires": ["review_passed", "artifacts_present"] }
|
|
10
10
|
],
|
|
11
11
|
"artifacts": [
|
|
12
|
-
{ "stage": "
|
|
13
|
-
{ "stage": "
|
|
14
|
-
{ "stage": "
|
|
12
|
+
{ "stage": "需求评审", "id": "requirement", "name": "需求说明", "fields": ["scope", "acceptance_criteria"] },
|
|
13
|
+
{ "stage": "设计", "id": "design", "name": "设计文档", "fields": ["approach", "risks", "impact"] },
|
|
14
|
+
{ "stage": "代码审核", "id": "review", "name": "评审记录", "fields": ["conclusion", "issues"] }
|
|
15
15
|
],
|
|
16
16
|
"commit": {
|
|
17
17
|
"policy": "task",
|
|
18
18
|
"message_pattern": "^【(\\S+)】【(?:TASK|T\\d+)】.+",
|
|
19
19
|
"message_hint": "【<module>】【TASK/T1】说明 —— 写结果,不写空泛动作",
|
|
20
|
-
"checkpoints": ["
|
|
20
|
+
"checkpoints": ["交付"],
|
|
21
21
|
"file_scope": true
|
|
22
22
|
},
|
|
23
23
|
"high_risk_requires_verification": true
|
package/hooks/commit-msg
CHANGED
|
@@ -33,25 +33,25 @@ function readJson(abs) {
|
|
|
33
33
|
|
|
34
34
|
// Mirrors defaults/eng.json — keep in sync.
|
|
35
35
|
const DEFAULTS = {
|
|
36
|
-
stages: ['
|
|
37
|
-
start_stage: '
|
|
36
|
+
stages: ['需求评审', '设计', '开发', '交付', '代码审核', '完成'],
|
|
37
|
+
start_stage: '需求评审',
|
|
38
38
|
transitions: [
|
|
39
|
-
{ from: '
|
|
40
|
-
{ from: '
|
|
41
|
-
{ from: '
|
|
42
|
-
{ from: '
|
|
43
|
-
{ from: '
|
|
39
|
+
{ from: '需求评审', to: '设计', requires: ['requirement_confirmation', 'artifacts_present'] },
|
|
40
|
+
{ from: '设计', to: '开发', requires: ['solution_confirmation', 'artifacts_present'] },
|
|
41
|
+
{ from: '开发', to: '交付', requires: ['todos_done'] },
|
|
42
|
+
{ from: '交付', to: '代码审核', requires: ['verified'] },
|
|
43
|
+
{ from: '代码审核', to: '完成', requires: ['review_passed', 'artifacts_present'] },
|
|
44
44
|
],
|
|
45
45
|
artifacts: [
|
|
46
|
-
{ stage: '
|
|
47
|
-
{ stage: '
|
|
48
|
-
{ stage: '
|
|
46
|
+
{ stage: '需求评审', id: 'requirement', name: '需求说明', fields: ['scope', 'acceptance_criteria'] },
|
|
47
|
+
{ stage: '设计', id: 'design', name: '设计文档', fields: ['approach', 'risks', 'impact'] },
|
|
48
|
+
{ stage: '代码审核', id: 'review', name: '评审记录', fields: ['conclusion', 'issues'] },
|
|
49
49
|
],
|
|
50
50
|
commit: {
|
|
51
51
|
policy: 'task',
|
|
52
52
|
message_pattern: '^【(\\S+)】【(?:TASK|T\\d+)】.+',
|
|
53
53
|
message_hint: '【<module>】【TASK/T1】说明',
|
|
54
|
-
checkpoints: ['
|
|
54
|
+
checkpoints: ['交付'],
|
|
55
55
|
file_scope: true,
|
|
56
56
|
},
|
|
57
57
|
high_risk_requires_verification: true,
|