Sync eng/common directory with azure-sdk-tools for PR 2322 (#21851)
Sync eng/common directory with azure-sdk-tools for PR 2322 (#21851)

* Install and Run code owner tools in get-codeowner.ps1

* return command when exists

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <bac8a89fef25efd2c81bd803dbd39614d63d50cf@users.noreply.github.com>

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <bac8a89fef25efd2c81bd803dbd39614d63d50cf@users.noreply.github.com>

* Address comments

* Added test to script

* change return type

* change wrong params

* default to toolpath

* typo

* correct exit on Test

* change to right function name

* Fixed log message

* log message

* Added more test cases

* Correct the parameters

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <bac8a89fef25efd2c81bd803dbd39614d63d50cf@users.noreply.github.com>

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <bac8a89fef25efd2c81bd803dbd39614d63d50cf@users.noreply.github.com>

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <bac8a89fef25efd2c81bd803dbd39614d63d50cf@users.noreply.github.com>

* Remove exit 0 in test function

* change the path delimiter

* More changes on var

* Hide error behind

* Comment back all tests

* exit 0

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <bac8a89fef25efd2c81bd803dbd39614d63d50cf@users.noreply.github.com>

* remove default value

* changes for new get-codeowners

* Update eng/common/scripts/get-codeowners.ps1

Co-authored-by: Wes Haggard <bac8a89fef25efd2c81bd803dbd39614d63d50cf@users.noreply.github.com>

* update version and parameter

* add user

* more fix

* add messages

* Added real cases

* fixed typo

* Make program work

Co-authored-by: sima-zhu <5fef37f6cbdb6842d05e30aec045f2f609cf3db2@microsoft.com>
Co-authored-by: Sima Zhu <d4240cdb7983fdb6beaa6416bf6a44c84cb67504@users.noreply.github.com>
Co-authored-by: Wes Haggard <bac8a89fef25efd2c81bd803dbd39614d63d50cf@users.noreply.github.com>
Azure/azure-sdk-for-python,Azure/azure-sdk-for-python,Azure/azure-sdk-for-python,Azure/azure-sdk-for-python