Post AzDO build summary to PR comments#11251
Draft
simonrozsival wants to merge 13 commits intomainfrom
Draft
Conversation
Add a PR pipeline stage that summarizes Azure DevOps timeline results and posts them to the GitHub PR conversation for each build run. Include conservative Copilot mention handling for Copilot-authored and opted-in contributor PRs, plus an intentional smoke-test failure to validate the summary path. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Collaborator
Azure DevOps build summaryResult: In progress
Stages
Jobs needing attention
Tasks needing attention
Failed tests
|
Post an initial in-progress summary comment at the start of PR builds and update the same PR-wide comment when the final summary stage runs. Skip canceled superseded builds so stale canceled-run summaries do not replace the latest running status. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Run the start and final PR build-summary comment jobs on the same MAUI-1ESPT Linux pool used by existing pipeline jobs, avoiding the queued/stuck behavior seen with AzurePipelines-EO plus a Linux image. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
When older in-flight builds create comments with the previous build-id marker, update every comment containing the build-summary marker so no stale build status remains visible on the PR thread. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Keep the first build-summary marker comment as the canonical latest-status comment and delete duplicate marker comments created by earlier in-flight builds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Do not assume GitHub comment API responses include html_url after update/delete paths; log a generic success when the URL is unavailable. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Before posting a PR build summary comment, query the latest Azure DevOps build for the current definition and source branch. Superseded builds now exit without overwriting the latest PR-thread status. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Validation
Notes
This PR is intentionally red. The failing test should be removed before this becomes ready for review/merge.