-
Notifications
You must be signed in to change notification settings - Fork 186
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
Update get-codeowners PowerShell file #981
Conversation
601c13e
to
66dab2b
Compare
9d5df89
to
fd73e1d
Compare
{ | ||
$previousLine = $previousLine.substring($previousLine.IndexOf(':') + 1) | ||
$splitPrevLine = $previousLine -split "%" | ||
$labels = ($splitPrevLine[1..$($splitPrevLine.Length)] | % { return $_.Trim() }) -join "," |
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.
Lets make remove the join here and keep it an array.
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.
One clean-up comment otherwise looks good.
e9c591e
to
c34b268
Compare
Sync eng/common directory with azure-sdk-tools for PR https://github.com/Azure/azure-sdk-tools/pull/981<br> See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/master/eng/common/README.md#workflow)
if ($presentOwningUsers) { | ||
$users += $presentOwningUsers | ||
} | ||
Write-Host "##vso[task.setvariable variable=$VsoOwningUsers;]($users -join ',')" |
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.
Write-Host "##vso[task.setvariable variable=$VsoOwningUsers;]($users -join ',')" | |
Write-Host "##vso[task.setvariable variable=$VsoOwningUsers;]$($users -join ',')" |
if ($presentOwningTeams) { | ||
$teams += $presentOwningUsers | ||
} | ||
Write-Host "##vso[task.setvariable variable=$VsoOwningTeams;]($teams -join ',')" |
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.
Write-Host "##vso[task.setvariable variable=$VsoOwningTeams;]($teams -join ',')" | |
Write-Host "##vso[task.setvariable variable=$VsoOwningTeams;]$($teams -join ',')" |
} | ||
Write-Host "##vso[task.setvariable variable=$VsoVariable;]$results" | ||
Write-Host "##vso[task.setvariable variable=$VsoOwningLabels;]($labels -join ',')" |
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.
Write-Host "##vso[task.setvariable variable=$VsoOwningLabels;]($labels -join ',')" | |
Write-Host "##vso[task.setvariable variable=$VsoOwningLabels;]$($labels -join ',')" |
c34b268
to
a587e76
Compare
) | ||
|
||
. (Join-Path ${PSScriptRoot} logging.ps1) |
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.
Any reason not to import common.ps1?
| ? { $_.StartsWith("@") } ` | ||
| % { return $_.substring(1) }) -join "," | ||
|
||
$aliases = ($splitLine[1..$($splitLine.Length)] | ? { $_.StartsWith("@") } | % { return $_.substring(1) }) -join "," |
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.
Given that you split on "," below we should just avoid the join here and just keep an array.
Any updates to this PR? Is it still being worked on? If this is blocked on something, can you link to the PRs or issues in the description that we are waiting on. |
Done |
Closing this, till I get to come back to it. |
…nce some embedded platforms don't have it. (Azure#981) * Use custom, portable implementation of IEEE 754 compliant isfinite since some platforms dont have it. * Add some comments to test cases. * Inline the implementation of _az_is_finite. * Reword the comment slightly.
Extend CodeOwners.ps1 to recognize Labels and team aliases in code owners file.
Addresses Azure/azure-sdk-for-net#14760 and #954
Blocked on #1052