[cli] Update WordPress version validation to include "beta" as a valid slug#3446
Open
[cli] Update WordPress version validation to include "beta" as a valid slug#3446
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds support for the beta WordPress version slug in the Playground CLI by updating validation and user-facing messaging.
Changes:
- Extend
isValidWordPressSlugto acceptbetaas a standalone valid slug. - Update inline documentation to list
betaas an allowed version string. - Improve the CLI error message to suggest
betaas a valid option.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| packages/playground/cli/src/run-cli.ts | Updates the invalid-version error message to include beta as an accepted slug. |
| packages/playground/cli/src/is-valid-wordpress-slug.ts | Extends slug validation regex and doc comment to recognize beta. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request updates the logic for validating WordPress version slugs in the Playground CLI to add support for the "beta" slug. The changes ensure that "beta" is now recognized as a valid version and update documentation and error messages accordingly.
Validation and documentation updates:
is-valid-wordpress-slug.ts.isValidWordPressSlugto accept "beta" as a valid version slug.User-facing error message improvements:
run-cli.tsto include "beta" as a valid WordPress version option for users.