Skip to content

Extract matchByName() utility and refactor resolve logic (#74)#80

Merged
titouanmathis merged 1 commit intomainfrom
feature/74-extract-matchbyname
Feb 27, 2026
Merged

Extract matchByName() utility and refactor resolve logic (#74)#80
titouanmathis merged 1 commit intomainfrom
feature/74-extract-matchbyname

Conversation

@titouanmathis
Copy link
Contributor

Closes #74

Extract the shared matchByName() utility from inline resolve logic into packages/core/src/utils/name-matcher.ts. Both server and site resolve executors now use this shared function.

Rebased onto main after #72 was merged.


Supersedes #79 (auto-closed when target branch was deleted).

Extract shared case-insensitive name matching into a reusable
matchByName() utility in forge-core. Refactor both core resolve
executors and CLI resolve functions to use it, eliminating
duplicated matching logic.

Closes #74

Co-authored-by: Claude <claude@anthropic.com>
@codecov
Copy link

codecov bot commented Feb 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.80%. Comparing base (56ae8a9) to head (d6d235d).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #80      +/-   ##
==========================================
- Coverage   99.80%   99.80%   -0.01%     
==========================================
  Files         223      224       +1     
  Lines        3596     3591       -5     
  Branches      833      833              
==========================================
- Hits         3589     3584       -5     
  Misses          7        7              
Flag Coverage Δ
unittests 99.80% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@titouanmathis titouanmathis merged commit 4391239 into main Feb 27, 2026
8 checks passed
@titouanmathis titouanmathis deleted the feature/74-extract-matchbyname branch February 27, 2026 16:21
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.

Extract shared matchByName() utility and refactor resolve logic

1 participant