Selaa lähdekoodia

feat: 提交信息检验测试

wanggaokun 1 vuosi sitten
vanhempi
sitoutus
b3148b836f
2 muutettua tiedostoa jossa 21 lisäystä ja 21 poistoa
  1. 20 20
      commitlint.config.cjs
  2. 1 1
      src/App.vue

+ 20 - 20
commitlint.config.cjs

@@ -43,27 +43,27 @@ module.exports = {
   },
   prompt: {
     messages: {
-      type: "Select the type of change that you're committing:",
-      scope: 'Denote the SCOPE of this change (optional):',
-      customScope: 'Denote the SCOPE of this change:',
-      subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
-      body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
-      breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
-      footerPrefixsSelect: 'Select the ISSUES type of changeList by this change (optional):',
-      customFooterPrefixs: 'Input ISSUES prefix:',
-      footer: 'List any ISSUES by this change. E.g.: #31, #34:\n',
-      confirmCommit: 'Are you sure you want to proceed with the commit above?'
+      // type: "Select the type of change that you're committing:",
+      // scope: 'Denote the SCOPE of this change (optional):',
+      // customScope: 'Denote the SCOPE of this change:',
+      // subject: 'Write a SHORT, IMPERATIVE tense description of the change:\n',
+      // body: 'Provide a LONGER description of the change (optional). Use "|" to break new line:\n',
+      // breaking: 'List any BREAKING CHANGES (optional). Use "|" to break new line:\n',
+      // footerPrefixsSelect: 'Select the ISSUES type of changeList by this change (optional):',
+      // customFooterPrefixs: 'Input ISSUES prefix:',
+      // footer: 'List any ISSUES by this change. E.g.: #31, #34:\n',
+      // confirmCommit: 'Are you sure you want to proceed with the commit above?'
       // 中文版
-      // type: "选择你要提交的类型 :",
-      // scope: "选择一个提交范围(可选):",
-      // customScope: "请输入自定义的提交范围 :",
-      // subject: "填写简短精炼的变更描述 :\n",
-      // body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n',
-      // breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n',
-      // footerPrefixsSelect: "选择关联issue前缀(可选):",
-      // customFooterPrefixs: "输入自定义issue前缀 :",
-      // footer: "列举关联issue (可选) 例如: #31, #I3244 :\n",
-      // confirmCommit: "是否提交或修改commit ?"
+      type: '选择你要提交的类型 :',
+      scope: '选择一个提交范围(可选):',
+      customScope: '请输入自定义的提交范围 :',
+      subject: '填写简短精炼的变更描述 :\n',
+      body: '填写更加详细的变更描述(可选)。使用 "|" 换行 :\n',
+      breaking: '列举非兼容性重大的变更(可选)。使用 "|" 换行 :\n',
+      footerPrefixsSelect: '选择关联issue前缀(可选):',
+      customFooterPrefixs: '输入自定义issue前缀 :',
+      footer: '列举关联issue (可选) 例如: #31, #I3244 :\n',
+      confirmCommit: '是否提交或修改commit ?'
     },
     types: [
       {

+ 1 - 1
src/App.vue

@@ -17,7 +17,7 @@ import zhCn from 'element-plus/es/locale/lang/zh-cn'
 
 const globalStore = useGlobalStore()
 
-// init theme
+// 初始化主题
 const { initTheme } = useTheme()
 initTheme()