From b30223ddfad9d29b008b185f780f22884ba208ce Mon Sep 17 00:00:00 2001 From: "Luke W. Johnston" Date: Thu, 27 Mar 2025 18:33:20 +0100 Subject: [PATCH] fix: :hammer: the `check-commits` recipe wasn't correctly checking them --- justfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/justfile b/justfile index 3248510..b125674 100644 --- a/justfile +++ b/justfile @@ -34,10 +34,10 @@ build-website: check-commits: #!/bin/zsh branch_name=$(git rev-parse --abbrev-ref HEAD) - number_of_commits=$(git rev-list --count HEAD ^$branch_name) + number_of_commits=$(git rev-list --count HEAD ^main) if [[ ${branch_name} != "main" && ${number_of_commits} -gt 0 ]] then poetry run cz check --rev-range main..HEAD else - echo "Not on main or haven't committed yet." + echo "Can't either be on ${branch_name} or have more than ${number_of_commits}." fi