From 0fcbd5c0848c2a1baf3c7a52a9b762d4fe4579b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E6=B0=B4=E8=8A=A6=E8=8B=87?= Date: Thu, 4 Jan 2024 09:50:29 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=90=9B=20fix(docs):=20Modify=20the=20?= =?UTF-8?q?path=20of=20the=20.Commitlintrc.cjs.=20The=20previous=20file=20?= =?UTF-8?q?name=20was=20written=20wrong?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 8 ++++---- README.zh-CN.md | 8 ++++---- src/utils/version/get/index.ts | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 36d5794..9e2ac03 100644 --- a/README.md +++ b/README.md @@ -195,7 +195,7 @@ Here, **Regenerate Logs** is used as a demonstration, as it consists of two step ```yml - name: Auto Release - run: cvlar -r + run: npx cvlar -r env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` @@ -333,18 +333,18 @@ The following two files are configuration files generated by this command, repre ## Commitlint Configuration -The file [commitlint.cjs](https://github.com/kwooshung/cvlar/blob/main/commitlint.cjs) is a configuration file for `commitlint`. It is designed for setting up `commitlint`. To simplify unified management, two separate files, `ks-cvlar.types.cjs` and `ks-cvlar.scopes.cjs`, are created. They are used for configuring the `types` and `scopes` in `commitlint` and also for configuring the `commit` menu in `cvlar`. +The file [.commitlintrc.cjs](https://github.com/kwooshung/cvlar/blob/main/.commitlintrc.cjs) is a configuration file for `commitlint`. It is designed for setting up `commitlint`. To simplify unified management, two separate files, `ks-cvlar.types.cjs` and `ks-cvlar.scopes.cjs`, are created. They are used for configuring the `types` and `scopes` in `commitlint` and also for configuring the `commit` menu in `cvlar`. - [This repository's commit types configuration](https://github.com/kwooshung/cvlar/blob/main/scripts/ks-cvlar.types.cjs) - [This repository's commit scopes configuration](https://github.com/kwooshung/cvlar/blob/main/scripts/ks-cvlar.scopes.cjs) -In [commitlint.cjs](https://github.com/kwooshung/cvlar/blob/main/commitlint.cjs), you can import the `ks-cvlar.types.cjs` and `ks-cvlar.scopes.cjs` files. However, since the `commit` configuration in `cvlar` differs from that in `commitlint`, you need to import two functions like this: +In [.commitlintrc.cjs](https://github.com/kwooshung/cvlar/blob/main/.commitlintrc.cjs), you can import the `ks-cvlar.types.cjs` and `ks-cvlar.scopes.cjs` files. However, since the `commit` configuration in `cvlar` differs from that in `commitlint`, you need to import two functions like this: ```javascript const { ConvertToLintTypes, ConvertToLintScopes } = require('@kwooshung/cvlar'); ``` -This facilitates conversion to commitlint configuration. For detailed usage, please refer to [commitlint.cjs](https://github.com/kwooshung/cvlar/blob/main/commitlint.cjs). +This facilitates conversion to commitlint configuration. For detailed usage, please refer to [.commitlintrc.cjs](https://github.com/kwooshung/cvlar/blob/main/.commitlintrc.cjs). ### When Translating Commit Messages with Commitlint Enabled diff --git a/README.zh-CN.md b/README.zh-CN.md index 60a5d65..94a83a1 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -191,7 +191,7 @@ pnpm add standard-version @kwooshung/cvlar -D ```yml - name: Auto Release - run: cvlar -r + run: npx cvlar -r env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` @@ -329,19 +329,19 @@ cvlar -[cd/config-dir] xxx/xx/x ## commitlint 配置 -此文件 [commitlint.cjs](https://github.com/kwooshung/cvlar/blob/main/commitlint.cjs) 是 `commitlint` 的配置文件,用于 `commitlint` 的配置; +此文件 [.commitlintrc.cjs](https://github.com/kwooshung/cvlar/blob/main/.commitlintrc.cjs) 是 `commitlint` 的配置文件,用于 `commitlint` 的配置; 为了方便统一管理,所以独立出来了 `ks-cvlar.types.cjs` 和 `ks-cvlar.scopes.cjs` 两个文件,用于 `commitlint` 的 `types` 和 `scopes` 的配置,及 `cvlar` 的 `commit` 菜单的配置; - [本仓库的 commit types 配置](https://github.com/kwooshung/cvlar/blob/main/scripts/ks-cvlar.types.cjs) - [本仓库的 commit scopes 配置](https://github.com/kwooshung/cvlar/blob/main/scripts/ks-cvlar.scopes.cjs) -在 [commitlint.cjs](https://github.com/kwooshung/cvlar/blob/main/commitlint.cjs) 中,可以引入 `ks-cvlar.types.cjs` 和 `ks-cvlar.scopes.cjs` 两个文件,但由于 `cvlar` 的 `commit` 配置 和 `commitlint` 不同,所以您需要这样引入两个函数: +在 [.commitlintrc.cjs](https://github.com/kwooshung/cvlar/blob/main/.commitlintrc.cjs) 中,可以引入 `ks-cvlar.types.cjs` 和 `ks-cvlar.scopes.cjs` 两个文件,但由于 `cvlar` 的 `commit` 配置 和 `commitlint` 不同,所以您需要这样引入两个函数: ```javascript const { ConvertToLintTypes, ConvertToLintScopes } = require('@kwooshung/cvlar'); ``` -方便转换成 `commitlint` 的配置,具体使用方法,请参考 [commitlint.cjs](https://github.com/kwooshung/cvlar/blob/main/commitlint.cjs); +方便转换成 `commitlint` 的配置,具体使用方法,请参考 [.commitlintrc.cjs](https://github.com/kwooshung/cvlar/blob/main/.commitlintrc.cjs); ### commit message 启用翻译 diff --git a/src/utils/version/get/index.ts b/src/utils/version/get/index.ts index d4ae28d..daa8246 100644 --- a/src/utils/version/get/index.ts +++ b/src/utils/version/get/index.ts @@ -1 +1 @@ -export default '1.1.1'; +export default '1.1.2'; From c0bfa4c084dd9b8bac5ef2b9be8504305c3aa050 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E6=B0=B4=E8=8A=A6=E8=8B=87?= Date: Thu, 4 Jan 2024 09:51:05 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=A6=EF=B8=8F=20release(tag):=20new?= =?UTF-8?q?=20version=201.1.3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelogs/.history | 1 + changelogs/CHANGELOG.en.md | 5 +++++ changelogs/CHANGELOG.zh-cn.md | 5 +++++ changelogs/CHANGELOG.zh-tw.md | 5 +++++ package.json | 2 +- 5 files changed, 17 insertions(+), 1 deletion(-) diff --git a/changelogs/.history b/changelogs/.history index 3fafe8e..1b2cf7c 100644 --- a/changelogs/.history +++ b/changelogs/.history @@ -1,3 +1,4 @@ +1.1.3 1.1.2 1.1.1 1.1.0 diff --git a/changelogs/CHANGELOG.en.md b/changelogs/CHANGELOG.en.md index 6497ecd..e8a33f6 100644 --- a/changelogs/CHANGELOG.en.md +++ b/changelogs/CHANGELOG.en.md @@ -1,3 +1,8 @@ +## 🎉 1.1.3 `2024-01-04` +### 🐛 Fix +- Modify the path of the .Commitlintrc.cjs. The previous file name was written wrong ([#0fcbd5c](https://github.com/kwooshung/cvlar/commit/0fcbd5c0848c2a1baf3c7a52a9b762d4fe4579b7)) +- Modify the historical record file ([#ed39e58](https://github.com/kwooshung/cvlar/commit/ed39e5890ce76b5fdef37949094617963c43381d)) + ## 🎉 1.1.2 `2024-01-04` ### 🐛 Fix - Repair the demonstration picture in the document error ([#5fba958](https://github.com/kwooshung/cvlar/commit/5fba958bbd9321e0f40b0570dfc0f3912d576ed8)) diff --git a/changelogs/CHANGELOG.zh-cn.md b/changelogs/CHANGELOG.zh-cn.md index c07a288..4643deb 100644 --- a/changelogs/CHANGELOG.zh-cn.md +++ b/changelogs/CHANGELOG.zh-cn.md @@ -1,3 +1,8 @@ +## 🎉 1.1.3 `2024-01-04` +### 🐛 Fix +- 修改.commitlintrc.cjs的路径。以前的文件名是写错误的 ([#0fcbd5c](https://github.com/kwooshung/cvlar/commit/0fcbd5c0848c2a1baf3c7a52a9b762d4fe4579b7)) +- 修改历史记录文件 ([#ed39e58](https://github.com/kwooshung/cvlar/commit/ed39e5890ce76b5fdef37949094617963c43381d)) + ## 🎉 1.1.2 `2024-01-04` ### 🐛 Fix - 在文档错误中修复演示图片 ([#5fba958](https://github.com/kwooshung/cvlar/commit/5fba958bbd9321e0f40b0570dfc0f3912d576ed8)) diff --git a/changelogs/CHANGELOG.zh-tw.md b/changelogs/CHANGELOG.zh-tw.md index 0bd5d57..e991d77 100644 --- a/changelogs/CHANGELOG.zh-tw.md +++ b/changelogs/CHANGELOG.zh-tw.md @@ -1,3 +1,8 @@ +## 🎉 1.1.3 `2024-01-04` +### 🐛 Fix +- 修改.commitlintrc.cjs的路徑。以前的文件名是寫錯誤的 ([#0fcbd5c](https://github.com/kwooshung/cvlar/commit/0fcbd5c0848c2a1baf3c7a52a9b762d4fe4579b7)) +- 修改歷史記錄文件 ([#ed39e58](https://github.com/kwooshung/cvlar/commit/ed39e5890ce76b5fdef37949094617963c43381d)) + ## 🎉 1.1.2 `2024-01-04` ### 🐛 Fix - 在文檔錯誤中修復演示圖片 ([#5fba958](https://github.com/kwooshung/cvlar/commit/5fba958bbd9321e0f40b0570dfc0f3912d576ed8)) diff --git a/package.json b/package.json index e2cc69b..4da5928 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kwooshung/cvlar", - "version": "1.1.2", + "version": "1.1.3", "title": "cvlar", "description": "`Cvlar` is an open-source tool combining commit conventions, version control, auto-changelogs, and release automation for streamlined Git workflows.", "private": false,