@dazhicheng/common 1.0.41 → 1.0.42
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.
|
@@ -9,8 +9,9 @@ const taskIdPlugin = {
|
|
|
9
9
|
rules: {
|
|
10
10
|
"task-id-required": parsed => {
|
|
11
11
|
const { header } = parsed;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
// 仅要求存在 #任务ID#,任务ID 内容不做格式限制
|
|
13
|
+
if (!/#[^#]+#/.test(header)) {
|
|
14
|
+
return [false, "commit message 必须包含任务ID,格式为 #任务ID#(如 #1234567#、#ABC-001#)"];
|
|
14
15
|
}
|
|
15
16
|
return [true, ""];
|
|
16
17
|
},
|