Add agentic management SDK PR review workflow - #48511
Merged
Yuchao Yan (msyyc) merged 3 commits intoAug 10, 2026
Merged
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7ab228dc-97fc-4bca-acb2-884fbda8c40c
|
Azure Pipelines: Successfully started running 1 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Azure Pipelines: Successfully started running 1 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7ab228dc-97fc-4bca-acb2-884fbda8c40c
Yuchao Yan (msyyc)
marked this pull request as draft
August 10, 2026 06:42
Yuchao Yan (msyyc)
marked this pull request as ready for review
August 10, 2026 06:43
|
Azure Pipelines: Successfully started running 1 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a label-triggered agentic workflow for management SDK PR reviews.
Changes:
- Collects management-package and API-version context.
- Applies current default-branch review rules.
- Generates the executable workflow lock file.
Reviewed changes
Copilot reviewed 1 out of 2 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
.github/workflows/mgmt-sdk-pr-review.md |
Defines review logic and agent instructions. |
.github/workflows/mgmt-sdk-pr-review.lock.yml |
Compiled GitHub Actions workflow. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Contributor
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.
Suppressed comments (2)
.github/workflows/mgmt-sdk-pr-review.md:167
/pulls/{number}/commitsreturns at most 250 commits, so on a larger PR this value is the 250th commit rather than the actual latest commit. The drift check and all subsequent review evidence would therefore be evaluated against stale state. Read the current PR's validatedhead.shaforlatest_revisionwhile retaining the commit list only to obtain the first revision, then regenerate the lock file.
latest_revision = commit_shas[-1]
.github/workflows/mgmt-sdk-pr-review.md:157
- Renamed files are matched only by their new
filename. GitHub exposes the old path asprevious_filename, so renaming a management package to a path that no longer matches this pattern makesaffectedPackagesempty and the workflow incorrectly reports that the review is not applicable. Collect matches from both fields (and retain the previous path inchangedFiles), then regenerate the lock file.
for item in changed_files
if isinstance(item.get("filename"), str)
for match in [PACKAGE_PATTERN.match(item["filename"])]
if match
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 7ab228dc-97fc-4bca-acb2-884fbda8c40c
ChenxiJiang333
approved these changes
Aug 10, 2026
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.
for #48444
Summary
_metadata.jsonAPI versions at the first and latest PR commitsValidation
gh aw compile mgmt-sdk-pr-review --validate