docs(conditions): link GitHub-sourced attributes to their GitHub documentation#12022
Conversation
Merge Protections🟢 All 7 merge protections satisfied — ready to merge. Show 7 satisfied protections🟢 ⛓️ Depends-On RequirementsRequirement based on the presence of
🟢 🤖 Continuous Integration
🟢 👀 Review Requirements
🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 🔎 Reviews
🟢 📕 PR description
🟢 🚦 Auto-queueWhen all merge protections are satisfied, this pull request will be queued automatically. |
There was a problem hiding this comment.
Pull request overview
Adds support for linking GitHub-sourced pull request attributes to their upstream GitHub documentation, using a documentation_url field carried in the schema’s x-mergify-attribute-metadata extension. This improves the attribute reference table in both the docs UI and the markdown/LLM export, while intentionally skipping the search-highlight rendering path to avoid URL corruption.
Changes:
- Added
getAttributeDocumentationUrl()helper to readdocumentation_urlfrom attribute metadata, plus unit tests. - Updated the markdown export to append a “GitHub documentation” link for attributes that carry a documentation URL.
- Updated the HTML attributes table to render a “GitHub documentation” link below the description (omitted for
staticAttributes/ search-highlight rendering), with styling.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| src/util/schemaToMarkdown.ts | Appends a documentation link into the markdown-exported attributes table. |
| src/util/attributeMetadata.ts | Refactors metadata access and adds getAttributeDocumentationUrl(). |
| src/util/attributeMetadata.test.ts | Adds unit tests for the new metadata accessor. |
| src/components/Tables/PullRequestAttributes.tsx | Renders an optional “GitHub documentation” link under the description in the UI table (skipped for search-highlight path). |
| src/components/Tables/PullRequestAttributes.module.css | Adds styling for the new documentation link block. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…mentation Render a "GitHub documentation" link from the documentation_url published in the schema's x-mergify-attribute-metadata extension: under the attribute description in the HTML attributes table, and appended inline to the description cell in the markdown/LLM export. The link is omitted in the search-highlight render path, whose highlight markers would corrupt the URL. Until the engine schema carrying documentation_url is synced, the tables render unchanged. Depends-On: Mergifyio/monorepo#36225 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012ZfAq32gVtFih34eYFeEAr Change-Id: If95fda51d6ef50cad9a46947c59558fe96a895e3
63b3337 to
a753e69
Compare
Revision history
|
Merge Queue Status
This pull request spent 3 minutes 43 seconds in the queue, including 2 minutes 46 seconds running CI. Required conditions to merge
|
Render a "GitHub documentation" link from the documentation_url published in
the schema's x-mergify-attribute-metadata extension: under the attribute
description in the HTML attributes table, and appended inline to the
description cell in the markdown/LLM export. The link is omitted in the
search-highlight render path, whose highlight markers would corrupt the URL.
Until the engine schema carrying documentation_url is synced, the tables
render unchanged.
Depends-On: Mergifyio/monorepo#36225
Co-Authored-By: Claude Fable 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_012ZfAq32gVtFih34eYFeEAr