mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-18 11:00:25 +00:00
ci: always fetch GIT_SINCE for commitlint
When running the commitlint CI job, the branch that the PR is based on may not be available. That makes it impossible for commitlint to detect the changes between the HEAD of the branch, and the commits in the PR. By fetching GIT_SINCE unconditionally, commitlint should be able to detect the changes and only run the tests against the commits that were added through the PR. Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
parent
b864afd6d7
commit
35c5afcd3e
1
Makefile
1
Makefile
@ -120,6 +120,7 @@ check-env:
|
|||||||
@./scripts/check-env.sh
|
@./scripts/check-env.sh
|
||||||
|
|
||||||
commitlint:
|
commitlint:
|
||||||
|
git fetch -v $(shell cut -d/ -f1 <<< "$(GIT_SINCE)") $(shell cut -d/ -f2- <<< "$(GIT_SINCE)")
|
||||||
commitlint --from $(GIT_SINCE)
|
commitlint --from $(GIT_SINCE)
|
||||||
|
|
||||||
.PHONY: cephcsi
|
.PHONY: cephcsi
|
||||||
|
Loading…
Reference in New Issue
Block a user