From c70aff256a75f9d6cd846ae4174073dfe4ba52eb Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Mon, 23 Feb 2026 16:32:34 -0800 Subject: [PATCH] Fix mikado-branch-invariant-check not validating incoming commits MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The commit-msg hook had `pass_filenames: false`, which prevented pre-commit from passing the commit message file path. Without it, the hook only validated existing branch history and never checked the incoming commit against ordering rules — plan-after-impl was silently accepted. Remove `pass_filenames: false` so the pending commit is included in invariant validation. Co-Authored-By: Claude Opus 4.6 --- .pre-commit-config.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 758ca88..9bf1fd8 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -117,7 +117,6 @@ repos: entry: mise run mikado-branch-invariant-check language: system always_run: true - pass_filenames: false stages: [commit-msg] # Documentation validation