Skip to content

docs: document brace alternation in glob patterns - #12281

Open
sileht wants to merge 1 commit into
mainfrom
devs/sileht/mrgfy-8393-document-glob-brace-alternation/document-brace-alternation-glob-patterns--8a2c5abb
Open

docs: document brace alternation in glob patterns#12281
sileht wants to merge 1 commit into
mainfrom
devs/sileht/mrgfy-8393-document-glob-brace-alternation/document-brace-alternation-glob-patterns--8a2c5abb

Conversation

@sileht

@sileht sileht commented Jul 31, 2026

Copy link
Copy Markdown
Member

Brace alternation (**/*.{js,ts}) works in the engine as well as in
mergify-cli, and was documented nowhere.

Document it where the glob syntax reference actually lives, in
configuration/data-types.mdx, rather than in conditions.mdx, which
only links there. Cover the surprising parts: an empty branch is
dropped, an unbalanced brace is a configuration error rather than a
literal, and patterns are capped at 128 alternatives and 32 levels of
nesting.

Link the scopes pages to that reference, which they never did, and show
the brace form for scopes.source.files.

Fixes MRGFY-8393

Brace alternation (`**/*.{js,ts}`) works in the engine as well as in
mergify-cli, and was documented nowhere.

Document it where the glob syntax reference actually lives, in
`configuration/data-types.mdx`, rather than in `conditions.mdx`, which
only links there. Cover the surprising parts: an empty branch is
dropped, an unbalanced brace is a configuration error rather than a
literal, and patterns are capped at 128 alternatives and 32 levels of
nesting.

Link the scopes pages to that reference, which they never did, and show
the brace form for `scopes.source.files`.

Fixes MRGFY-8393

Change-Id: I8a2c5abba0a84ed107f6e43a628c9eb0375ff68d
Copilot AI review requested due to automatic review settings July 31, 2026 15:02
@mergify
mergify Bot had a problem deploying to Mergify Merge Protections July 31, 2026 15:02 Failure
@mergify

mergify Bot commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🔴 2 of 6 protections blocking · waiting on 👀 reviews

Protection Waiting on
🔴 👀 Review Requirements 👀 reviews
🔴 🔎 Reviews 👀 reviews
🟢 🤖 Continuous Integration
🟢 Enforce conventional commit
🟢 📕 PR description
🟢 🚦 Auto-queue

🔴 👀 Review Requirements

Waiting for

  • #approved-reviews-by >= 2
This rule is failing.
  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • all of:
      • author = mergify-ci-bot
      • -head ~= ^docs-agent/

🔴 🔎 Reviews

Waiting for

  • #review-requested = 0
This rule is failing.
  • #review-requested = 0
  • #changes-requested-reviews-by = 0
  • #review-threads-unresolved = 0

Show 4 satisfied protections

🟢 🤖 Continuous Integration

  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

@mergify
mergify Bot requested a review from a team July 31, 2026 15:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Ready to approve

The changes are documentation-only, internally consistent, and links/anchors introduced in the diffs resolve to existing sections.

This review doesn't count toward merge requirements. Sign up for the private preview to control whether Copilot approvals count.

Pull request overview

This PR updates the docs to explicitly document brace alternation ({a,b}) as part of Mergify’s supported glob pattern syntax, and links merge-queue scope documentation back to the central glob syntax reference.

Changes:

  • Expanded the glob pattern reference to include brace alternation behavior, limits, and YAML quoting/escaping caveats.
  • Added a “Pattern Syntax” section to file-pattern scopes with an example using brace alternation and a note about invalid/unbalanced braces.
  • Linked merge-queue scopes documentation directly to the glob syntax reference.
File summaries
File Description
src/content/docs/configuration/data-types.mdx Adds brace alternation to the glob syntax reference, including examples, edge cases, and limits.
src/content/docs/merge-queue/scopes/file-patterns.mdx Adds a scoped “Pattern Syntax” section linking to the glob/brace alternation reference and demonstrates {...} usage.
src/content/docs/merge-queue/scopes.mdx Links include/exclude scope patterns to the canonical glob documentation.
Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Lite

We're testing this review assessment. Please use 👍 or 👎 to tell us if it's correct.

@sileht
sileht marked this pull request as ready for review July 31, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants