summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <matthias.beyer@ifm.com>2022-05-31 09:53:18 +0200
committerMatthias Beyer <matthias.beyer@ifm.com>2022-08-15 17:24:26 +0200
commit620595671f8b80dab605e790e407e22421bf105e (patch)
treeddddb01e95627a4d47fbfc06dcb93b70010fcc97
parentb678a1991067abf9b1b1fdfb03a003705c93e485 (diff)
Add workflow to lint commit messagesgh-action/gitlint
Signed-off-by: Matthias Beyer <matthias.beyer@ifm.com>
-rw-r--r--.github/workflows/commit-lint.yml18
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