Skip to content

Commit

Permalink
chore: use commit of main
Browse files Browse the repository at this point in the history
  • Loading branch information
shivaraj-bh committed Sep 24, 2024
1 parent cc4340b commit 9c6e394
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion dev/flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,16 @@
text = ''
default_branch=$(git remote show origin | grep 'HEAD branch' | cut -d' ' -f5)
# Get the latest commit on the default branch
latest_default_commit=$(git rev-parse origin/"$default_branch")
commit_count=2
if [ "$commit_count" -eq 0 ]; then
echo "No commits to check between $default_branch and HEAD."
else
echo "Checking $commit_count commit(s)..."
cz check --rev-range "$default_branch"..HEAD
cz check --rev-range "$latest_default_commit"..HEAD
fi
'';
};
Expand Down

0 comments on commit 9c6e394

Please sign in to comment.