Skip to content

Allow users to input 2.x.y instead of v2.x.y - #7

Merged
edoardopirovano merged 6 commits into
mainfrom
edoardo/short-input
Sep 17, 2021
Merged

edoardopirovano merged 6 commits into
mainfrom
edoardo/short-input

Conversation

@edoardopirovano

Copy link
Copy Markdown
Contributor

Another small UX improvement, I think a lot of users wouldn't know that the tags in our release repo are v2.x.y, so if they just type in 2.x.y we should probably just add the v in for them - gh codeql set-version 2.5.9 seems like the command a first-time user would naturally type, not gh codeql set-version v2.5.9.

@p0 p0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As written, this breaks the nightly channel, where tags do not all start with v...

@edoardopirovano

Copy link
Copy Markdown
Contributor Author

As written, this breaks the nightly channel, where tags do not all start with v...

Does it? It's only changing the user's input if $repo = 'github/codeql-cli-binaries'.

This does raise the important issue that there is no test coverage for downloading a nightly - let me add that in.

@p0 p0 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Oh, you're right, apologies. We'd better not introduce non-v* tags in the repo, then!

Comment thread gh-codeql Resolved
edoardopirovano and others added 2 commits September 17, 2021 16:31
Co-authored-by: Pavel Avgustinov <54942558+p0@users.noreply.github.com>
Comment thread .github/workflows/pr-checks.yml Resolved
Comment thread gh-codeql Resolved
Co-authored-by: Pavel Avgustinov <54942558+p0@users.noreply.github.com>
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