Skip to content

Include pipeline run link in generated azure-sdk-for-net upgrade PR#10829

Merged
jorgerangel-msft merged 2 commits into
mainfrom
copilot/include-pipeline-run-link
May 28, 2026
Merged

Include pipeline run link in generated azure-sdk-for-net upgrade PR#10829
jorgerangel-msft merged 2 commits into
mainfrom
copilot/include-pipeline-run-link

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 28, 2026

PRs auto-created by the C# emitter publish pipeline in azure-sdk-for-net (e.g. Azure/azure-sdk-for-net#59504) had no link back to the Azure DevOps pipeline run that produced them, making traceability painful.

Changes

  • packages/http-client-csharp/eng/scripts/Submit-AzureSdkForNetPr.ps1 — added an optional -PipelineRunUrl parameter. When supplied, it renders as an extra bullet under the existing Details section using the same $(if (...) { @"..."@ }) pattern already used for the optional regen sections; when omitted (e.g. local runs) the PR body is unchanged.
  • packages/http-client-csharp/eng/pipeline/publish.yml — composed the URL from built-in ADO variables (System.CollectionUri / System.TeamProject / Build.BuildId) to match the shape from the issue (https://dev.azure.com/azure-sdk/<project>/_build/results?buildId=<id>&view=results), exposed it as $(PipelineRunUrl), and passed it through to the script.

Resulting PR body excerpt

## Details

- TypeSpec commit that triggered this PR: https://github.com/microsoft/typespec/commit/<sha>
- Pipeline run that produced this PR: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=<id>&view=results

Co-authored-by: jorgerangel-msft <102122018+jorgerangel-msft@users.noreply.github.com>
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp label May 28, 2026
Copilot AI changed the title [WIP] Add pipeline run link in generated upgrade PR for Emitter Include pipeline run link in generated azure-sdk-for-net upgrade PR May 28, 2026
Copilot AI requested a review from jorgerangel-msft May 28, 2026 17:27
@jorgerangel-msft jorgerangel-msft marked this pull request as ready for review May 28, 2026 19:02
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 28, 2026

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-client-csharp@10829

commit: 49fb1b9

@jorgerangel-msft jorgerangel-msft added this pull request to the merge queue May 28, 2026
Merged via the queue into main with commit 00df979 May 28, 2026
29 checks passed
@jorgerangel-msft jorgerangel-msft deleted the copilot/include-pipeline-run-link branch May 28, 2026 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:csharp Issue for the C# client emitter: @typespec/http-client-csharp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include Pipeline Run Link in Generated Upgrade PR for Emitter

3 participants