Skip to content

docs(conditions): link GitHub-sourced attributes to their GitHub documentation#12022

Merged
mergify[bot] merged 1 commit into
mainfrom
devs/JulianMaurin/github-sourced-attributes/link-github-sourced-attributes-their-github-docs--f95fda51
Jul 6, 2026
Merged

docs(conditions): link GitHub-sourced attributes to their GitHub documentation#12022
mergify[bot] merged 1 commit into
mainfrom
devs/JulianMaurin/github-sourced-attributes/link-github-sourced-attributes-their-github-docs--f95fda51

Conversation

@JulianMaurin

@JulianMaurin JulianMaurin commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

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

Copilot AI review requested due to automatic review settings July 3, 2026 13:28
@mergify mergify Bot had a problem deploying to Mergify Merge Protections July 3, 2026 13:28 Failure
@mergify

mergify Bot commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

Merge Protections

🟢 All 7 merge protections satisfied — ready to merge.

Show 7 satisfied protections

🟢 ⛓️ Depends-On Requirements

Requirement based on the presence of Depends-On in the body of the pull request

  • depends-on = Mergifyio/monorepo#36225 [⛓️ Mergifyio/monorepo#36225]

🟢 🤖 Continuous Integration

  • all of:
    • check-success = build
    • check-success = lint
    • check-success = test
    • any of:
      • check-success = test-broken-links
      • label = ignore-broken-links
    • any of:
      • check-success=Cloudflare Pages
      • -head-repo-full-name~=^Mergifyio/

🟢 👀 Review Requirements

  • any of:
    • #approved-reviews-by >= 2
    • author = dependabot[bot]
    • author = mergify-ci-bot

🟢 Enforce conventional commit

Make sure that we follow https://www.conventionalcommits.org/en/v1.0.0/

  • title ~= ^(fix|feat|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?:

🟢 🔎 Reviews

  • #changes-requested-reviews-by = 0
  • #review-requested = 0
  • #review-threads-unresolved = 0

🟢 📕 PR description

  • body ~= (?ms:.{48,})

🟢 🚦 Auto-queue

When all merge protections are satisfied, this pull request will be queued automatically.

@mergify mergify Bot requested a review from a team July 3, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 read documentation_url from 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.

Comment thread src/util/schemaToMarkdown.ts
…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
@JulianMaurin JulianMaurin force-pushed the devs/JulianMaurin/github-sourced-attributes/link-github-sourced-attributes-their-github-docs--f95fda51 branch from 63b3337 to a753e69 Compare July 3, 2026 13:44
@JulianMaurin

Copy link
Copy Markdown
Contributor Author

Revision history

# Type Changes Reason Date
1 initial 63b3337 2026-07-03 13:44 UTC
2 content 63b3337 → a753e69 (raw) review: escape documentation_url in the markdown table cell; commit wording now says the md export renders the link inline 2026-07-03 13:44 UTC

@mergify mergify Bot deployed to Mergify Merge Protections July 3, 2026 13:45 Active
@mergify mergify Bot requested a review from a team July 3, 2026 13:59
@JulianMaurin JulianMaurin marked this pull request as ready for review July 6, 2026 15:08
@mergify

mergify Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

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

@mergify mergify Bot added the queued label Jul 6, 2026
@mergify mergify Bot merged commit 460c5d9 into main Jul 6, 2026
8 of 13 checks passed
@mergify mergify Bot deleted the devs/JulianMaurin/github-sourced-attributes/link-github-sourced-attributes-their-github-docs--f95fda51 branch July 6, 2026 15:13
@mergify mergify Bot removed the queued label Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants