Use CodeFile for pushing Python APIView (#6606)

Co-authored-by: Chidozie Ononiwu <chononiw@microsoft.com>
This commit is contained in:
Azure SDK Bot 2025-06-02 14:50:20 -07:00 committed by GitHub
parent ccf5a0e19f
commit 0363e0b78f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -262,6 +262,9 @@ function Create-API-Review {
$requestParam.Add('pullRequestNumber', $pullRequestNumber)
$requestParam.Add('packageName', $requestData.packageName)
$requestParam.Add('filePath', $requestData.filePath)
if ($language -ieq "python") {
$requestParam.Add('codeFile', Split-Path -Path $requestData.filePath -Leaf)
}
$requestParam.Add('language', $language)
$requestUri.query = $requestParam.toString()
$correlationId = [System.Guid]::NewGuid().ToString()