From 620595671f8b80dab605e790e407e22421bf105e Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Tue, 31 May 2022 09:53:18 +0200 Subject: Add workflow to lint commit messages Signed-off-by: Matthias Beyer --- .github/workflows/commit-lint.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/commit-lint.yml 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 -- cgit v1.2.3