From 3f334e98ef3d90618ad2294385b49c6ef53abd43 Mon Sep 17 00:00:00 2001 From: Stanislav Bogatyrev Date: Wed, 22 Mar 2023 09:24:22 +0300 Subject: [PATCH] [#158] Fix gitlint run in pre-commit under CI Wrong stage was used. It still may run gitlint against only latest commit in PR. Signed-off-by: Stanislav Bogatyrev --- .gitlint | 4 ++-- .pre-commit-config.yaml | 1 + .woodpecker/pre-commit.yml | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlint b/.gitlint index 96cf3ed8f..7cf8a703c 100644 --- a/.gitlint +++ b/.gitlint @@ -1,6 +1,6 @@ [general] -fail-without-commits=true -regex-style-search=true +fail-without-commits=True +regex-style-search=True contrib=CC1 [title-match-regex] diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 2e9744f55..b79cc1e7a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -7,6 +7,7 @@ repos: hooks: - id: gitlint stages: [commit-msg] + - id: gitlint-ci - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 diff --git a/.woodpecker/pre-commit.yml b/.woodpecker/pre-commit.yml index debe0cba9..231594041 100644 --- a/.woodpecker/pre-commit.yml +++ b/.woodpecker/pre-commit.yml @@ -8,7 +8,7 @@ pipeline: image: git.frostfs.info/truecloudlab/frostfs-ci:v0.36 commands: - export HOME="$(getent passwd $(id -u) | cut '-d:' -f6)" - - pre-commit run + - pre-commit run --hook-stage manual unit: image: git.frostfs.info/truecloudlab/frostfs-ci:v0.36 -- 2.45.2