From 7620fe61df21760faa5da92608e43042ca02ee70 Mon Sep 17 00:00:00 2001 From: Test Date: Tue, 17 Mar 2026 12:18:20 +0100 Subject: [PATCH] =?UTF-8?q?fix:=20correct=20CodeScene=20API=20key=20in=20p?= =?UTF-8?q?re-push=20hook=20=E2=80=94=20use=20code=5Fhealth=20not=20averag?= =?UTF-8?q?e=5Fcode=5Fhealth?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- .husky/pre-push | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.husky/pre-push b/.husky/pre-push index 5c6d632c..5c061e99 100755 --- a/.husky/pre-push +++ b/.husky/pre-push @@ -117,7 +117,7 @@ else -H "Accept: application/json" \ "https://api.codescene.io/v2/projects/$CODESCENE_PROJECT_ID") HOTSPOT_SCORE=$(echo "$API_RESPONSE" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d['analysis']['hotspot_code_health']['now'])") - AVERAGE_SCORE=$(echo "$API_RESPONSE" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d['analysis']['average_code_health']['now'])") + AVERAGE_SCORE=$(echo "$API_RESPONSE" | python3 -c "import sys,json; d=json.load(sys.stdin); print(d['analysis']['code_health']['now'])") echo " Hotspot Code Health: $HOTSPOT_SCORE (threshold: $HOTSPOT_THRESHOLD)" echo " Average Code Health: $AVERAGE_SCORE (threshold: $AVERAGE_THRESHOLD)" python3 -c "