summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/fixupmerge.yml12
-rw-r--r--.github/workflows/gitlint.yml16
2 files changed, 16 insertions, 12 deletions
diff --git a/.github/workflows/fixupmerge.yml b/.github/workflows/fixupmerge.yml
deleted file mode 100644
index 8e2f1c3..0000000
--- a/.github/workflows/fixupmerge.yml
+++ /dev/null
@@ -1,12 +0,0 @@
-on: [pull_request]
-
-name: Git Checks
-
-jobs:
- block-fixup:
- runs-on: ubuntu-latest
-
- steps:
- - uses: actions/checkout@v3.1.0
- - name: Block Fixup Commit Merge
- uses: 13rac1/block-fixup-merge-action@v2.0.0
diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml
new file mode 100644
index 0000000..294586c
--- /dev/null
+++ b/.github/workflows/gitlint.yml
@@ -0,0 +1,16 @@
+on: [pull_request]
+
+name: Git Checks
+
+jobs:
+ commit-lint:
+ runs-on: ubuntu-latest
+ 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