azure-sdk-for-cpp/eng/common/scripts/get-codeowners.ps1
Azure SDK Bot 6999572809
Sync eng/common directory with azure-sdk-tools for PR 5608 (#4411)
* ongoing

* Move get-codeowners scripts and tests to their own dirs

* address PR remarks

* Fix CodeOwnerFileLocation path, fix casing, and dedup param defaults

* fix param names

* add todos on needed changes in cpp repo

* Add CodeownersFileLocation to Get-Codeowners and use $null for default param values

* move get-codeowners back to scripts/ and rename -functions to .lib

* fix: use empty string as defaults instead of $nulls, to fix invocation

* fix bug with invocation of Get-Codeowners + add support for passing IncludeNonUserAliases as switch

* fix path iin Metadata-Helpers.ps1

* fix typo

* Update archetype-cpp-release.yml

---------

Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
2023-03-30 23:55:52 -07:00

18 lines
472 B
PowerShell

<#
.SYNOPSIS
Please see the comment on Get-Codeowners defined in ./get-codeowners.lib.ps1
#>
param (
[string] $TargetPath = "",
[string] $TargetDirectory = "",
[string] $CodeownersFileLocation = "",
[switch] $IncludeNonUserAliases
)
. $PSScriptRoot/get-codeowners.lib.ps1
return Get-Codeowners `
-TargetPath $TargetPath `
-TargetDirectory $TargetDirectory `
-CodeownersFileLocation $CodeownersFileLocation `
-IncludeNonUserAliases:$IncludeNonUserAliases