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

Azure CLI replaces VSTS CLI #695

Open
pinkfloydx33 opened this issue Sep 10, 2019 · 4 comments
Open

Azure CLI replaces VSTS CLI #695

pinkfloydx33 opened this issue Sep 10, 2019 · 4 comments

Comments

@pinkfloydx33
Copy link

pinkfloydx33 commented Sep 10, 2019

The VSTS CLI has been deprecated and replaced with the Azure CLI (az repos).

The aliases that are added via --use-git-aliases are the same as the Vsts ones, pr being the primary one. Would need to add a new known alias to support both Vsts and az. Additionally, some of the sub-commands have changed; many of them are pluralization (reviewer vs reviewers) but some options have been removed and a few added.

Any chance the module will be updated to officially support the aliases added by the Azure CLI?

I've updated my local copy of the module and would gladly submit a PR if you'd like.

@dahlbyk
Copy link
Owner

dahlbyk commented Sep 11, 2019

I've updated my local copy of the module and would gladly submit a PR if you'd like.

That would be great!

Is it reasonable to retain support for vsts and add parallel support for az devops aliases?

@pinkfloydx33
Copy link
Author

Yes we can support both aliases. I had to make a few tweaks to my local after you said that, but its easily done. The alias contents are different so we can key off KnownAliases and it works fine. You'll never have both installed, but if you did for some reason they shouldn't conflict.

I also added support for those commands that have sub-commands; for example git pr policy list - -params with policy having sub-commands (list, etc). There are a few others: reviewers and work-items. I did not back-port that to the Vsts version however, so azure cli only.

I'll have a PR likely later today. I've also added support for #691. Should I submit two seperate PRs?

@dahlbyk
Copy link
Owner

dahlbyk commented Sep 11, 2019

Should I submit two seperate PRs?

Definitely separate commits, but a single PR is fine.

@pinkfloydx33
Copy link
Author

Working on writing some tests to include in the PR. I've noticed that (even on master) several of the test fail, specifically those using $result | Should -Be @() . Even a simple test of @() | Should Be @() fails. I was able to fix these by changing to $result | Should BeNullOrEmpty but I'm not sure if this is just me/if I'm doing something wrong.

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

No branches or pull requests

2 participants