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.
This fixes 404 responses when attempting to make requests to disabled repos.
Description
I added a new switch param as I figured it was best not to always exclude disabled repos from responses. However, the default is to exclude them as I didn't want to affect the rest of the code. I did check to see if AzDO supports OData filters but it doesn't look like that's the case so we have to filter it after the response is received.
Related Issue
#123
Motivation and Context
Currently, if you run the tool on a Project with a disabled repo then it throws an exception.
How Has This Been Tested?
I ran the
Get-AzDevOpsRepos
cmdlet after making the change and observed that the disabled repo in my project was no longer in the returned array. I ran the tests forDevOps.Repos.Tests
against my project and got the following:Before changes (fc472f3)
After changes
Types of changes
Checklist: