Skip to content

fix: make SHA and Ref values links to tree in external plugin intake comments#2100

Merged
aaronpowell merged 7 commits into
stagedfrom
aaronpowell-fix-sha-ref-links-in-plugin-comment
Jun 23, 2026
Merged

fix: make SHA and Ref values links to tree in external plugin intake comments#2100
aaronpowell merged 7 commits into
stagedfrom
aaronpowell-fix-sha-ref-links-in-plugin-comment

Conversation

@aaronpowell

Copy link
Copy Markdown
Contributor

In the external plugin intake comment (e.g. issue #2089), the SHA and Ref fields were rendered as plain text. This makes it tedious to navigate to the actual plugin source at that point in time.

Both fields now render as clickable markdown links pointing to https://github.com/{repo}/tree/{sha_or_ref}, so reviewers can jump directly to the plugin's tree at the pinned ref or commit.

Updated both comment-generation paths in eng/external-plugin-intake.mjs:

  • applyQualityGateResult (quality gates + intake combined comment)
  • generateIntakeComment (intake-only comment)

…comments

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings June 23, 2026 02:42

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve the external plugin intake comment by rendering the submitted Ref and SHA as clickable GitHub tree links so reviewers can jump directly to the exact source snapshot.

Changes:

  • Update the merged intake + quality gates comment to linkify Ref/SHA.
  • Update the intake-only comment to linkify Ref/SHA.
Show a summary per file
File Description
eng/external-plugin-intake.mjs Updates intake comment rendering to turn Ref/SHA values into GitHub tree links.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread eng/external-plugin-intake.mjs Outdated
Comment thread eng/external-plugin-intake.mjs Outdated
aaronpowell and others added 2 commits June 23, 2026 14:04
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread eng/external-plugin-intake.mjs Outdated
Comment thread eng/external-plugin-intake.mjs Outdated
aaronpowell and others added 2 commits June 23, 2026 14:11
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 2

Comment thread eng/external-plugin-intake.mjs Outdated
`- **Repository:** ${baseResult.plugin?.repository ?? "unknown"}`,
baseResult.plugin?.source?.ref ? `- **Ref:** ${baseResult.plugin.source.ref}` : undefined,
baseResult.plugin?.source?.sha ? `- **SHA:** ${baseResult.plugin.source.sha}` : undefined,
baseResult.plugin?.source?.ref ? `- **Ref:** [\`${baseResult.plugin.source.ref}\`](https://github.com/${encodeRepoPath(baseResult.plugin.source.repo)}/tree/${encodeURIComponent(baseResult.plugin.source.ref).replaceAll("%2F", "/")})` : undefined,
Comment thread eng/external-plugin-intake.mjs Outdated
aaronpowell and others added 2 commits June 23, 2026 14:24
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@aaronpowell aaronpowell merged commit ec8cb2a into staged Jun 23, 2026
11 checks passed
@aaronpowell aaronpowell deleted the aaronpowell-fix-sha-ref-links-in-plugin-comment branch June 23, 2026 05:50
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.

2 participants