diff options
-rw-r--r-- | .github/workflows/commit-lint.yml | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml new file mode 100644 index 00000000..679034f1 --- /dev/null +++ b/.github/workflows/commit-lint.yml @@ -0,0 +1,18 @@ +name: lint commit messages + +on: + pull_request: + +jobs: + commit-lint: + runs-on: "ubuntu-latest" + if: github.event_name == 'pull_request' + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 # fetch complete history + - uses: actions/setup-python@v3 + with: + python-version: '3.10' + - run: pip install gitlint + - run: gitlint --commits origin/main..HEAD |