diff --git a/.github/workflows/lint-commits.yml b/.github/workflows/lint-commits.yml new file mode 100644 index 0000000..a756c01 --- /dev/null +++ b/.github/workflows/lint-commits.yml @@ -0,0 +1,30 @@ +name: Lint Commits + +on: + workflow_call: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: lint-commits-${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + pull-requests: read + +jobs: + lint-commits: + runs-on: ubuntu-22.04 + steps: + - name: Check out repository + uses: actions/checkout@v6 + with: + fetch-depth: 0 + + - name: Lint commit messages + uses: wagoid/commitlint-github-action@v6 + with: + configFile: commitlint.config.cjs