azure-sdk-for-cpp/eng/common/scripts/Update-PullRequest-In-ReleasePlan.ps1
Azure SDK Bot f550fd038e
Sync eng/common directory with azure-sdk-tools for PR 11974 (#6723)
* Add a script to update pull request URL in release plan from SDK generation pipeline
2025-09-05 21:38:51 -04:00

37 lines
986 B
PowerShell

param(
[Parameter(Mandatory = $true)]
$ReleasePlanWorkItemId,
[Parameter(Mandatory = $true)]
$PullRequestUrl,
[Parameter(Mandatory = $true)]
$Status,
[Parameter(Mandatory = $true)]
$LanguageName
)
<#
.SYNOPSIS
Updates the pull request URL and status in the specified release plan work item for a given programming language.
.PARAMETER ReleasePlanWorkItemId
The ID of the release plan work item to update.
.PARAMETER PullRequestUrl
The URL of the pull request to set in the release plan.
.PARAMETER Status
The status of the pull request.
.PARAMETER LanguageName
The programming language associated with the pull request.
#>
Set-StrictMode -Version 3
. (Join-Path $PSScriptRoot common.ps1)
. (Join-Path $PSScriptRoot Helpers DevOps-WorkItem-Helpers.ps1)
LogDebug "Updating pull request in release plan"
Update-PullRequestInReleasePlan $ReleasePlanWorkItemId $PullRequestUrl $Status $LanguageName
LogDebug "Updated pull request in release plan"