From 85b533834c9492fbf0d15b4fc3212db3b75ef227 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jose=20Francisco=20=27Kiko=27=20Verd=C3=BA=20Gamb=C3=ADn?= Date: Mon, 13 Apr 2026 19:02:25 +0200 Subject: [PATCH] Add CI detection to skip installing hooks --- simple-git-hooks.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/simple-git-hooks.js b/simple-git-hooks.js index 9ade519..86e75c7 100644 --- a/simple-git-hooks.js +++ b/simple-git-hooks.js @@ -462,6 +462,10 @@ function skipInstall() { console.log(`[INFO] SKIP_INSTALL_SIMPLE_GIT_HOOKS is set to "${SKIP_INSTALL_SIMPLE_GIT_HOOKS}", skipping installing hook.`) return true; } + if (require('is-ci')) { + console.log(`[INFO] CI detected, skipping installing hook.`) + return true + } return false; }