summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-11-08 15:19:56 +0100
committerMatthias Beyer <mail@beyermatthias.de>2022-11-08 15:19:56 +0100
commitb13005d24f322d91e26f6343665128ca431e96fa (patch)
treefc79828b4b354418e623baef004e5fb06ad8aa54
parent6c4a4e33c2a2939d67e10f5bcc6c181c2879c2e9 (diff)
Add commit-lint workflow
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r--.github/workflows/commit-lint.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/commit-lint.yml b/.github/workflows/commit-lint.yml
new file mode 100644
index 0000000..5e6e22d
--- /dev/null
+++ b/.github/workflows/commit-lint.yml
@@ -0,0 +1,25 @@
+on:
+ pull_request:
+
+name: Pull Request Checks
+
+jobs:
+ block-fixup:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v3
+ - name: Block fixup commit merge
+ uses: 13rac1/block-fixup-merge-action@v2.0.0
+
+ commit-lint:
+ runs-on: ubuntu-latest
+ if: github.event_name == 'pull_request'
+ steps:
+ - uses: actions/checkout@v3
+ with:
+ fetch-depth: 0
+ - uses: actions/setup-python@v4
+ with:
+ python-version: '3.x'
+ - run: pip install gitlint
+ - run: gitlint --commits $(git merge-base origin/master HEAD)..HEAD