feat: propagate @netlify/build version, primary framework and its version#8049
feat: propagate @netlify/build version, primary framework and its version#8049
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughSummary by CodeRabbit
WalkthroughThe deploy request payload sent to the API now includes three metadata fields. The code imports Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
📝 Coding Plan
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 |
📊 Benchmark resultsComparing with bb81ca7
|
5d8a008 to
7df49d1
Compare
7df49d1 to
781ec18
Compare
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/utils/deploy/deploy-site.ts (1)
172-172: Remove explanatory inline comment and keep intent in code structure only.Please drop this comment; it describes behavior rather than adding non-obvious rationale.
♻️ Proposed cleanup
- // frameworks are already detected and results are memoized const frameworks = await command.project.detectFrameworks()As per coding guidelines, "Never write comments on what the code does; make the code clean and self-explanatory instead."
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@src/utils/deploy/deploy-site.ts` at line 172, Delete the inline comment "// frameworks are already detected and results are memoized" in src/utils/deploy/deploy-site.ts (it's describing behavior not rationale) and instead ensure the code intent is expressed via identifiers or structure—e.g., rely on a clearly named helper like detectFrameworks or a memoized variable such as detectedFrameworks/memoizedFrameworks inside the deploySite (or similarly named) function so no explanatory comment is needed.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In `@src/utils/deploy/deploy-site.ts`:
- Line 172: Delete the inline comment "// frameworks are already detected and
results are memoized" in src/utils/deploy/deploy-site.ts (it's describing
behavior not rationale) and instead ensure the code intent is expressed via
identifiers or structure—e.g., rely on a clearly named helper like
detectFrameworks or a memoized variable such as
detectedFrameworks/memoizedFrameworks inside the deploySite (or similarly named)
function so no explanatory comment is needed.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 9367b49d-bca2-43cf-8f85-50a91480ea35
📒 Files selected for processing (1)
src/utils/deploy/deploy-site.ts
serhalp
left a comment
There was a problem hiding this comment.
LGTM
is adding test coverage here challenging? 👁️
…uild-and-framework-version
🤖 I have created a release *beep* *boop* --- ## [24.4.0](v24.3.0...v24.4.0) (2026-03-20) ### Features * propagate @netlify/build version, primary framework and its version ([#8049](#8049)) ([1db6f6e](1db6f6e)) * support switching to a known user ([#8046](#8046)) ([e460e68](e460e68)) ### Bug Fixes * **deps:** bump h3 from 1.15.5 to 1.15.8 ([#8055](#8055)) ([7a1c8fa](7a1c8fa)) * **deps:** update dependency @netlify/dev to v4.16.3 ([#8053](#8053)) ([4460d87](4460d87)) * **deps:** update dependency @netlify/dev to v4.16.4 ([#8060](#8060)) ([d0491da](d0491da)) * **deps:** update dependency @netlify/dev-utils to v4.4.2 ([#8054](#8054)) ([bdb944f](bdb944f)) * **deps:** update dependency @netlify/dev-utils to v4.4.3 ([#8061](#8061)) ([78b5af9](78b5af9)) * **deps:** update dependency @netlify/edge-functions to v3.0.5 ([#8056](#8056)) ([6254a75](6254a75)) * **deps:** update dependency @netlify/edge-functions to v3.0.6 ([#8063](#8063)) ([7646545](7646545)) * **deps:** update dependency @netlify/functions to v5.1.4 ([#8057](#8057)) ([18d5ccb](18d5ccb)) * **deps:** update dependency @netlify/functions to v5.1.5 ([#8064](#8064)) ([77a9249](77a9249)) * **deps:** update dependency @netlify/images to v1.3.6 ([#8058](#8058)) ([06f564b](06f564b)) * **deps:** update dependency @netlify/images to v1.3.7 ([#8065](#8065)) ([12a3a3f](12a3a3f)) * **deps:** update dependency cookie to v1.1.1 ([#8037](#8037)) ([6e6bcf5](6e6bcf5)) * **deps:** update dependency envinfo to v7.21.0 ([#8039](#8039)) ([08b5fc5](08b5fc5)) * **deps:** update netlify packages ([#8047](#8047)) ([d57ce32](d57ce32)) * **deps:** update netlify packages ([#8062](#8062)) ([3006f8c](3006f8c)) * **deps:** update netlify packages ([#8067](#8067)) ([02632aa](02632aa)) * **deps:** upgrade deps to fix new vulnerabilities ([#8070](#8070)) ([e3655f9](e3655f9)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com>
🎉 Thanks for submitting a pull request! 🎉
Summary
Relies on netlify/build#6984
This adds
build_version,frameworkandframework_versionmetadata to CLI deploys so there is parity with buildbot deploys.Part of https://linear.app/netlify/issue/FRB-2141/cli-deploys-dont-set-netlifybuild-version-metadata
Part of https://linear.app/netlify/issue/FRB-1384/framework-metadata-not-passed-through-from-manual-cli-deploys
For us to review and ship your PR efficiently, please perform the following steps:
passes our tests.
A picture of a cute animal (not mandatory, but encouraged)