@@ -27,6 +27,7 @@ function Submit-Request($filePath, $packageName)
27
27
if (! $repoName ) {
28
28
$repoName = " azure/azure-sdk-for-$LanguageShort "
29
29
}
30
+ $reviewFileName = " $ ( $packageName ) _$ ( $LanguageShort ) .json"
30
31
$query = [System.Web.HttpUtility ]::ParseQueryString(' ' )
31
32
$query.Add (' artifactName' , $ArtifactName )
32
33
$query.Add (' buildId' , $BuildId )
@@ -35,6 +36,12 @@ function Submit-Request($filePath, $packageName)
35
36
$query.Add (' repoName' , $repoName )
36
37
$query.Add (' pullRequestNumber' , $PullRequestNumber )
37
38
$query.Add (' packageName' , $packageName )
39
+ $query.Add (' language' , $LanguageShort )
40
+ $reviewFileFullName = Join-Path - Path $ArtifactPath $packageName $reviewFileName
41
+ if (Test-Path $reviewFileFullName )
42
+ {
43
+ $query.Add (' codeFile' , $reviewFileName )
44
+ }
38
45
$uri = [System.UriBuilder ]$APIViewUri
39
46
$uri.query = $query.toString ()
40
47
Write-Host " Request URI: $ ( $uri.Uri.OriginalString ) "
@@ -65,7 +72,7 @@ function Should-Process-Package($pkgPath, $packageName)
65
72
# Get package info from json file created before updating version to daily dev
66
73
$pkgInfo = Get-Content $pkgPropPath | ConvertFrom-Json
67
74
$packagePath = $pkgInfo.DirectoryPath
68
- $modifiedFiles = Get-ChangedFiles - DiffPath " $packagePath /*" - DiffFilterType ' '
75
+ $modifiedFiles = @ ( Get-ChangedFiles - DiffPath " $packagePath /*" - DiffFilterType ' ' )
69
76
$filteredFileCount = $modifiedFiles.Count
70
77
Write-Host " Number of modified files for package: $filteredFileCount "
71
78
return ($filteredFileCount -gt 0 -and $pkgInfo.IsNewSdk )
@@ -80,7 +87,6 @@ function Log-Input-Params()
80
87
Write-Host " Language: $ ( $Language ) "
81
88
Write-Host " Commit SHA: $ ( $CommitSha ) "
82
89
Write-Host " Repo Name: $ ( $RepoFullName ) "
83
- Write-Host " Package Name: $ ( $PackageName ) "
84
90
}
85
91
86
92
Log- Input- Params
0 commit comments