Skip to content

Commit

Permalink
Fix copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Droniu committed Nov 13, 2023
1 parent 42fa495 commit 29500e4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

# Maximum allowed branch name length (cloud limit)
# Maximum allowed branch name length (deployment instance name limit)
MAX_LENGTH=37

# Check if the branch name length exceeds the maximum allowed length
branch_name=$(git symbolic-ref --short HEAD)
if [ ${#branch_name} -gt $MAX_LENGTH ]; then
echo "⚠️ Warning: Branch name '$branch_name' exceeds the maximum allowed length of $MAX_LENGTH characters."
echo "⚠️ Cloud instance will not be able to deploy."
echo "⚠️ The deployment instance will not be created."
fi

npm run check-types
Expand Down

0 comments on commit 29500e4

Please sign in to comment.