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

fix: don't prompt for version if only one exists #675

Merged
merged 4 commits into from
Nov 17, 2022

Conversation

kanadgupta
Copy link
Member

@kanadgupta kanadgupta commented Nov 17, 2022

🧰 Changes

Since simplifying our version selection flow in #635, the version selection prompt annoyingly prompts the user to select a version even if only one exists in ReadMe:

CleanShot.2022-11-17.at.10.16.20.mp4

This adds a tiny bit of logic to fix that. See below for the fix (note the lack of version selection prompt):

CleanShot.2022-11-17.at.10.19.06.mp4

🧬 QA & Testing

Do tests pass?

@kanadgupta kanadgupta added enhancement New feature or request command:docs Issues pertaining to the `docs`, `changelogs`, or `custompages` commands command:openapi Issues pertaining to the `openapi`, `validate`, `reduce`, or `swagger` commands command:versions Issues pertaining to the `versions` commands command:categories Issues pertaining to the `categories` commands labels Nov 17, 2022
@kanadgupta kanadgupta changed the title Fix/version selection fix: don't prompt for version if only one exists Nov 17, 2022
@kanadgupta kanadgupta marked this pull request as ready for review November 17, 2022 16:20
@kanadgupta kanadgupta merged commit 0180883 into main Nov 17, 2022
@kanadgupta kanadgupta deleted the fix/version-selection branch November 17, 2022 20:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
command:categories Issues pertaining to the `categories` commands command:docs Issues pertaining to the `docs`, `changelogs`, or `custompages` commands command:openapi Issues pertaining to the `openapi`, `validate`, `reduce`, or `swagger` commands command:versions Issues pertaining to the `versions` commands enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants