[PATCH b4] config: accept prep-pre-flight-checks from .b4-config
Clément Le Goffic <[email protected]> Fri, 10 Jul 2026 17:14:06 +0200
| Newsgroups | org.kernel.linux.tools |
|---|---|
| Message-ID | <20260710-b4-config-pre-flight-checks-v1-1-ab16cf14a00c@baylibre.com> |
The .b4-config file is a convenient way to share project-level b4 configuration among contributors via version control. However, only keys matching a set of glob patterns are currently accepted from it (see wtglobs in _setup_main_config). The prep-pre-flight-checks key, which controls which pre-flight checks are enabled or disabled before sending a series, is not matched by any of the existing patterns. The closest glob, 'prep-*-check-cmd', only matches keys ending in '-check-cmd', not '-checks'. As a result, setting prep-pre-flight-checks in .b4-config has no effect: the value is silently dropped and the default 'enable-all' is used instead. Add 'prep-pre-flight-checks' to the wtglobs list so it can be set from .b4-config, allowing projects to disable checks (e.g. needs-checking, needs-auto-to-cc) that are not relevant to their workflow and share that decision via version control. Signed-off-by: Clément Le Goffic <[email protected]> Assisted-by: huggingface:zai-org/GLM-5.2 --- src/b4/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/b4/__init__.py b/src/b4/__init__.py index d7b41ee45dad..a2f1a008d41b 100644 --- a/src/b4/__init__.py +++ b/src/b4/__init__.py @@ -3847,6 +3847,7 @@ def _setup_main_config(cmdargs: Optional[argparse.Namespace] = None) -> None: topdir = git_get_toplevel() wtglobs = [ 'prep-*-check-cmd', + 'prep-pre-flight-checks', 'review-*-check-cmd', 'send-*', '*mask', --- base-commit: 4217c3e5d3e1eb259626142fd71b91ec6d5e3d1e change-id: 20260710-b4-config-pre-flight-checks-80dd6226c614 Best regards, -- Clément Le Goffic <[email protected]>