ci: Don't swallow gitlint warning

Make sure it's reported somewhere readily accessible.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5192>
This commit is contained in:
L. E. Segovia 2025-01-21 10:11:19 -03:00
parent 44720cd2f4
commit 2a5758bcf5

View File

@ -35,9 +35,12 @@ endif
gitlint_req = '>= 0.18'
gitlint = find_program('gitlint', version: gitlint_req, required: false)
if gitlint.found()
run_command(gitlint, 'install-hook', check: false)
gitlint_status = run_command(gitlint, 'install-hook', check: false)
if gitlint_status.returncode() != 0
warning(gitlint_status.stderr().strip())
endif
else
message('gitlint not found or too old, please install it with your package manager or `python3 -m pip install gitlint` to enable the commit message hook')
warning('gitlint not found or too old, please install it with your package manager or `python3 -m pip install gitlint` to enable the commit message hook')
endif
pre_commit_req = '>= 3.6.0'