Skip to content

refactor: resilience #744

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 2, 2025
Merged
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
6 changes: 3 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ check_pnpm_files() {
# Detect the lock file to determine the package manager
if [ -f "pnpm-lock.yaml" ]; then
CHECK_FUNCTIONS=(
"check_pnpm_files"
"check_pnpm_files"
)
elif [ -f "package-lock.json" ]; then
CHECK_FUNCTIONS=(
Expand All @@ -46,7 +46,7 @@ if [ -z "$UPSTREAM" ]; then
fi

## Get the list of files changed between upstream and HEAD
FILES=$(git diff --name-only $UPSTREAM..HEAD)
FILES=$(git diff --name-only "$UPSTREAM"..HEAD)

## Check each pattern and run corresponding command
for check_function in "${CHECK_FUNCTIONS[@]}"; do
Expand All @@ -57,7 +57,7 @@ for check_function in "${CHECK_FUNCTIONS[@]}"; do
echo "Detected changes in $DESCRIPTION"

## Run the corresponding command
eval "$COMMAND"
$COMMAND

if [ $? -ne 0 ]; then
echo "Command failed: $COMMAND. Aborting push."
Expand Down
Loading