File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
pipelines/templates/steps Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,12 @@ parameters:
33 Artifacts : []
44
55steps :
6+ - pwsh : |
7+ $apiChangeDetectRequestUrl = "https://apiview.dev/PullRequest/DetectApiChanges"
8+ echo "##vso[task.setvariable variable=ApiChangeDetectRequestUrl]$apiChangeDetectRequestUrl"
9+ displayName: "Set API change detect request URL"
10+ condition: eq(variables['ApiChangeDetectRequestUrl'], '')
11+
612 - task : Powershell@2
713 inputs :
814 filePath : $(Build.SourcesDirectory)/eng/common/scripts/Detect-Api-Changes.ps1
1319 -BuildId $(Build.BuildId)
1420 -PullRequestNumber $(System.PullRequest.PullRequestNumber)
1521 -RepoFullName $(Build.Repository.Name)
22+ -APIViewUri $(ApiChangeDetectRequestUrl)
1623 pwsh : true
1724 displayName : Detect API changes
1825 condition : and(succeededOrFailed(), eq(variables['Build.Reason'],'PullRequest'))
Original file line number Diff line number Diff line change @@ -10,9 +10,9 @@ Param (
1010 [string ] $CommitSha ,
1111 [Parameter (Mandatory = $True )]
1212 [array ] $ArtifactList ,
13+ [string ] $APIViewUri ,
1314 [string ] $RepoFullName = " " ,
1415 [string ] $ArtifactName = " packages" ,
15- [string ] $APIViewUri = " https://apiview.dev/PullRequest/DetectApiChanges" ,
1616 [string ] $TargetBranch = (" origin/${env: SYSTEM_PULLREQUEST_TARGETBRANCH} " -replace " refs/heads/" )
1717)
1818
You can’t perform that action at this time.
0 commit comments