Skip to content

docs(scopes): document the scopes.barrier_files setting#12135

Open
jd wants to merge 1 commit into
mainfrom
devs/jd/jd/mrgfy-8074-docs-for-featqueue-derive-the-all-scopes-barrier-from-config/document-scopes-barrier-files-setting--739a941f
Open

docs(scopes): document the scopes.barrier_files setting#12135
jd wants to merge 1 commit into
mainfrom
devs/jd/jd/mrgfy-8074-docs-for-featqueue-derive-the-all-scopes-barrier-from-config/document-scopes-barrier-files-setting--739a941f

Conversation

@jd

@jd jd commented Jul 17, 2026

Copy link
Copy Markdown
Member

Document the new scopes.barrier_files merge-queue config setting, the
config-driven producer of the all_scopes barrier flag that the scopes
API / mergify ci scopes-send --all already set explicitly.

Changes to src/content/docs/merge-queue/scopes.mdx:

  • Add scopes.barrier_files to the top-level keys list, alongside
    source, merge_queue_scope, and capacities.

  • Restructure "Declaring a pull request impacts every scope" to present
    both producers of the flag: a new "Barrier files (file-pattern scopes)"
    subsection for the config-driven path, and "Marking a barrier on upload
    (manual scopes)" for the existing API/CLI path. The shared "Barrier
    behavior in the queue" subsection covers the queue semantics for both.

  • The barrier_files subsection documents the constraints from the engine
    schema: at least one explicit include pattern is required (an empty or
    exclude-only filter would silently serialize the whole queue, so it is
    rejected in both the engine and the JSON schema), and it is valid only
    with a files source (a manual source reports the flag via the API; a
    source with no scopes has nothing to impact). Mentions the dashboard
    "Barrier files" editor in the queue-configuration Scopes section.

Also corrects two pre-existing errors on adjacent lines surfaced while
documenting the config keys: mergify scopes-send -> mergify ci scopes-send, and the files source description's plural includes /
excludes -> singular include / exclude (the real key names).

MRGFY-8074

Copilot AI review requested due to automatic review settings July 17, 2026 09:27
@mergify
mergify Bot had a problem deploying to Mergify Merge Protections July 17, 2026 09:27 Failure
@mergify

mergify Bot commented Jul 17, 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]
    • author = mergify-ci-bot

🔴 🔎 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 17, 2026 09:29

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.

Pull request overview

Documents the new scopes.barrier_files Merge Queue configuration key and clarifies how the all_scopes (“barrier”) behavior can be produced for both file-pattern scopes and manual scopes.

Changes:

  • Fix CLI command reference to mergify ci scopes-send.
  • Correct file-pattern scope key names from includes/excludes to include/exclude.
  • Add and document scopes.barrier_files, including constraints and queue barrier behavior, and restructure the “impacts every scope” section accordingly.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/content/docs/merge-queue/scopes.mdx Outdated
Document the new `scopes.barrier_files` merge-queue config setting, the
config-driven producer of the `all_scopes` barrier flag that the scopes
API / `mergify ci scopes-send --all` already set explicitly.

Changes to src/content/docs/merge-queue/scopes.mdx:

- Add `scopes.barrier_files` to the top-level keys list, alongside
  `source`, `merge_queue_scope`, and `capacities`.

- Restructure "Declaring a pull request impacts every scope" to present
  both producers of the flag: a new "Barrier files (file-pattern scopes)"
  subsection for the config-driven path, and "Marking a barrier on upload
  (manual scopes)" for the existing API/CLI path. The shared "Barrier
  behavior in the queue" subsection covers the queue semantics for both.

- The barrier_files subsection documents the constraints from the engine
  schema: at least one explicit `include` pattern is required (an empty or
  exclude-only filter would silently serialize the whole queue, so it is
  rejected in both the engine and the JSON schema), and it is valid only
  with a `files` source (a `manual` source reports the flag via the API; a
  source with no scopes has nothing to impact). Mentions the dashboard
  "Barrier files" editor in the queue-configuration Scopes section.

Also corrects two pre-existing errors on adjacent lines surfaced while
documenting the config keys: `mergify scopes-send` -> `mergify ci
scopes-send`, and the `files` source description's plural `includes` /
`excludes` -> singular `include` / `exclude` (the real key names).

MRGFY-8074

Change-Id: I739a941f843840b639abe3028096f27f361f05ab
@jd
jd force-pushed the devs/jd/jd/mrgfy-8074-docs-for-featqueue-derive-the-all-scopes-barrier-from-config/document-scopes-barrier-files-setting--739a941f branch from 3bdecec to 122af0d Compare July 17, 2026 10:39
@jd

jd commented Jul 17, 2026

Copy link
Copy Markdown
Member Author

Revision history

# Type Changes Reason Date
1 initial 3bdecec 2026-07-17 10:39 UTC
2 content 3bdecec → 122af0d (raw) 2026-07-17 10:39 UTC

@mergify
mergify Bot had a problem deploying to Mergify Merge Protections July 17, 2026 10:39 Failure
Comment thread src/content/docs/merge-queue/scopes.mdx
Comment thread src/content/docs/merge-queue/scopes.mdx
@jd
jd marked this pull request as ready for review July 17, 2026 14:05
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