fix gitlint run in CI #158

Merged
realloc merged 1 commit from realloc/frostfs-node:fix/gitlint into master 2023-03-22 08:58:35 +00:00
3 changed files with 4 additions and 3 deletions

View file

@ -1,6 +1,6 @@
[general] [general]
fail-without-commits=true fail-without-commits=True
Review

The official doc mentions small letters, do we need this change?
https://jorisroovers.com/gitlint/configuration/

The official doc mentions small letters, do we need this change? https://jorisroovers.com/gitlint/configuration/
Review

Agree, but the internal representation uses capital letters, so the warning shown from binary request changes with capital letters =) Both ways work.

DEBUG: gitlint.cli Configuration
config-path: /home/realloc/projects/tcl-realloc/frostfs-node/.gitlint
[GENERAL]
extra-path: None
contrib: ['CC1']
ignore: 
ignore-merge-commits: True
ignore-fixup-commits: True
ignore-fixup-amend-commits: True
ignore-squash-commits: True
ignore-revert-commits: True
ignore-stdin: False
staged: False
fail-without-commits: True
regex-style-search: True
verbosity: 3
debug: True

Agree, but the internal representation uses capital letters, so the warning shown from binary request changes with capital letters =) Both ways work. ``` DEBUG: gitlint.cli Configuration config-path: /home/realloc/projects/tcl-realloc/frostfs-node/.gitlint [GENERAL] extra-path: None contrib: ['CC1'] ignore: ignore-merge-commits: True ignore-fixup-commits: True ignore-fixup-amend-commits: True ignore-squash-commits: True ignore-revert-commits: True ignore-stdin: False staged: False fail-without-commits: True regex-style-search: True verbosity: 3 debug: True ```
regex-style-search=true regex-style-search=True
contrib=CC1 contrib=CC1
[title-match-regex] [title-match-regex]

View file

@ -7,6 +7,7 @@ repos:
hooks: hooks:
- id: gitlint - id: gitlint
stages: [commit-msg] stages: [commit-msg]
- id: gitlint-ci
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.4.0

View file

@ -8,7 +8,7 @@ pipeline:
image: git.frostfs.info/truecloudlab/frostfs-ci:v0.36 image: git.frostfs.info/truecloudlab/frostfs-ci:v0.36
commands: commands:
- export HOME="$(getent passwd $(id -u) | cut '-d:' -f6)" - export HOME="$(getent passwd $(id -u) | cut '-d:' -f6)"
- pre-commit run - pre-commit run --hook-stage manual
unit: unit:
image: git.frostfs.info/truecloudlab/frostfs-ci:v0.36 image: git.frostfs.info/truecloudlab/frostfs-ci:v0.36