Skip to content

Commit 1f1e448

Browse files
kolyshkinpolyfloyd
authored andcommitted
ci: cz: only check PR commits
Once something is merged, it does not make sense (and it's too late) to check it. So, limit the check to commits in a given PR. Signed-off-by: Kir Kolyshkin <[email protected]>
1 parent a013dd7 commit 1f1e448

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,12 @@ jobs:
2828
run: go test -test.v -race -cover ./...
2929

3030
conventional-commits:
31+
if: github.event_name == 'pull_request' # Only check PRs.
3132
runs-on: ubuntu-latest
3233

3334
steps:
3435
- uses: actions/checkout@v4
3536
with:
3637
fetch-depth: 0
3738
- run: pip3 install -U Commitizen
38-
# The commit hash here is that of the commit where we started using conventional commits.
39-
- run: cz check --rev-range deebab92..HEAD
39+
- run: cz check --rev-range origin/${{ github.base_ref }}..HEAD

0 commit comments

Comments
 (0)