Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update the pre push command
  • Loading branch information
krofax committed Mar 4, 2025
commit 0b21c89674b31ce159da08376a2545e24bbfc5e8
16 changes: 15 additions & 1 deletion .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,18 @@

echo "🔍 Running automatic fixes before pushing..."
pnpm fix
echo "✅ Fixes applied - your contribution is now ready for review!"

# Check if there are any changes after running fixes
if [ -n "$(git status --porcelain)" ]; then
echo "🔄 Changes detected after running fixes. Committing them automatically..."

# Stage all changes
git add .

# Create a commit with a descriptive message
git commit -m "Auto-fix: Update breadcrumbs, spelling dictionary and other automated fixes"

echo "✅ Changes committed automatically. Continuing with push..."
else
echo "✅ No changes needed. Continuing with push..."
fi