forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/Azure/azure-rest-api-specs …
…into teom-hobovm08-01-preview
- Loading branch information
Showing
592 changed files
with
23,213 additions
and
5,138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
trigger: none | ||
|
||
pr: | ||
branches: | ||
include: | ||
- main | ||
- typespec-next | ||
paths: | ||
include: | ||
- specification | ||
|
||
jobs: | ||
- job: Validate_Changed_Specs | ||
pool: | ||
name: azsdk-pool-mms-ubuntu-2204-general | ||
vmImage: ubuntu-22.04 | ||
|
||
steps: | ||
- script: npm ci | ||
displayName: npm ci | ||
|
||
- script: npm ls -a | ||
displayName: npm ls -a | ||
condition: succeededOrFailed() | ||
|
||
- pwsh: | | ||
$(Build.SourcesDirectory)/eng/scripts/Validate-TypeSpec.ps1 ` | ||
$(Build.SourcesDirectory) ` | ||
"origin/${env:SYSTEM_PULLREQUEST_TARGETBRANCH}" ` | ||
"${env:SYSTEM_PULLREQUEST_SOURCECOMMITID}" | ||
displayName: Validate Changed Specs | ||
condition: succeededOrFailed() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter(Position = 0, Mandatory = $true)] | ||
[string] $SpecsRepoRootDirectory, | ||
[Parameter(Position = 1, Mandatory = $false)] | ||
[string]$TargetBranch, | ||
[Parameter(Position = 2, Mandatory = $false)] | ||
[string]$SourceBranch | ||
) | ||
|
||
$tspFiles = @() | ||
if ([string]::IsNullOrEmpty($TargetBranch) -or [string]::IsNullOrEmpty($SourceBranch)) { | ||
$tspFiles = (Get-ChildItem -path ./specification tspconfig.yaml -Recurse).FullName -replace "$($pwd.Path)/" | ||
} | ||
else { | ||
Write-Host "git -c core.quotepath=off -c i18n.logoutputencoding=utf-8 diff --name-only `"$TargetBranch...$SourceBranch`" -- | Where-Object {`$_.StartsWith('specification')}" | ||
$tspFiles = git -c core.quotepath=off -c i18n.logoutputencoding=utf-8 diff --name-only `"$TargetBranch...$SourceBranch`" -- | Where-Object {$_.StartsWith('specification')} | ||
} | ||
|
||
$typespecFolders = @() | ||
foreach ($file in $tspFiles) { | ||
$file -match 'specification\/[^\/]*\/' | out-null | ||
$typespecFolders += (Get-ChildItem -path $matches[0] tspconfig.yaml -Recurse).Directory.FullName -replace "$($pwd.Path)/" | ||
} | ||
$typespecFolders = $typespecFolders | Select-Object -Unique | ||
|
||
return $typespecFolders |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
[CmdletBinding()] | ||
param ( | ||
[Parameter(Position = 0, Mandatory = $true)] | ||
[string] $SpecsRepoRootDirectory, | ||
[Parameter(Position = 1, Mandatory = $false)] | ||
[string]$TargetBranch, | ||
[Parameter(Position = 2, Mandatory = $false)] | ||
[string]$SourceBranch | ||
) | ||
|
||
$typespecFolders = @() | ||
|
||
$typespecFolders = &"$PSScriptRoot/Get-TypeSpec-Folders.ps1" "$SpecsRepoRootDirectory" "$TargetBranch" "$SourceBranch" | ||
|
||
$exitCode = 0 | ||
foreach ($typespecFolder in $typespecFolders) { | ||
npx --no tsv $typespecFolder 2>&1 | Write-Host | ||
if ($LASTEXITCODE) { | ||
$exitCode = 1 | ||
} | ||
git restore . | ||
git clean -df | ||
} | ||
|
||
exit $exitCode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "azure-rest-api-specs-eng-tools", | ||
"devDependencies": { | ||
"@azure-tools/typespec-validation": "file:TypeSpecValidation" | ||
}, | ||
"private": true | ||
} |
Oops, something went wrong.