Skip to content

fix(git): distinguish two-dot filenames from parent paths - #2374

Open
lfhwnqe wants to merge 1 commit into
changesets:mainfrom
lfhwnqe:fix/git-include-dot-prefixed-package-paths
Open

lfhwnqe wants to merge 1 commit into
changesets:mainfrom
lfhwnqe:fix/git-include-dot-prefixed-package-paths

Conversation

@lfhwnqe

@lfhwnqe lfhwnqe commented Nov 10, 2026

Copy link
Copy Markdown

Summary

Changed-file matching treats every package-relative path beginning with two dots as outside the package. If a repo explicitly includes a file like ..metadata in changedFilePatterns, a change to that file can still be missed. Check for actual parent traversal and reuse the package-relative path for glob matching.

Validation

The regression fails on main. All 37 Git package tests, repository typecheck, targeted lint and diff checks pass. Includes a patch changeset.

AI disclosure: OpenAI Codex assisted with implementation and verification.

@netlify

netlify Bot commented Nov 10, 2026

Copy link
Copy Markdown

👷 Deploy request for changesets pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 55d11b6

@changeset-bot

changeset-bot Bot commented Nov 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 55d11b6

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 6 packages
Name Type
@changesets/git Patch
@changesets/apply-release-plan Patch
@changesets/cli Patch
@changesets/read Patch
@changesets/release-utils Patch
@changesets/get-release-plan Patch

Not sure what this means? Click here to learn what changesets are.

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

@codecov

codecov Bot commented Nov 10, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.48%. Comparing base (2f6995d) to head (55d11b6).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2374   +/-   ##
=======================================
  Coverage   87.47%   87.48%           
=======================================
  Files          78       78           
  Lines        2971     2973    +2     
  Branches      853      856    +3     
=======================================
+ Hits         2599     2601    +2     
  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.

1 participant