diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml new file mode 100644 index 00000000..3b153fd7 --- /dev/null +++ b/.github/workflows/commit-lint.yml @@ -0,0 +1,22 @@ +name: Commit Lint + +on: + pull_request: + branches: [main, master] + +permissions: + contents: read + +jobs: + commit-lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + - uses: actions/setup-python@v5 + with: + python-version: "3.12" + - run: pip install commitizen + - name: Lint commits + run: cz check --rev-range origin/master..HEAD