mbox series

[0/2] .b4-config: check patches with ./utils/check-package

Message ID 20241105-support-b4-v1-0-2963298c1a58@collins.com
Headers show
Series .b4-config: check patches with ./utils/check-package | expand

Message

Brandon Maier Nov. 5, 2024, 2:37 p.m. UTC
NOTE: This requires `b4` version 0.14.2 or later as earlier versions had
a bug that broke custom prep-perpatch-check-cmd[1].

This series registers check-package as a `b4` "pre-flight check"[1].
This way a patch series can be checked with `b4 prep --check`, and `b4`
will warn the developer if they try to send a patch series without
running the check.

The first patch adds support for checking patch files to check-package.

The second patch registers check-package as a b4 check-cmd.

[1] https://github.com/mricon/b4/commit/0741bc9a5b45578e4d3804588dd3f63fe4848059
[2] https://b4.docs.kernel.org/en/latest/contributor/send.html#passing-pre-flight-checks-v0-14

Signed-off-by: Brandon Maier <brandon.maier@collins.com>
---
Brandon Maier (2):
      utils/check-package: support finding files from patches
      .b4-config: check patches with ./utils/check-package

 .b4-config          |  1 +
 utils/check-package | 37 +++++++++++++++++++++++++++++++++++--
 2 files changed, 36 insertions(+), 2 deletions(-)
---
base-commit: d74a5a218fabee928abb347086648ad142f7d5a5
change-id: 20240626-support-b4-41d61b8e4d60

Best regards,