Skip to content

Clarify wildcard behavior in watch paths#28164

Merged
elithrar merged 1 commit intoproductionfrom
opencode/issue27710-20260206201942
Feb 13, 2026
Merged

Clarify wildcard behavior in watch paths#28164
elithrar merged 1 commit intoproductionfrom
opencode/issue27710-20260206201942

Conversation

@ask-bonk
Copy link
Contributor

@ask-bonk ask-bonk bot commented Feb 6, 2026

Here's a summary of the changes made to src/content/docs/pages/configuration/build-watch-paths.mdx:

Problem: The documentation was misleading about how the * wildcard works in build watch paths. Users expected standard shell glob behavior where * does not match path separators (/), meaning dir/* would only match files directly inside dir/ but not in nested subdirectories. The wildcard note also used a branch-matching example that was confusing in a file path context.

Changes made:

  1. Clarified wildcard behavior: Rewrote the :::note[Wildcard syntax] callout to explicitly state that * matches including path separators (/). Added concrete examples showing that docs/* matches files at any nesting depth (docs/README.md, docs/guides/setup.md, docs/guides/advanced/config.md).

  2. Removed confusing branch example: The old note used a branch-matching example (fix/* matching branch names) which was out of place on a file path documentation page. Replaced it with file path examples relevant to the actual use case.

  3. Improved examples section:

    • Gave each example a descriptive heading instead of generic "Example 1/2/3" names.
    • Added explicit mention that patterns match nested subdirectories with concrete file path examples.
    • Added a new fourth example showing how to combine include/exclude to match a directory but exclude a subdirectory within it.
  4. Fixed minor typo: "a empty push event" -> "an empty push event".

Closes #27710

github run

Co-authored-by: elithrar <elithrar@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Feb 6, 2026

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/pages/ @cloudflare/workers-docs, @GregBrimble, @WalshyDev, @aninibread, @irvinebroque, @cloudflare/pcx-technical-writing

@elithrar elithrar enabled auto-merge (squash) February 6, 2026 20:24
@DaviDevMod
Copy link

This is wild! (no pun intended)

However I'm not sure it's a real fix.
In the issue I stated "dir/* doesn't recursevely includes subdirectories."
The fact that now we have docs about nested directories is nice. But I hope the docs are accurate. I'll test again whether dir/* actually includes subdirectories.

@elithrar elithrar merged commit 0f75950 into production Feb 13, 2026
12 checks passed
@elithrar elithrar deleted the opencode/issue27710-20260206201942 branch February 13, 2026 21:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Using windcard in paths

8 participants