Skip to content

Add auto-collapse option for large file lists in PR comments#9

Merged
NullVoxPopuli merged 3 commits intodevelopfrom
copilot/add-auto-collapse-option
Mar 4, 2026
Merged

Add auto-collapse option for large file lists in PR comments#9
NullVoxPopuli merged 3 commits intodevelopfrom
copilot/add-auto-collapse-option

Conversation

Copy link

Copilot AI commented Mar 4, 2026

PR comments with dozens of changed files become unwieldy noise. When more than 20 file rows are present, file rows should collapse into a <details> block while Total and Tarball size rows remain always visible.

Changes

  • New auto-collapse input (default: true) — when enabled and file count exceeds 20, file rows are wrapped in a <details><summary>Show files (N files)</summary> block; total rows stay visible above it
  • Both report modes updatedregression and head-only templates implement the same collapsing logic
  • auto-collapse: false disables the behavior entirely regardless of file count

Usage

- uses: pkg-size/action@v1
  with:
    auto-collapse: false  # disable if you always want the full flat table

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits March 4, 2026 19:46
Co-authored-by: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Co-authored-by: NullVoxPopuli <199018+NullVoxPopuli@users.noreply.github.com>
Copilot AI changed the title [WIP] Add auto-collapse option for PR comments Add auto-collapse option for large file lists in PR comments Mar 4, 2026
NullVoxPopuli added a commit to emberjs/ember.js that referenced this pull request Mar 4, 2026
@github-actions
Copy link

github-actions bot commented Mar 4, 2026

📊 Package size report   0.2%↑

File Before After
dist/index.js 760.3 kB 0.1%↑761.3 kB
README.md 9.3 kB 4%↑9.7 kB
Total (Includes all files) 772.3 kB 0.2%↑773.7 kB
Tarball size 203.5 kB 0.2%↑203.9 kB
Unchanged files
File Size
LICENSE 1.1 kB
package.json 1.6 kB

🤖 This report was automatically generated by pkg-size-action

NullVoxPopuli added a commit to emberjs/ember.js that referenced this pull request Mar 4, 2026
@NullVoxPopuli NullVoxPopuli marked this pull request as ready for review March 4, 2026 20:12
@NullVoxPopuli NullVoxPopuli merged commit 4c68a40 into develop Mar 4, 2026
4 checks passed
@NullVoxPopuli NullVoxPopuli deleted the copilot/add-auto-collapse-option branch March 4, 2026 20:22
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