Skip to content

Conversation

@VeryEarly
Copy link
Collaborator

Description

Mandatory Checklist

  • SHOULD update ChangeLog.md file(s) appropriately
    • Update src/{{SERVICE}}/{{SERVICE}}/ChangeLog.md.
      • A snippet outlining the change(s) made in the PR should be written under the ## Upcoming Release header in the past tense.
    • Should not change ChangeLog.md if no new release is required, such as fixing test case only.
  • SHOULD regenerate markdown help files if there is cmdlet API change. Instruction
  • SHOULD have proper test coverage for changes in pull request.
  • SHOULD NOT adjust version of module manually in pull request

Copilot AI review requested due to automatic review settings July 21, 2025 02:42
@azure-client-tools-bot-prd
Copy link

Thanks for your contribution! The pull request validation has started. Please revisit this comment for updated status.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Fixes a breaking change processing issue where parameter breaking changes were not being properly handled in custom PowerShell files. The fix restructures the breaking change message storage logic to ensure proper initialization and handling of both cmdlet and parameter breaking changes.

  • Separates hash table initialization from breaking change message addition
  • Adds explicit checks for breaking change message type existence before initialization
  • Ensures consistent data structure handling for both cmdlet and parameter breaking changes

}
If (-not $AllBreakingChangeMessages[$CmdletName][$AllParameterSetsName].ContainsKey("ParameterBreakingChange"))
{
$AllBreakingChangeMessages[$CmdletName][$AllParameterSetsName]["ParameterBreakingChange"] = [System.Collections.ArrayList]::New(@($ParameterBreakingChangeMessage))
Copy link

Copilot AI Jul 21, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's an inconsistency in data types between cmdlet and parameter breaking changes. CmdletBreakingChange uses ArrayList but ParameterBreakingChange was previously assigned directly as a hashtable. The change to ArrayList is correct, but ensure the else block at line 402 is compatible with ArrayList operations.

Copilot uses AI. Check for mistakes.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@VeryEarly VeryEarly enabled auto-merge (squash) July 21, 2025 02:45
@VeryEarly VeryEarly merged commit 1397315 into main Jul 21, 2025
12 checks passed
@VeryEarly VeryEarly deleted the yabo/fix-breakingchangemetadata branch July 21, 2025 03:00
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

Successfully merging this pull request may close these issues.

2 participants