Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
|
Thank you for your contribution! We will review the pull request and get back to you soon. |
|
The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR. Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions). pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>
|
There was a problem hiding this comment.
Pull request overview
Updates the ParseSquadMappingList.ps1 sync script to better handle mentionees entries when auto-updating .github/policies/resourceManagement.yml, ensuring squad mentionees are normalized and de-duplicated.
Changes:
- Added a
NormalizeMentioneeValuehelper to normalize squad mentionees (e.g.,act-...-squad→Azure/act-...-squad). - Updated mentionee parsing to treat existing mentionees as present in both raw and normalized forms.
- Updated mentionee insertion to write the normalized mentionee value.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -370,8 +393,9 @@ function AddSquadLabelsToYaml { | |||
| if ($mentionItemIndent -lt 0) { $mentionItemIndent = ($mentioneesIndent -gt 0) ? $mentioneesIndent : ($listIndentLength + 4) } | |||
There was a problem hiding this comment.
The fallback for computing $mentionItemIndent treats $mentioneesIndent==0 as "unset" because it checks -gt 0. If a mentionees: block is ever at column 0 (valid YAML), this will choose ($listIndentLength + 4) and insert mis-indented mentionees, potentially breaking YAML parsing. Consider using -ge 0 (or initialize to $null and test for $null -ne $mentioneesIndent) so an indent of 0 is handled correctly.
| if ($mentionItemIndent -lt 0) { $mentionItemIndent = ($mentioneesIndent -gt 0) ? $mentioneesIndent : ($listIndentLength + 4) } | |
| if ($mentionItemIndent -lt 0) { $mentionItemIndent = ($mentioneesIndent -ge 0) ? $mentioneesIndent : ($listIndentLength + 4) } |
Description
Testing Guide
This checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.