Skip to content

Sync eng/common directory with azure-sdk-tools for PR 11974#6723

Merged
praveenkuttappan merged 5 commits intomainfrom
sync-eng/common-add_optional_release_plan_id-11974
Sep 6, 2025
Merged

Sync eng/common directory with azure-sdk-tools for PR 11974#6723
praveenkuttappan merged 5 commits intomainfrom
sync-eng/common-add_optional_release_plan_id-11974

Conversation

@azure-sdk
Copy link
Collaborator

Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#11974 See eng/common workflow

@azure-sdk azure-sdk requested review from Copilot and removed request for Copilot September 5, 2025 01:00
@azure-sdk azure-sdk requested a review from a team as a code owner September 5, 2025 01:00
@azure-sdk azure-sdk added EngSys This issue is impacting the engineering system. Central-EngSys This issue is owned by the Engineering System team. labels Sep 5, 2025
Copilot AI review requested due to automatic review settings September 5, 2025 16:46
@azure-sdk azure-sdk force-pushed the sync-eng/common-add_optional_release_plan_id-11974 branch from 1e33056 to 864a566 Compare September 5, 2025 16:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR syncs the eng/common directory with azure-sdk-tools repository to add functionality for updating pull request information in release plan work items. The changes introduce a new PowerShell script and helper functions to manage pull request URLs and status updates within Azure DevOps work items.

Key changes:

  • Added a new PowerShell script to update pull request information in release plans
  • Extended DevOps work item helpers with functions to manage pull request data and retrieve release plan links

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
eng/common/scripts/Update-PullRequest-In-ReleasePlan.ps1 New script that accepts parameters for updating pull request URLs and status in release plan work items
eng/common/scripts/Helpers/DevOps-WorkItem-Helpers.ps1 Added helper functions for updating pull request information and retrieving release plan links

$releasePlan = Get-ReleasePlan-Link $ReleasePlanWorkItemId
if (!$releasePlan)
{
LogError "Release plan with ID $ReleasePlanWorkItemId not found."
Copy link

Copilot AI Sep 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The script continues execution after logging an error when the release plan is not found. This will cause the Update-PullRequestInReleasePlan function call on line 46 to proceed with a null/invalid work item ID, which could lead to unexpected behavior or errors. Add a return statement or exit after the LogError call.

Suggested change
LogError "Release plan with ID $ReleasePlanWorkItemId not found."
LogError "Release plan with ID $ReleasePlanWorkItemId not found."
exit 1

Copilot uses AI. Check for mistakes.
@azure-sdk azure-sdk force-pushed the sync-eng/common-add_optional_release_plan_id-11974 branch from 864a566 to 0087b3b Compare September 5, 2025 16:50
@azure-sdk azure-sdk force-pushed the sync-eng/common-add_optional_release_plan_id-11974 branch from 0087b3b to db771df Compare September 5, 2025 16:54
@praveenkuttappan praveenkuttappan merged commit f550fd0 into main Sep 6, 2025
35 of 39 checks passed
@praveenkuttappan praveenkuttappan deleted the sync-eng/common-add_optional_release_plan_id-11974 branch September 6, 2025 01:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Central-EngSys This issue is owned by the Engineering System team. EngSys This issue is impacting the engineering system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants