mirror of
https://github.com/ceph/ceph-csi.git
synced 2025-06-13 10:33:35 +00:00
ci: pass GITHUB_BASE_REF when running commitlint
GitHub Actions include a merge commit for the PR, which will defeat the commitlint checking of all the commits inside the PR (only the merge commit is checked). Signed-off-by: Niels de Vos <ndevos@redhat.com>
This commit is contained in:
committed by
Madhu Rajanna
parent
4e2c4ef704
commit
538e36f7a7
2
Makefile
2
Makefile
@ -148,7 +148,7 @@ commitlint: REBASE ?= 0
|
||||
commitlint:
|
||||
git fetch -v $(shell cut -d/ -f1 <<< "$(GIT_SINCE)") $(shell cut -d/ -f2- <<< "$(GIT_SINCE)")
|
||||
@test $(REBASE) -eq 0 || git -c user.name=commitlint -c user.email=commitline@localhost rebase FETCH_HEAD
|
||||
commitlint --from FETCH_HEAD
|
||||
commitlint --verbose --from $(GIT_SINCE)
|
||||
|
||||
.PHONY: cephcsi
|
||||
cephcsi: check-env
|
||||
|
Reference in New Issue
Block a user