瀏覽代碼

🐎 ci(git): 修改git提交规则

陈雪 3 周之前
父節點
當前提交
202a0b7988
共有 1 個文件被更改,包括 2 次插入10 次删除
  1. 2 10
      .commitlintrc.cjs

+ 2 - 10
.commitlintrc.cjs

@@ -24,8 +24,8 @@ module.exports = {
     'body-leading-blank': [2, 'always'],
     'footer-leading-blank': [1, 'always'],
     'header-max-length': [2, 'always', 108],
-    'subject-empty': [2, 'never'],
-    'type-empty': [2, 'never'],
+    'subject-empty': [0],
+    'type-empty': [0],
     'subject-case': [0],
     'type-enum': [
       2,
@@ -59,14 +59,6 @@ module.exports = {
     scopes: [...scopes, 'mock'],
     allowEmptyIssuePrefixs: false,
     allowCustomIssuePrefixs: false,
-
-    // English
-    typesAppend: [
-      { value: 'wip', name: 'wip:      work in process' },
-      { value: 'workflow', name: 'workflow: workflow improvements' },
-      { value: 'types', name: 'types:    type definition file changes' },
-    ],
-
     // 中英文对照版
     // messages: {
     //   type: '选择你要提交的类型 :',