Revert "Check for fixup commits on CI"

This reverts commit 7652d579f5.

Not working on forks, and I don't have time to fix right now
This commit is contained in:
Jesse Duffield 2024-07-13 14:54:09 +10:00
parent b9107d5fc8
commit f2db9fa3f9
2 changed files with 0 additions and 47 deletions

View file

@ -1,25 +0,0 @@
#!/bin/sh
base_ref=$1
# Determine the base commit
base_commit=$(git merge-base HEAD origin/"$base_ref")
# Check if base_commit is set correctly
if [ -z "$base_commit" ]; then
echo "Failed to determine base commit."
exit 1
fi
echo "Base commit: $base_commit"
# Get commits with "fixup!" in the message from base_commit to HEAD
commits=$(git log -i -P --grep "fixup\!" --format="%h %s" "$base_commit..HEAD")
if [ -z "$commits" ]; then
echo "No fixup commits found."
exit 0
else
echo "Fixup commits found:"
echo "$commits"
exit 1
fi