Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/content/docs/configuration/conditions.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,19 @@ Here is a list of the available operators:
true if any value matches.</td>
</tr>

<tr>
<td>Glob</td>

<td>
`*=`
</td>

<td>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.</td>
</tr>

<tr>
<td>Greater Than or Equal</td>

Expand Down
3 changes: 2 additions & 1 deletion src/content/docs/configuration/data-types.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 `?`.
Expand Down