fix: default `git depth` breaks commitlint with 20+ commits
requested to merge gitlab-community/modelops/applied-ml/code-suggestions/ai-assist:fix-git-depth into main
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA
What does this merge request do and why?
GitLab default depth limit of 20 breaks commitlint
on MRs that are longer. https://github.com/conventional-changelog/commitlint/issues/4103
I would say that for MR pipelines, the default depth should always include CI_MERGE_REQUEST_DIFF_BASE_SHA
, but for now an easy fix is to disable the limit for lint job.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Merge request checklist
-
Tests added for new functionality. If not, please raise an issue to follow up. -
Documentation added/updated, if needed.
Edited by 🤖 GitLab Bot 🤖