From c6ee6a18a87827c1cbe78da22325648efa2bc4c0 Mon Sep 17 00:00:00 2001 From: Guillaume Risbourg Date: Mon, 3 Nov 2025 09:44:12 +0100 Subject: [PATCH] docs: document new `*=` operator This adds documentation for the newly added "glob" operator. This operator was partly documented in the "data-types", so documenting the new "*=" operator in the conditions was the only thing required. Fixes MRGFY-6037 Change-Id: If5b344ad584bc0e01b7d978b1a6b819b6ba342c0 --- src/content/docs/configuration/conditions.mdx | 13 +++++++++++++ src/content/docs/configuration/data-types.mdx | 3 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/src/content/docs/configuration/conditions.mdx b/src/content/docs/configuration/conditions.mdx index ddece370cb..9478599d10 100644 --- a/src/content/docs/configuration/conditions.mdx +++ b/src/content/docs/configuration/conditions.mdx @@ -163,6 +163,19 @@ Here is a list of the available operators: true if any value matches. + + Glob + + + `*=` + + + This operator checks for matching path using [Unix-style pathname + pattern expansion](/configuration/data-types/#globs). + If the target attribute type is a list, each element of the list is + matched against the value and the condition is true if any value matches. + + Greater Than or Equal diff --git a/src/content/docs/configuration/data-types.mdx b/src/content/docs/configuration/data-types.mdx index 780d20bd4b..037ec1ed7a 100644 --- a/src/content/docs/configuration/data-types.mdx +++ b/src/content/docs/configuration/data-types.mdx @@ -44,15 +44,16 @@ pull_request_rules: You can use globs expressions with matching operators in your [conditions](/configuration/conditions). +{/* eslint-disable */} | Pattern | Description | |--------------------|-------------| | `**` (entire segment) | Matches any number of file or directory segments, including zero. | | `*` (entire segment) | Matches one file or directory segment. | | `*` (part of a segment) | Matches any number of non-separator characters, including zero. | | `?` | Matches one non-separator character. | -{/* eslint-disable-next-line */} | `[seq]` | Matches one character in `seq`, where `seq` is a sequence of characters. Range expressions are supported; e.g., `[a-z]` matches any lowercase ASCII letter. Multiple ranges can be combined, e.g. `[a-zA-Z0-9_]` matches any ASCII letter, digit, or underscore. | | `[!seq]` | Matches one character **not** in `seq`, where `seq` follows the same rules as above. | +{/* eslint-enable */} :::note For a literal match, wrap the meta-characters in brackets. For example, `[?]` matches the character `?`.