Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
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
3 changes: 3 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env sh
. "$(dirname "$0")/_/husky.sh"
bash .husky/run-llms-and-commit.sh
19 changes: 19 additions & 0 deletions .husky/run-llms-and-commit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

set -e

python3 .helper-scripts/llms/generate_llms_full.py

if [ -f llms-full.txt ]; then
git add llms-full.txt

if ! git diff --cached --quiet; then
git commit -m "chore: auto-update llms-full.txt"
git push
else
echo "⚠️ No updates detected on file"
fi
else
echo "❌ llms-full.txt not found. Aborting push."
exit 1
fi
Loading