From ec843e31ed73836b9b2e275538ba910eacb704f9 Mon Sep 17 00:00:00 2001 From: Ville Korhonen Date: Fri, 10 Apr 2026 11:20:47 +0300 Subject: [PATCH] Switch Gnitpick to Gitlint This is our preferred tool for linting git commits. Impact: patch Closes: SGE-2493 --- .github/workflows/gitlint.yml | 16 ++++++++++++++++ .github/workflows/gnitpick.yml | 28 ---------------------------- 2 files changed, 16 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/gitlint.yml delete mode 100644 .github/workflows/gnitpick.yml diff --git a/.github/workflows/gitlint.yml b/.github/workflows/gitlint.yml new file mode 100644 index 0000000..5e56c89 --- /dev/null +++ b/.github/workflows/gitlint.yml @@ -0,0 +1,16 @@ +--- +name: "Nitpick git commits" + +on: [push] + +jobs: + nitpick: + runs-on: ubuntu-latest + steps: + - name: Setup repository + uses: actions/checkout@v6 + with: + ref: ${{ github.head_ref }} + + - name: Execute git linting + uses: seravo/gitlint@v1 diff --git a/.github/workflows/gnitpick.yml b/.github/workflows/gnitpick.yml deleted file mode 100644 index 8cea527..0000000 --- a/.github/workflows/gnitpick.yml +++ /dev/null @@ -1,28 +0,0 @@ ---- -name: "Nitpick git commits" - -on: [push, pull_request] - -env: - DOMAINS: seravo.com - PYTHON_VERSION: "3.12" - -jobs: - nitpick: - runs-on: ubuntu-latest - steps: - - name: Setup repository - uses: actions/checkout@v6 - with: - ref: ${{ github.head_ref }} - - - name: Install Gnitpick - run: curl -O https://raw.githubusercontent.com/Seravo/gnitpick/master/gnitpick.py - - - name: Set up python ${{ env.PYTHON_VERSION }} - uses: actions/setup-python@v6 - with: - python-version: ${{ env.PYTHON_VERSION }} - - - name: Run gnitpick - run: python3 gnitpick.py --verbose --email-domains "${DOMAINS}"