Skip to content

[WIP] Fix related runs link rendering issue in footer - #53727

Closed
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-related-runs-link
Closed

[WIP] Fix related runs link rendering issue in footer#53727
pelikhan with Copilot wants to merge 1 commit into
mainfrom
copilot/fix-related-runs-link

Conversation

Copilot AI commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>Footer 'related runs' link leaks as raw markdown due to unencoded double-quote in search URL</issue_title>
<issue_description>## Description

The [⊙](url) link in the gh-aw-generated footer does not render as a hyperlink in GitHub Markdown. Instead, it appears as raw markdown text.

Example: elastic/docs-content#7906 (comment by TriageBot)

Rendered output:

> Generated by [Gh Aw Issue Auto Triage](https://github.com/elastic/docs-eng-team/actions/runs/31582206823) for github/gh-aw#742 · gpt50mini · 4.34 AIC · ⊕ 1.62 AIC · ⊞ 26.6K · [⊙](https://github.com/search?q=repo%3Aelastic%2Fdocs-eng-team+is%3Aissue+"gh-aw-workflow-call-id%3Aelastic%2Fdocs-eng-team%2Fgh-aw-issue-auto-triage%22 & type=issues)

The last [⊙](url) renders as literal text instead of a clickable link.

Root cause

The search URL in the "related runs" link contains a literal, unencoded double-quote " as the opening delimiter of the phrase search, while the closing double-quote is properly percent-encoded as %22:

...+is%3Aissue+"gh-aw-workflow-call-id%3A...%22 & type=issues
             ↑ literal "          ↑ encoded %22

CommonMark's inline link parser allows an optional title after the URL, delimited by ". When it encounters the unencoded " inside the parenthesised URL, it interprets the remainder as a title attribute. Because the title never closes cleanly, the entire link fails to parse and falls back to raw text.

Fix

Encode the opening double-quote as %22 consistently in the search URL builder inside process_safe_outputs.cjs (bundled via github/gh-aw-actions/setup). The resulting URL should be:

...+is%3Aissue+%22gh-aw-workflow-call-id%3A...%22&type=issues

Affected version

gh-aw-actions/setup v0.86.1 (GH_AW_INFO_VERSION: "1.0.78", GH_AW_INFO_AWF_VERSION: "v0.27.44")</issue_description>

Comments on the Issue (you are @copilot in this section)

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.

Footer 'related runs' link leaks as raw markdown due to unencoded double-quote in search URL

2 participants