Add integration code owner workflow#1460
Open
aaronpowell wants to merge 2 commits into
Open
Conversation
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
|
🚀 Dogfood this PR with:
curl -fsSL https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.sh | bash -s -- 1460Or
iex "& { $(irm https://raw.githubusercontent.com/CommunityToolkit/Aspire/main/eng/scripts/dogfood-pr.ps1) } 1460" |
Contributor
There was a problem hiding this comment.
Pull request overview
Adds GitHub Actions automation to prompt new integration PR authors about becoming CODEOWNERS and, upon acceptance, opens/updates a separate PR that updates CODEOWNERS via a shared Node helper script.
Changes:
- Introduces an
integration-codeownerworkflow that prompts on ready-for-review PRs and handles/codeowner-acceptor/codeowner-rejectissue comments. - Adds
.github/scripts/update-codeowners.mjsto safely append CODEOWNERS entries with conflict detection and multi-folder/package support.
Show a summary per file
| File | Description |
|---|---|
| .github/workflows/integration-codeowner.yml | Adds the PR prompt + comment-driven automation that creates/updates a CODEOWNERS PR. |
| .github/scripts/update-codeowners.mjs | Implements deterministic CODEOWNERS mutation logic (validation + conflict detection + append block). |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 3
- Review effort level: Low
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Contributor
|
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.
N/A (no linked issue provided)
Adds PR-based automation for new integration submissions so code owner assignment is only handled after a PR is ready for review. The workflow detects newly added integration packages and example folders from the PR, prompts the author with
/codeowner-acceptand/codeowner-reject, confirms the response, and opens or updates a separate PR to add the matchingCODEOWNERSentries when ownership is accepted.The
update-codeowners.mjshelper centralizes theCODEOWNERSmutation so the workflow can reuse the repository's existing pattern safely, including conflict detection and support for multiple example folders or package IDs. It also tags@CommunityToolkit/aspire-ownerswhen the accepting author is not currently an org member.PR Checklist
Other information
This intentionally uses
pull_request_targetplus a draft check so the prompt only appears on non-draft PRs and when a draft transitions to ready for review. The workflow derives integration metadata directly from PR file paths instead of requiring extra issue-template fields.