Skip to content

chat: populate githubRepo for GitUri marketplace references#302596

Merged
connor4312 merged 2 commits intomainfrom
connor4312/301288
Mar 18, 2026
Merged

chat: populate githubRepo for GitUri marketplace references#302596
connor4312 merged 2 commits intomainfrom
connor4312/301288

Conversation

@connor4312
Copy link
Member

chat: populate githubRepo for GitUri marketplace references

When a plugin marketplace reference is a full GitHub URL (e.g.
https://github.com/anthropics/claude-code) parsed as a GitUri, the
githubRepo property was not being set. This caused the AgentPluginEditor
to render the marketplace link as plain text instead of a clickable link.

  • Add extractGitHubRepo helper that extracts owner/repo from GitHub URLs
  • Set githubRepo on GitUri references when the authority is github.com
  • Also handle SCP-style references (git@github.com:org/repo.git)

Fixes #301288

(Commit message generated by Copilot)

When a plugin marketplace reference is a full GitHub URL (e.g.
https://github.com/anthropics/claude-code) parsed as a GitUri, the
githubRepo property was not being set. This caused the AgentPluginEditor
to render the marketplace link as plain text instead of a clickable link.

- Add extractGitHubRepo helper that extracts owner/repo from GitHub URLs
- Set githubRepo on GitUri references when the authority is github.com
- Also handle SCP-style references (git@github.com:org/repo.git)

Fixes #301288

(Commit message generated by Copilot)
Copilot AI review requested due to automatic review settings March 17, 2026 22:57
@connor4312 connor4312 enabled auto-merge (squash) March 17, 2026 22:57
@vs-code-engineering vs-code-engineering bot added this to the 1.113.0 milestone Mar 17, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes GitHub marketplace links not rendering as clickable in the Agent Plugin editor when a marketplace reference is provided as a full GitHub URL parsed as a GitUri.

Changes:

  • Populate githubRepo for MarketplaceReferenceKind.GitUri references when the authority is github.com.
  • Add extractGitHubRepo() helper to derive owner/repo from GitHub URL/SCP-style inputs.
  • Extend SCP-style parsing to also compute githubRepo.

You can also share your feedback on Copilot code review. Take the survey.

@connor4312 connor4312 merged commit 5d7e4c1 into main Mar 18, 2026
20 checks passed
@connor4312 connor4312 deleted the connor4312/301288 branch March 18, 2026 00:29
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.

Github repo link is not clickable for some plugin marketplace types

3 participants