Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR updates the naming of various repository functions and tool definitions to export them on the public interface.
- Renamed resource functions from lower-case to exported (capitalized) versions in pkg/github/server.go, pkg/github/repository_resource.go, and corresponding test files.
- Updated tool functions in pkg/github/repositories.go and pkg/github/repositories_test.go to use capitalized, exported names.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pkg/github/server.go | Updated calls to resource functions to their exported versions. |
| pkg/github/repository_resource_test.go | Updated tests to use exported resource handler functions. |
| pkg/github/repository_resource.go | Renamed resource functions and handler to exported names. |
| pkg/github/repositories_test.go | Updated tests to use exported tool function names. |
| pkg/github/repositories.go | Renamed tool functions to exported names. |
Comments suppressed due to low confidence (1)
pkg/github/server.go:59
- [nitpick] The function 'searchRepositories' remains unexported while other repository functions have been updated to exported versions. Consider renaming it to 'SearchRepositories' for naming consistency if it is meant to be part of the public interface.
s.AddTool(searchRepositories(client, t))
e5986df to
e4ae809
Compare
7ec5938 to
f2bbc19
Compare
DaleSeo
pushed a commit
to DaleSeo/github-mcp-server
that referenced
this pull request
Oct 24, 2025
* feat: add Apify MCP Server * fix icon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Export repository funcs to the public interface.