Skip to content

Commit f50d21c

Browse files
authored
Escape prId variable in url. (#4350)
1 parent b5575bc commit f50d21c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

eng/pipelines/scripts/Sync-GitHubToAdo.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ if ($activePr) {
250250
Write-Host "Active PR #$prId found. Updating description and posting comment..."
251251

252252
# 1. PATCH the PR description with the refreshed commit summary.
253-
$patchUri = "$apiBase/pullrequests/$prId?api-version=7.1"
253+
$patchUri = "$apiBase/pullrequests/${prId}?api-version=7.1"
254254
$patchBody = @{
255255
description = "## Automated GitHub Sync`n`nThis PR was updated automatically by the GitHub sync pipeline.`n`nSource: [dotnet/SqlClient@$GitHubBranch](https://github.com/dotnet/SqlClient/tree/$GitHubBranch)`nSync branch: ``$SyncBranchName```n`n### Latest Commits`n`n$commitSummary`n`n---`n_This PR requires manual review and merge. Auto-complete is not enabled._"
256256
}

0 commit comments

Comments
 (0)