Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe run command now lists scripts for a uniquely filtered project when no script name is provided, including available root workspace scripts. Multiple selected projects still require an explicit script name, with unit and integration tests covering both behaviors. ChangesFiltered run listing
Estimated code review effort: 3 (Moderate) | ~20 minutes Sequence Diagram(s)sequenceDiagram
participant User
participant run_recursive
participant WorkspaceSelection
participant render_project_commands
User->>run_recursive: --filter project-1 run
run_recursive->>WorkspaceSelection: resolve filtered projects
WorkspaceSelection-->>run_recursive: one selected project
run_recursive->>render_project_commands: render project and root scripts
render_project_commands-->>User: command listings
Assessment against linked issues
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested labels: Suggested reviewers: ✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
PR Summary by Qodofix(cli): List scripts for single-package filtered
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Confidence Score: 5/5The PR appears safe to merge. No blocking failure remains. Reviews (2): Last reviewed commit: "docs(changeset): mention root scripts" | Re-trigger Greptile |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In @.changeset/calm-pugs-list.md:
- Line 5: Update the changeset release note to mention that pnpm --filter
<package> run lists both the selected package’s scripts and root workspace
scripts when no script name is specified, preserving the required pnpm changeset
bump and user-visible behavior wording.
In `@pnpm/crates/cli/src/cli_args/run.rs`:
- Around line 617-626: In run.rs, move root_scripts construction before the
empty-output check and return “There are no scripts specified.” only when both
selected-package and root-workspace scripts are empty, while preserving
rendering of both command sets. In
pnpm/crates/cli/tests/run_recursive.rs:1373-1421, add a selected package with no
scripts and regression-level CLI assertions that filtered listing still includes
root-workspace commands; the selected-package commands should remain covered
where applicable.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 76abb7af-cc30-460c-8336-3f9b841b2f61
📒 Files selected for processing (5)
.changeset/calm-pugs-list.mdpnpm/crates/cli/src/cli_args/run.rspnpm/crates/cli/src/cli_args/run/recursive.rspnpm/crates/cli/src/cli_args/run/tests.rspnpm/crates/cli/tests/run_recursive.rs
Code Review by Qodo
Context used✅ Compliance rules (platform):
24 rules 1. Unsanitized root script output
|
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
|
Code review by qodo was updated up to the latest commit 05b2107 |
PR Code Suggestions ✨Warning
No code suggestions found for the PR. |
Micro-Benchmark ResultsLinux |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #13440 +/- ##
=======================================
Coverage 87.64% 87.64%
=======================================
Files 545 545
Lines 93897 93926 +29
=======================================
+ Hits 82292 82324 +32
+ Misses 11605 11602 -3 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Summary
Fixes #13437.
When
pnpm --filter <package> runselects exactly one workspace package and no script name is provided, pacquet now lists that package’s scripts and the root workspace scripts instead of returningERR_PNPM_SCRIPT_NAME_IS_REQUIRED. The TypeScript CLI already has this behavior, so this PR restores Rust parity without changing the TypeScript implementation. Multi-project recursive runs without a script name continue to return the existing error.Squash Commit Body
Checklist
pnpm/port, or the description notes what still needs porting.pnpm changeset) if this PR changes any publishedpackage. Keep it short and written for pnpm users — it becomes a release note.
Written by an agent (Codex, GPT-5).
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by CodeRabbit
runwithout a script name so filtered executions correctly list commands for the selected package.