diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-12-14 08:57:15 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2022-12-14 08:57:30 +0100 |
commit | e627965e117927beb7bc8c3d99cf13a98702f430 (patch) | |
tree | 853f84db27bb81ba3d15d6d9df99649ac8a719fa | |
parent | 09838ef5295f5d30ae3ab06396f3453973673142 (diff) |
Replace block-fixup job with gitlint
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | .github/workflows/fixupmerge.yml | 12 | ||||
-rw-r--r-- | .github/workflows/gitlint.yml | 16 |
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 |