Skip to content
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

Closed

Conversation

chidozieononiwu
Copy link
Member

@chidozieononiwu chidozieononiwu commented Sep 9, 2020

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

@chidozieononiwu chidozieononiwu requested review from a team and removed request for a team September 11, 2020 17:31
@chidozieononiwu chidozieononiwu force-pushed the ExtendCodeOwners branch 2 times, most recently from 601c13e to 66dab2b Compare September 11, 2020 18:23
{
$previousLine = $previousLine.substring($previousLine.IndexOf(':') + 1)
$splitPrevLine = $previousLine -split "%"
$labels = ($splitPrevLine[1..$($splitPrevLine.Length)] | % { return $_.Trim() }) -join ","
Copy link
Member

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.

Copy link
Member

@weshaggard weshaggard left a 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.

if ($presentOwningUsers) {
$users += $presentOwningUsers
}
Write-Host "##vso[task.setvariable variable=$VsoOwningUsers;]($users -join ',')"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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 ',')"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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 ',')"
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Write-Host "##vso[task.setvariable variable=$VsoOwningLabels;]($labels -join ',')"
Write-Host "##vso[task.setvariable variable=$VsoOwningLabels;]$($labels -join ',')"

)

. (Join-Path ${PSScriptRoot} logging.ps1)
Copy link
Member

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 ","
Copy link
Member

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.

@ahsonkhan
Copy link
Contributor

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.

@chidozieononiwu
Copy link
Member Author

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

@chidozieononiwu
Copy link
Member Author

Closing this, till I get to come back to it.

sima-zhu pushed a commit to sima-zhu/azure-sdk-tools that referenced this pull request Dec 3, 2020
…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.
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.

5 participants