-
Couldn't load subscription status.
- Fork 31
Get-AdoPicklist -Orphan bugfix for on-premises AzD Server #209
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
base: master
Are you sure you want to change the base?
Get-AdoPicklist -Orphan bugfix for on-premises AzD Server #209
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR fixes incorrect URL handling for on-premises Azure DevOps Server in the Get-ADOPicklist function when the -Orphan switch is used. Additionally, it introduces API version warnings to encourage users to upgrade from the outdated 5.0 API version to 7.0 or later.
Key Changes:
- Fixed URL construction for on-premises Azure DevOps Server in
Get-ADOPicklistorphan picklist detection - Added API version 5.x compatibility warnings across multiple functions (
Get-ADOPicklist,Get-ADOField,Remove-ADOPermission) - Code formatting improvements (brace placement standardization)
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| Functions/AzureDevOps/Get-ADOPicklist.ps1 | Added conditional logic to handle on-premises server URLs correctly when detecting orphaned picklists, and added API version warning |
| Functions/AzureDevOps/Get-ADOField.ps1 | Added API version 5.x compatibility warning for field operations |
| Functions/AzureDevOps/Remove-ADOPermission.ps1 | Added API version 5.x compatibility warning and standardized brace formatting |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
| $allPicklists = Get-ADOPicklist -Organization $organization | ||
| $allUsedPicklists = Get-ADOField @invokeParams -Organization $Organization | | ||
| $allPicklists = @() | ||
| $allUsedPicklists = @() |
Copilot
AI
Oct 24, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These variables are initialized but then immediately reassigned in both branches of the if-else statement. The initialization is redundant and should be removed to improve code clarity.
| $allUsedPicklists = @() |
3ffa275 to
347e4f9
Compare
…n Get-ADOPicklist for AzD Server
…rmission function
347e4f9 to
c13f994
Compare
Co-authored-by: Copilot <[email protected]>
…ng in Remove-ADOPicklist function
This pull request fixes incorrect URL handling for on-premises Azure DevOps Server in the get-adopicklist function when the -orphan switch is used.
In addition, users are now warned when using the outdated 5.0 API version and encouraged to switch to version 7.0 (AZD 2022).