Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion eng/scripts/Track1CodeCheck.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ try {
}
$changeList | ForEach-Object {
$fileName = $_.filename
if ($fileName -match 'sdk/') {
if ($fileName -match 'sdk/' -and $fileName -match '/Microsoft') {
$name = $fileName.substring(4, (($fileName.indexof('/Microsoft') - 4)))
If ($folderName -notcontains $name) {
$folderName += $name
Expand Down Expand Up @@ -212,6 +212,8 @@ try {
Write-Output $_
}
LogError "Generated code is manually altered, you may need to re-run sdk\<RP_Name>\generate.ps1"
Write-Host "For reference, we are using this command for the code check: " -ForegroundColor red -BackgroundColor white
Write-Host " autorest https://github.com/<Repo_Name>/azure-rest-api-specs/blob/<Commit_Id>/specification/<RP_Name>/resource-manager/readme.md --csharp --version=v2 --reflect-api-versions --csharp-sdks-folder=<SDK_Repo_Path>/sdk --use:@microsoft.azure/[email protected]" -ForegroundColor red -BackgroundColor white
}
}
finally {
Expand Down