Skip to content

chore: add trustPolicy#1415

Closed
yifancong wants to merge 2 commits intomainfrom
chore/add-trustPolicy
Closed

chore: add trustPolicy#1415
yifancong wants to merge 2 commits intomainfrom
chore/add-trustPolicy

Conversation

@yifancong
Copy link
Copy Markdown
Contributor

Summary

Related Links

Copilot AI review requested due to automatic review settings November 20, 2025 12:00
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 20, 2025

📝 Rsdoctor Ecosystem CI: Open

suite result
rsbuild ❌ failure

@netlify
Copy link
Copy Markdown

netlify Bot commented Nov 20, 2025

Deploy Preview for rsdoctor ready!

Name Link
🔨 Latest commit 880eb9e
🔍 Latest deploy log https://app.netlify.com/projects/rsdoctor/deploys/691f071d575ebf0008cddf55
😎 Deploy Preview https://deploy-preview-1415--rsdoctor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

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 adds pnpm trustPolicy configuration to prevent package downgrades and updates UI text in a component. The trustPolicy is set to no-downgrade with an exclusion for ua-parser-js.

Key Changes

  • Added trustPolicy configuration with no-downgrade setting and exclusion for ua-parser-js
  • Simplified the ModuleResolve page title from "Webpack Resolver Analysis" to "Resolver Analysis"

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
pnpm-workspace.yaml Adds trustPolicy configuration to prevent package version downgrades
packages/components/src/pages/ModuleResolve/index.tsx Simplifies page title and reformats component props

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread pnpm-workspace.yaml Outdated

trustPolicy: no-downgrade
trustPolicyExclude:
- ua-parser-js@1.0.41
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

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

Version mismatch: The trustPolicyExclude specifies ua-parser-js@1.0.41, but the pnpm-lock.yaml shows the project is using ua-parser-js@1.0.40. The version in the exclusion list should match the actual version being used in the project. Please update this to ua-parser-js@1.0.40.

Suggested change
- ua-parser-js@1.0.41
- ua-parser-js@1.0.40

Copilot uses AI. Check for mistakes.
Comment thread pnpm-workspace.yaml Outdated
Comment on lines +6 to +9

trustPolicy: no-downgrade
trustPolicyExclude:
- ua-parser-js@1.0.41
Copy link

Copilot AI Nov 20, 2025

Choose a reason for hiding this comment

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

The trustPolicy and trustPolicyExclude settings should be configured in .npmrc file, not in pnpm-workspace.yaml. The pnpm-workspace.yaml file is specifically for defining workspace packages, while pnpm configuration options like trustPolicy belong in .npmrc.

These lines should be moved to .npmrc in the following format:

trust-policy=no-downgrade
trust-policy-exclude[]=ua-parser-js@1.0.41
Suggested change
trustPolicy: no-downgrade
trustPolicyExclude:
- ua-parser-js@1.0.41

Copilot uses AI. Check for mistakes.
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Nov 20, 2025

📝 Rsdoctor Ecosystem CI: Open

suite result
rsbuild ❌ failure

@yifancong yifancong closed this Nov 28, 2025
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