Skip to content

fix: strip npm warn/notice lines from Vally PR comment output - #2455

Merged
aaronpowell merged 1 commit into
mainfrom
aaronpowell-clean-pr-review-npm-output
Jul 28, 2026
Merged

fix: strip npm warn/notice lines from Vally PR comment output#2455
aaronpowell merged 1 commit into
mainfrom
aaronpowell-clean-pr-review-npm-output

Conversation

@aaronpowell

Copy link
Copy Markdown
Contributor

Problem

npm warn and npm notice messages from npx's package installation were leaking into the Vally lint PR comment. They appeared in both the Summary findings table (labelled as ℹ️ advisories) and in the full linter output block.

Example noise:

npm warn EBADENGINE Unsupported engine { package: 'commander@15.0.0', ... }
npm warn deprecated prebuild-install@7.1.3: No longer maintained.

Seen in: #2427 (comment)

Fix

Filter out lines matching ^npm (warn|notice) when processing the raw vally output in the comment script. This cleans up both the summary table and the <details> full output block without affecting any real vally findings.

npm install warnings (EBADENGINE, deprecated) were leaking into both
the Summary findings table and the full linter output block, making
the comment noisy. Filter them out when processing raw vally output.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4c3ca9da-500e-464e-88d3-4c09535ec45c
Copilot AI review requested due to automatic review settings July 28, 2026 00:27
@github-actions github-actions Bot added the workflow PR touches workflow automation label Jul 28, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Filters npm installation noise from Vally lint PR comments.

Changes:

  • Removes npm warn and npm notice lines after ANSI cleanup.
  • Applies filtering before summary counts and full-output rendering.
Show a summary per file
File Description
.github/workflows/skill-check-comment.yml Filters npm noise from processed Vally output.

Review details

  • Files reviewed: 1/1 changed files
  • Comments generated: 0
  • Review effort level: Medium

@aaronpowell
aaronpowell merged commit 0d466ec into main Jul 28, 2026
18 of 19 checks passed
@aaronpowell
aaronpowell deleted the aaronpowell-clean-pr-review-npm-output branch July 28, 2026 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

workflow PR touches workflow automation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants