diff --git a/.github/workflows/pull-request-commit-lint.yml b/.github/workflows/pull-request-commit-lint.yml new file mode 100644 index 0000000..9d03a20 --- /dev/null +++ b/.github/workflows/pull-request-commit-lint.yml @@ -0,0 +1,9 @@ +name: Lint Commit Messages +on: [pull_request] + +jobs: + commitlint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: wagoid/commitlint-github-action@v5 \ No newline at end of file diff --git a/README.md b/README.md index ced24fe..ead10a9 100644 --- a/README.md +++ b/README.md @@ -53,3 +53,4 @@ pnpm i * [Husky](https://www.npmjs.com/package/husky) + hooks: * pre-commit: lint and test * commit-msg: conventional commit message +* [CommitLint](https://www.conventionalcommits.org/en/v1.0.0/) \ No newline at end of file