microsoft / DevHomeAzureExtension

Dev Home Azure Extension
MIT License
78 stars 16 forks source link

Pull requests widget doesn't accept URL without project #30

Closed cinnamon-msft closed 10 months ago

cinnamon-msft commented 10 months ago

Dev Home version

0.200.314.0 (Azure extension version)

Windows build number

No response

Other software

No response

Steps to reproduce the bug

My browser gives me a URL without a project for my repo. In this case, the repo name is the same as the project name, which may be why that is.

Expected result

The widget should still consider this URL as valid for the repo

Actual result

Invalid URL error :(

Included System Information

No response

dkbennett commented 10 months ago

Issue is understood, it's a special case where the project name and the repository name are the same, so the devops URL is shortened to exclude the project name. Working on a fix.

Workaround for issue is to put the project in the segment before the "_git" segment.

example: https://dev.azure.com/organization/_git/repository -> https://dev.azure.com/organization/repository/_git/repository