feat: read frontmatter scalars from metadata.* with top-level fallback#162
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughAdds ChangesBack-compat metadata.* frontmatter reader
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related issues
Suggested reviewers
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 014ab69 ☁️ Nx Cloud last updated this comment at |
|
View your CI Pipeline Execution ↗ for commit 014ab69 ☁️ Nx Cloud last updated this comment at |
Adds
readScalarField(fm, key), which reads a skill frontmatter scalar frommetadata.<key>and falls back to the top-level<key>. A string undermetadatawins; non-stringmetadatavalues fall back to the top level.Wires it into the frontmatter readers:
scanner.ts—type,frameworkstaleness.ts—library_versioncommands/validate.ts—type(frameworkrequirescheck)Backward-compatible: top-level scalars resolve as before;
metadata.*-nested scalars now also resolve. Array fields (sources,requires) stay top-level.Closes #159
Summary by CodeRabbit
Release Notes