You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(copilot-cli): use semver sort for prerelease tag resolution (#1657)
* Initial plan
* fix(copilot-cli): use semver sort for prerelease tag resolution
* refactor(copilot-cli): extract resolve_prerelease_version function and add test
Extract the prerelease tag resolution logic into a standalone
resolve_prerelease_version() function that can read from stdin for
testing. Add a scenario test that validates version sorting with mock
git ls-remote data to prevent regressions.
* fix(copilot-cli): make repo_url mandatory in resolve_prerelease_version
Remove the stdin/cat fallback and use ${1:?} to error if no URL is
provided. Update the test to mock git via PATH instead of piping stdin.
* Add tests as per review comments without git ls and separate test for prerelease tag
* Further changes in the test and code cleanup
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Kaniska <kaniska244@github.com>
0 commit comments