ci: fix commitlint CI failure

This commit is contained in:
Taimoor Zaeem
2025-06-17 18:10:37 -05:00
committed by Steve Chavez
parent bc99ec8285
commit 0b69ad0e65
+4 -2
View File
@@ -46,7 +46,9 @@ jobs:
- name: Run commitlint (check locally with `nix-shell --run postgrest-commitlint`)
run: |
# Fetch target branch explicitly
git fetch origin ${{ github.base_ref }}
# For PRs event -> github.base_ref
# For push event -> github.ref_name
git fetch origin ${{ github.base_ref || github.ref_name }}
# Run commitlint
postgrest-commitlint --from origin/${{ github.base_ref }} --to HEAD
postgrest-commitlint --from origin/${{ github.base_ref || github.ref_name }} --to HEAD