From 2fd92573f4519cb443c4f66442a49dbe9840e213 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Fri, 9 Aug 2024 12:22:34 +0200 Subject: [PATCH] ci: prevent incorrect pattern matching for `skipping ci` command Mergify matches `body-raw` as regular expression, but that makes it difficult (if not impossible) to match the `[` in a string. Fixes: #4751 Signed-off-by: Niels de Vos --- .mergify.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.mergify.yml b/.mergify.yml index 02625e7d2..dd9fc38db 100644 --- a/.mergify.yml +++ b/.mergify.yml @@ -469,7 +469,8 @@ pull_request_rules: # the PR as Draft so that CI jobs do not automatically run anymore. - name: detect [skip ci] in the PR description conditions: - - "body-raw~=[skip ci]" + # this should be \[skip\W+ci\], but Mergify does not accept that + - "body-raw~=skip ci" actions: edit: draft: true