This repository has been archived by the owner on Nov 6, 2020. It is now read-only.
Package file updates (updates for 'Associate Work Items' menu option) #267
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.
Should address #262.
Today, the 'Associate Work Items' menu item shows for all SCM providers (Hg, Perforce, TFVC and Git). For Git, it shows even if it is not a VSTS/TFS hosted repository. It is rendered for Git repositories like so:
![image](https://user-images.githubusercontent.com/2796865/27592306-2262a088-5b22-11e7-946a-f659eda22acd.png)
![image](https://user-images.githubusercontent.com/2796865/27592331-310b3fa0-5b22-11e7-9166-b1e534404cfd.png)
![image](https://user-images.githubusercontent.com/2796865/27592365-4ce8965a-5b22-11e7-9eaf-e4408256d6ab.png)
![image](https://user-images.githubusercontent.com/2796865/27592384-597db81e-5b22-11e7-8b19-8c88575516d1.png)
This PR changes the order so that it now appears like this:
(I think it makes the UI better in keeping the Git commands grouped together.)
The TFVC option remains unchanged:
And this is how it looks for Perforce (the 'Associate Work Items' menu is missing):
Note that I could not use an OR in a "when clause" due to it being a missing feature. Therefore, I added two commands... one specifically for Git and the other specifically for TFVC.
Finally, for Git repositories that are not hosted on VSTS/TFS, I default to showing this message:
![image](https://user-images.githubusercontent.com/2796865/27554370-312dd34a-5a7c-11e7-88dc-7e30cdb747d9.png)