Skip to content

fix: html report download file extension problem#37

Merged
yifancong merged 2 commits intomainfrom
fix/html-report-download
Mar 3, 2026
Merged

fix: html report download file extension problem#37
yifancong merged 2 commits intomainfrom
fix/html-report-download

Conversation

@yifancong
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings March 3, 2026 11:06
@github-actions
Copy link
Copy Markdown

github-actions bot commented Mar 3, 2026

Rsdoctor Bundle Diff Analysis

Found 2 projects in monorepo, 2 projects with changes.

📊 Quick Summary
Project Total Size Change
rsbuild-demo 190.4 KB -
rsbuild-demo2 190.3 KB -
📋 Detailed Reports (Click to expand)

📁 rsbuild-demo

Path: examples/rsbuild-demo/dist/.rsdoctor/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 190.4 KB - -
📄 JavaScript 188.5 KB - -
🎨 CSS 345.0 B - -
🌐 HTML 374.0 B - -
📁 Other Assets 1.2 KB - -

📁 rsbuild-demo2

Path: examples/rsbuild-demo2/dist/.rsdoctor/rsdoctor-data.json

⚠️ No baseline data found - Unable to perform comparison analysis

Metric Current Baseline Change
📊 Total Size 190.3 KB - -
📄 JavaScript 188.4 KB - -
🎨 CSS 345.0 B - -
🌐 HTML 374.0 B - -
📁 Other Assets 1.2 KB - -

Generated by Rsdoctor GitHub Action

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts how GitHub Action artifacts are named (removing the source file extension from the artifact name) to improve artifact lookup/download behavior, and updates the compiled dist bundle accordingly.

Changes:

  • Remove file-extension suffix from uploaded artifact names in uploadArtifact.
  • Update downloadArtifactByCommitHash to search for artifacts using the new (extension-less) naming scheme.
  • Minor cleanup in an example React app and rebuild of dist/index.js.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/upload.ts Stops appending the file extension to the artifact name during upload.
src/download.ts Updates expected artifact name format to match the new upload naming scheme.
examples/rsbuild-demo2/src/App.tsx Removes a duplicated/extra “info-section” block from the demo UI.
dist/index.js Rebuilt output reflecting the updated artifact naming logic.

@yifancong yifancong changed the title Fix/html report download fix: html report download file extension problem Mar 3, 2026
@yifancong yifancong force-pushed the fix/html-report-download branch from 0ac4d2b to 388e440 Compare March 3, 2026 11:50
@yifancong yifancong enabled auto-merge (squash) March 3, 2026 11:52
@yifancong yifancong merged commit 2aaf6ea into main Mar 3, 2026
1 check passed
@yifancong yifancong deleted the fix/html-report-download branch March 3, 2026 11:52
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.

2 participants