Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow multiple package selection flags #23511

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

CraigMacomber
Copy link
Contributor

Description

Allow PackageCommands to take multiple package selection flags and union the results together.

This makes operations like tagging asserts in a combination of packages possible without extra filtering logic.

Reviewer Guidance

The review process is outlined on this wiki page.

@Copilot Copilot bot review requested due to automatic review settings January 8, 2025 20:27
@github-actions github-actions bot added area: build Build related issues base: main PRs targeted against main branch labels Jan 8, 2025
Copy link
Contributor

@Copilot 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.

Copilot reviewed 5 out of 8 changed files in this pull request and generated 1 comment.

Files not reviewed (3)
  • build-tools/packages/build-cli/docs/release.md: Evaluated as low risk
  • build-tools/packages/build-cli/docs/exec.md: Evaluated as low risk
  • build-tools/packages/build-cli/docs/typetests.md: Evaluated as low risk
Comments suppressed due to low confidence (1)

build-tools/packages/build-cli/src/test/filter.test.ts:370

  • Add more test cases to cover different combinations of selection flags to ensure comprehensive test coverage.
it("multiple selection flags", async () => {

"Select only packages that have changed when compared to a base branch. Use the --branch option to specify a different base branch. Cannot be used with other options.",
exclusive: ["dir", "releaseGroup", "releaseGroupRoot", "all", "packages"],
"Select packages that have changed when compared to a base branch. Use the --branch option to specify a different base branch. Cannot be used --all.",
exclusive: ["all"],
Copy link
Preview

Copilot AI Jan 8, 2025

Choose a reason for hiding this comment

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

The error message for the 'changed' flag is missing a word. It should be 'Cannot be used with --all.'

Copilot is powered by AI, so mistakes are possible. Review output carefully before use.

Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: build Build related issues base: main PRs targeted against main branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant