forked from Azure/azure-sdk-for-go
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "APIView Creation from PR for Go (Azure#24000)" (Azure#24125)
This reverts commit 6c828dc.
- Loading branch information
1 parent
ff0577c
commit a7658ce
Showing
3 changed files
with
53 additions
and
134 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
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,39 @@ | ||
Param( | ||
[Parameter(Mandatory=$True)] | ||
[string] $ServiceDirectory, | ||
[Parameter(Mandatory=$True)] | ||
[string] $OutPath, | ||
[Parameter(Mandatory=$True)] | ||
[string] $ApiKey, | ||
[Parameter(Mandatory=$True)] | ||
[string] $SourceBranch, | ||
[Parameter(Mandatory=$True)] | ||
[string] $DefaultBranch, | ||
[Parameter(Mandatory=$True)] | ||
[string] $ConfigFileDir, | ||
[string] $RepoName, | ||
[string] $BuildId, | ||
[bool] $MarkPackageAsShipped = $false | ||
) | ||
|
||
|
||
Write-Host "$PSScriptRoot" | ||
. (Join-Path $PSScriptRoot .. common scripts common.ps1) | ||
$createReviewScript = (Join-Path $PSScriptRoot .. common scripts Create-APIReview.ps1) | ||
|
||
$artifactList = @() | ||
foreach ($sdk in (Get-AllPackageInfoFromRepo $ServiceDirectory)) | ||
{ | ||
Write-Host "Creating API review artifact for $($sdk.Name)" | ||
New-Item -ItemType Directory -Path $OutPath/$($sdk.Name) -force | ||
$fileName = Split-Path -Path $sdk.Name -Leaf | ||
Compress-Archive -Path $sdk.DirectoryPath -DestinationPath $outPath/$($sdk.Name)/$fileName -force | ||
Rename-Item $outPath/$($sdk.Name)/$fileName.zip -NewName "$fileName.gosource" | ||
|
||
$artifactList += [PSCustomObject]@{ | ||
name = $sdk.Name | ||
} | ||
} | ||
|
||
Write-Host "Create Go APIView using generated artifacts" | ||
&($createReviewScript) -ArtifactList $artifactList -ArtifactPath $outPath -APIKey $ApiKey -SourceBranch $SourceBranch -DefaultBranch $DefaultBranch -ConfigFileDir $ConfigFileDir -RepoName $RepoName -BuildId $BuildId -MarkPackageAsShipped $MarkPackageAsShipped |
This file was deleted.
Oops, something went wrong.