Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore(husky): ensure can run without xterm-256color (#11297)

Vinicius Lourenço4f263304f02b
diff --git a/frontend/.husky/commit-msg b/frontend/.husky/commit-msg
index 0510eb63b8..5078f03f42 100755
--- a/frontend/.husky/commit-msg
+++ b/frontend/.husky/commit-msg
@@ -5,9 +5,15 @@ cd frontend && pnpm run commitlint --edit $1
branch="$(git rev-parse --abbrev-ref HEAD)"
-color_red="$(tput setaf 1)"
-bold="$(tput bold)"
-reset="$(tput sgr0)"
+if [ -n "$TERM" ] && [ "$TERM" != "dumb" ]; then
+ color_red="$(tput setaf 1)"
+ bold="$(tput bold)"
+ reset="$(tput sgr0)"
+else
+ color_red=""
+ bold=""
+ reset=""
+fi
if [ "$branch" = "main" ]; then
echo "${color_red}${bold}You can't commit directly to the main branch${reset}"