Skip to content

[Demo] Supporting code to demo Zed integration #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

rubiojr
Copy link
Member

@rubiojr rubiojr commented Mar 14, 2025

Companion PR for https://github.com/github/zed-context-server

Not to be merged.

Screencast.From.2025-03-14.11-44-01.mp4

@Copilot Copilot AI review requested due to automatic review settings March 14, 2025 10:50
Copy link
Contributor

@Copilot 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

This PR adds support for a new GitHub prompt integration to display the authenticated user’s identity for a Zed demo.

  • Introduces a new prompt handler in pkg/github/prompts.go.
  • Enables prompt and tool capabilities in the MCP server configuration in pkg/github/server.go.
  • Registers the new GitHub prompt handler with the server.

Reviewed Changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated no comments.

File Description
pkg/github/prompts.go New prompt handler returning the GitHub user identity.
pkg/github/server.go Updated server configuration to include prompt and tool capabilities and registration.
Files not reviewed (1)
  • go.mod: Language not supported
Comments suppressed due to low confidence (1)

pkg/github/prompts.go:25

  • When the response status code is not 200, 'err' is nil. Update the error handling to capture and provide a meaningful error message or response body content.
return nil, fmt.Errorf("failed to read response body: %w", err)

Tip: If you use Visual Studio Code, you can request a review from Copilot before you push from the "Source Control" tab. Learn more

@rubiojr
Copy link
Member Author

rubiojr commented Mar 19, 2025

Closing, this was for demo purposes only.

@rubiojr rubiojr closed this Mar 19, 2025
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.

1 participant