Skip to content

chore: pass version through to server #155

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

Merged
merged 1 commit into from
Apr 7, 2025
Merged

Conversation

SamMorrowDrums
Copy link
Collaborator

Just noticed that this was not wired up, and it should be. The server has a version param that was still hard-coded.

@Copilot Copilot AI review requested due to automatic review settings April 7, 2025 15:52
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

A chore PR to wire the version parameter through the server initialization.

  • Updated the server constructor in pkg/github/server.go to accept a version parameter instead of a hard-coded value.
  • Updated the instantiation call in cmd/github-mcp-server/main.go to pass the version received from configuration.

Reviewed Changes

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

File Description
pkg/github/server.go Changed the NewServer function signature to include a version parameter in place of "0.0.1".
cmd/github-mcp-server/main.go Modified the call to NewServer to pass the version variable rather than a hard-coded value.

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

@SamMorrowDrums SamMorrowDrums merged commit 7ab5d96 into main Apr 7, 2025
16 checks passed
@SamMorrowDrums SamMorrowDrums deleted the add-version-to-server branch April 7, 2025 15:56
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