Skip to content

Commit 70deafb

Browse files
committed
unwire list_branches and list_issue_types
1 parent 07b71f1 commit 70deafb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/github/issues.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ func ListIssueTypes(t translations.TranslationHelperFunc) inventory.ServerTool {
608608
return ghErrors.NewGitHubAPIStatusErrorResponse(ctx, "failed to list issue types", resp, body), nil, nil
609609
}
610610

611-
r, err := response.MarshalItems(issueTypes)
611+
r, err := json.Marshal(issueTypes)
612612
if err != nil {
613613
return utils.NewToolResultErrorFromErr("failed to marshal issue types", err), nil, nil
614614
}

pkg/github/repositories.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ func ListBranches(t translations.TranslationHelperFunc) inventory.ServerTool {
304304
minimalBranches = append(minimalBranches, convertToMinimalBranch(branch))
305305
}
306306

307-
r, err := response.MarshalItems(minimalBranches)
307+
r, err := json.Marshal(minimalBranches)
308308
if err != nil {
309309
return nil, nil, fmt.Errorf("failed to marshal response: %w", err)
310310
}

0 commit comments

Comments
 (0)