Skip to content

Commit

Permalink
ci: prevent incorrect pattern matching for skipping ci command
Browse files Browse the repository at this point in the history
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 <ndevos@ibm.com>
  • Loading branch information
nixpanic committed Aug 9, 2024
1 parent d06497c commit 67fe494
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 67fe494

Please sign in to comment.