Skip to content

Commit f16a41e

Browse files
committed
Remove stdout prints.
1 parent b057c48 commit f16a41e

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

pkg/github/repository_resource_completions.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ var RepositoryResourceArgumentResolvers = map[string]CompleteHandler{
2727
// RepositoryResourceCompletionHandler returns a CompletionHandlerFunc for repository resource completions.
2828
func RepositoryResourceCompletionHandler(getClient GetClientFn) func(ctx context.Context, req *mcp.CompleteRequest) (*mcp.CompleteResult, error) {
2929
return func(ctx context.Context, req *mcp.CompleteRequest) (*mcp.CompleteResult, error) {
30-
fmt.Println("Handling repository resource completion for", req.Params.Argument.Name)
31-
3230
if req.Params.Ref.Type != "ref/resource" {
3331
return nil, nil // Not a resource completion
3432
}
@@ -76,18 +74,15 @@ func RepositoryResourceCompletionHandler(getClient GetClientFn) func(ctx context
7674
func completeOwner(ctx context.Context, client *github.Client, resolved map[string]string, argValue string) ([]string, error) {
7775
var values []string
7876
user, _, err := client.Users.Get(ctx, "")
79-
fmt.Printf("Found user: %v\n", err)
8077
if err == nil && user.GetLogin() != "" {
8178
values = append(values, user.GetLogin())
82-
fmt.Println("Fetching organizations for user " + user.GetLogin())
8379
}
8480

8581
orgs, _, err := client.Organizations.List(ctx, "", &github.ListOptions{PerPage: 100})
8682
if err != nil {
8783
return nil, err
8884
}
8985
for _, org := range orgs {
90-
fmt.Println("Found organization: " + org.GetLogin())
9186
values = append(values, org.GetLogin())
9287
}
9388

0 commit comments

Comments
 (0)