Repository navigation
Make the CODEOWNERS reviewer-explanation section collapsible - #20
Merged
martinlocklear merged 1 commit intoJul 20, 2026
Merged
Conversation
Keep the [!IMPORTANT] callout (headline, team count, provenance) visible and move the per-team file/pattern breakdown into a default-collapsed <details> block, so the detail is one click away instead of always-on clutter. The callout stays outside the <details> because GitHub does not render alert callouts nested inside one; they degrade to a plain blockquote. Rendering-only: the DOMAIN_REVIEW_REASONS markers, comment and body publish paths, and the edit-only-on-change idempotency guard are unchanged. Update and extend the render tests for the plain non-blockquoted breakdown lines, the new callout wording, the default-collapsed details block, and team-count and verb agreement. [authored by Cursor] Co-authored-by: Cursor <cursoragent@cursor.com>
Contributor
Author
|
[authored by Cursor] Conversation summaryThis PR originated from a request to reduce clutter in the automated PR sections by pushing the reviewer-explanation detail (which teams Plan doc: Collapsible reviewer explanation Key decisions
Alternatives considered
|
Contributor
Author
|
[authored by Cursor] Example renderHere is how the new collapsible reviewer-explanation section renders (comment variant, on a sample PR touching three teams' files). The Important Why these teams were requested for review Which teams and files (3)
|
martinlocklear
marked this pull request as ready for review
July 8, 2026 21:04
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.
[authored by Cursor]
Summary
[!IMPORTANT]reviewer-explanation callout visible (headline, team count, provenance) and move the per-team file/pattern breakdown into a default-collapsed<details>block.DOMAIN_REVIEW_REASONSmarkers, comment/body plumbing, and the edit-only-on-change idempotency guard are unchanged; this is a rendering-only change.Motivation
These PRs now carry a lot of always-visible automated output. This pushes the verbose file/pattern breakdown one click down so it stays discoverable without cluttering the PR. The callout has to stay outside the collapsed region because GitHub does not render alert callouts inside
<details>(they degrade to plain blockquotes).Background: Collapsible reviewer explanation plan
Test plan
ruff check .github/scriptsandruff format --check .github/scriptspasspytest .github/scripts/test_pr_labeler.py— 117 passing