Skip to content

Update MCP to reuse branch for SDK generation#12110

Merged
smw-ms merged 4 commits into
Azure:mainfrom
smw-ms:reuse-branch-for-sdk-generation
Sep 18, 2025
Merged

Update MCP to reuse branch for SDK generation#12110
smw-ms merged 4 commits into
Azure:mainfrom
smw-ms:reuse-branch-for-sdk-generation

Conversation

@smw-ms

@smw-ms smw-ms commented Sep 16, 2025

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings September 16, 2025 20:07
@github-actions github-actions Bot added the azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli label Sep 16, 2025

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 enhances the SDK generation workflow to reuse existing branch information from related SDK pull requests. The changes enable the system to identify and use an existing SDK repository branch when generating SDKs, instead of always defaulting to the main branch.

  • Adds logic to extract SDK pull request information from release plans and use the associated branch for SDK generation
  • Updates the SDK generation pipeline to accept and use a configurable SDK repository branch parameter
  • Updates test mocks and method signatures to support the new optional branch parameter

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 3 comments.

File Description
SpecWorkFlowTool.cs Implements logic to extract SDK PR branch from release plan and pass it to the pipeline
DevOpsService.cs Adds optional sdkRepoBranch parameter to SDK generation pipeline method and template
SpecWorkFlowToolTests.cs Updates test mocks to include the new optional branch parameter
MockDevOpsService.cs Updates mock interface to match the new method signature

Comment thread tools/azsdk-cli/Azure.Sdk.Tools.Cli/Tools/ReleasePlan/SpecWorkFlowTool.cs Outdated
Comment thread tools/azsdk-cli/Azure.Sdk.Tools.Cli/Tools/ReleasePlan/SpecWorkFlowTool.cs Outdated
Comment thread tools/azsdk-cli/Azure.Sdk.Tools.Cli.Tests/Tools/SpecWorkFlowToolTests.cs Outdated
@smw-ms smw-ms linked an issue Sep 16, 2025 that may be closed by this pull request
3 tasks
Comment thread tools/azsdk-cli/Azure.Sdk.Tools.Cli/Services/DevOpsService.cs Outdated
Comment thread tools/azsdk-cli/Azure.Sdk.Tools.Cli/Services/DevOpsService.cs Outdated
Comment thread tools/azsdk-cli/Azure.Sdk.Tools.Cli/Tools/ReleasePlan/SpecWorkFlowTool.cs Outdated

@praveenkuttappan praveenkuttappan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Overall looks fine. Minor changes required to remove default branch name.

@smw-ms
smw-ms merged commit 466644b into Azure:main Sep 18, 2025
13 checks passed
@smw-ms
smw-ms deleted the reuse-branch-for-sdk-generation branch October 13, 2025 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

azsdk-cli Issues related to Azure/azure-sdk-tools::tools/azsdk-cli

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update MCP to reuse branch for SDK generation

5 participants