Skip to content

API Review Process: Add ADO Work Item metadata and assign architects to Review PRs at creation time#47534

Merged
tjprescott merged 6 commits into
mainfrom
AssociateADOWorkItem
Jun 18, 2026
Merged

API Review Process: Add ADO Work Item metadata and assign architects to Review PRs at creation time#47534
tjprescott merged 6 commits into
mainfrom
AssociateADOWorkItem

Conversation

@tjprescott

Copy link
Copy Markdown
Member

This PR does two main things:

  1. Retrieves the ADO Package Work Item at the time of Review PR creation and stores it in the PR metadata block. This will be used by future phases.

  2. Adds an ARCHITECTS file to .github that functions like CODEOWNERS (same format) but is only used for assigning reviews on API Review PRs.

Copilot AI review requested due to automatic review settings June 16, 2026 19:29
@tjprescott
tjprescott requested review from a team, benbp, danieljurek and l0lawrence as code owners June 16, 2026 19:29
@tjprescott
tjprescott requested a review from kashifkhan June 16, 2026 19:29

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.

⚠️ Not ready to approve

The workflow currently makes azsdk a hard prerequisite even when work item metadata is optional and uses fnmatch semantics that can diverge from CODEOWNERS-style matching, potentially requesting incorrect reviewers.

Pull request overview

This PR enhances the API review PR creation workflow by (a) enriching the PR body sync metadata with the related ADO package work item ID and (b) automatically requesting API architecture reviewers based on a new .github/ARCHITECTS ownership map.

Changes:

  • Adds azsdk package find-work-item integration to capture and persist packageWorkItemId in the hidden PR metadata block.
  • Introduces .github/ARCHITECTS (CODEOWNERS-like) and requests matching GitHub users as reviewers when the API review PR is created/reused.
  • Expands unit tests to cover azsdk lookup, ARCHITECTS resolution, and reviewer assignment behaviors.
File summaries
File Description
scripts/api_md_workflow/create_api_review_pr.py Adds azsdk work item lookup, ARCHITECTS parsing, and GitHub reviewer-request logic.
scripts/api_md_workflow/create_api_review_pr_test.py Adds coverage for new work item and architect assignment behavior.
.github/skills/create-api-review-pr/SKILL.md Updates skill prerequisites/flow to account for azsdk-driven work item lookup.
.github/ARCHITECTS Adds CODEOWNERS-style mapping for API architecture reviewer assignment.

Copilot's findings

  • Files reviewed: 4/4 changed files
  • Comments generated: 5

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread scripts/api_md_workflow/create_api_review_pr.py
Comment thread scripts/api_md_workflow/create_api_review_pr.py Outdated
Comment thread scripts/api_md_workflow/create_api_review_pr.py Outdated
Comment thread scripts/api_md_workflow/create_api_review_pr.py Outdated
Comment thread scripts/api_md_workflow/create_api_review_pr.py Outdated

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.

⚠️ Not ready to approve

Several newly added unit tests assert outdated package_work_item_id() return values/messages that no longer match the implementation and will fail.

Copilot's findings
  • Files reviewed: 4/4 changed files
  • Comments generated: 8

Note

Your feedback helps us improve the quality of this feature.
Please use 👍 or 👎 to tell us whether this assessment is correct.

Comment thread scripts/api_md_workflow/create_api_review_pr_test.py Outdated
Comment thread scripts/api_md_workflow/create_api_review_pr_test.py
Comment thread scripts/api_md_workflow/create_api_review_pr_test.py Outdated
Comment thread scripts/api_md_workflow/create_api_review_pr_test.py
Comment thread scripts/api_md_workflow/create_api_review_pr_test.py Outdated
Comment thread scripts/api_md_workflow/create_api_review_pr_test.py
Comment thread scripts/api_md_workflow/create_api_review_pr.py
Comment thread .github/ARCHITECTS Outdated
Comment thread .github/ARCHITECTS
Comment thread .github/skills/create-api-review-pr/SKILL.md
Comment thread .github/ARCHITECTS
@tjprescott
tjprescott requested a review from mikeharder as a code owner June 17, 2026 18:05
@tjprescott
tjprescott merged commit ff35565 into main Jun 18, 2026
18 checks passed
@tjprescott
tjprescott deleted the AssociateADOWorkItem branch June 18, 2026 17:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants