@dazhicheng/common 1.0.40 → 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.
package/.gitlab-ci.yml CHANGED
@@ -78,11 +78,8 @@ variables:
78
78
  - docker stop $IMAGE_NAME || true
79
79
  - docker rm $IMAGE_NAME || true
80
80
  - >
81
- docker run -d --name $IMAGE_NAME --restart always
82
- -p $HOST_PORT:$CONTAINER_PORT
83
- -v ${IMAGE_NAME}-assets:/usr/share/nginx/html
84
- -e ASSET_RETENTION_DAYS=14
85
- $IMAGE_NAME:latest
81
+ docker run -d --name $IMAGE_NAME --restart always -p $HOST_PORT:$CONTAINER_PORT -v ${IMAGE_NAME}-assets:/usr/share/nginx/html -e ASSET_RETENTION_DAYS=14 $IMAGE_NAME:latest
82
+
86
83
  - docker image prune -f || true
87
84
 
88
85
  # MR 验证 -----------------------------------------------------------------
@@ -9,8 +9,9 @@ const taskIdPlugin = {
9
9
  rules: {
10
10
  "task-id-required": parsed => {
11
11
  const { header } = parsed;
12
- if (!/#\d+#/.test(header)) {
13
- return [false, "commit message 必须包含任务ID,格式为 #任务ID#(如 #1234567#)"];
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
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dazhicheng/common",
3
- "version": "1.0.40",
3
+ "version": "1.0.42",
4
4
  "description": "共享配置文件",
5
5
  "type": "module",
6
6
  "types": "./src/types/index.d.ts",