From 24595e77f70146a63d9aa64cc35747ba12775729 Mon Sep 17 00:00:00 2001 From: Vesna Date: Tue, 22 Dec 2020 14:25:45 +0100 Subject: [PATCH 1/2] NGSTACK-486 add *.ini.append.php to captain hook --- captainhook.template.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/captainhook.template.json b/captainhook.template.json index 575191e30..42799997a 100644 --- a/captainhook.template.json +++ b/captainhook.template.json @@ -30,7 +30,10 @@ "action": "\\CaptainHook\\App\\Hook\\Composer\\Action\\CheckLockFile" }, { - "action": "\\Netgen\\GitHooks\\Action\\PHPCSFixer" + "action": "\\Netgen\\GitHooks\\Action\\PHPCSFixer", + "options": { + "allowed_files": ["/^.*\\.(ini\\.append\\.php)$/"] + } }, { "action": "\\Netgen\\GitHooks\\Action\\CheckLockFileCommitted", From ffa875be6843f3b65559d3a35a0f3bd4fa722de1 Mon Sep 17 00:00:00 2001 From: Vesna Date: Wed, 23 Dec 2020 12:26:11 +0100 Subject: [PATCH 2/2] NGSTACK-486 rename allowed to excluded and githooks version bump --- captainhook.template.json | 2 +- composer.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/captainhook.template.json b/captainhook.template.json index 42799997a..fb174672b 100644 --- a/captainhook.template.json +++ b/captainhook.template.json @@ -32,7 +32,7 @@ { "action": "\\Netgen\\GitHooks\\Action\\PHPCSFixer", "options": { - "allowed_files": ["/^.*\\.(ini\\.append\\.php)$/"] + "excluded_files": ["/^.*\\.ini\\.append\\.php$/"] } }, { diff --git a/composer.json b/composer.json index 66ea1bd3e..a76935afd 100644 --- a/composer.json +++ b/composer.json @@ -106,7 +106,7 @@ "predis/predis": "^1.1.3", "deployer/recipes": "^6.2", - "netgen/git-hooks": "^1.0" + "netgen/git-hooks": "^2.0" }, "conflict": { "doctrine/dbal": "2.7.0",