Skip to content

docs: say that changedFilePatterns are matched per package - #2316

Open
changbaebang wants to merge 1 commit into
changesets:mainfrom
changbaebang:docs-changed-file-patterns-scope
Open

changbaebang wants to merge 1 commit into
changesets:mainfrom
changbaebang:docs-changed-file-patterns-scope

Conversation

@changbaebang

Copy link
Copy Markdown

Documents what #2256 asked: changedFilePatterns are matched against paths relative to each package's directory, not the repository root.

Added one paragraph under the existing example in both site/guide/config.md (the page linked from the issue) and the legacy docs/config-file-options.md, describing the behavior of getChangedPackagesSinceRef in packages/git/src/index.ts:

  • patterns match paths relative to the package directory (src/** matches packages/foo/src/index.ts for foo)
  • a changed file outside every package directory marks nothing
  • with nested packages, a file counts for the innermost package (packages are sorted by directory depth before matching)

Docs only, no changeset.

Closes #2256

The patterns are matched against paths relative to each package directory
(packages/git getChangedPackagesSinceRef), which the config docs never said.

Closes changesets#2256
@changeset-bot

changeset-bot Bot commented Sep 21, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: a2214a3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@netlify

netlify Bot commented Sep 21, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for changesets ready!

Name Link
🔨 Latest commit a2214a3
🔍 Latest deploy log https://app.netlify.com/projects/changesets/deploys/6ab08de6b09fde0008142892
😎 Deploy Preview https://deploy-preview-2316--changesets.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Sep 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.48%. Comparing base (c9269c0) to head (a2214a3).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2316   +/-   ##
=======================================
  Coverage   87.48%   87.48%           
=======================================
  Files          78       78           
  Lines        2973     2973           
  Branches      853      853           
=======================================
  Hits         2601     2601           
  Misses        337      337           
  Partials       35       35           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

changedFilePatterns docs feedback

1 participant