You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// ListIssueTypes creates a tool to list defined issue types for an organization. This can be used to understand supported issue type values for creating or updating issues.
477
-
funcListIssueTypes(getClientGetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
480
+
funcListIssueTypes(getClientGetClientFn, t translations.TranslationHelperFunc, flagsFeatureFlags) (tool mcp.Tool, handler server.ToolHandlerFunc) {
478
481
479
482
returnmcp.NewTool("list_issue_types",
480
483
mcp.WithDescription(t("TOOL_LIST_ISSUE_TYPES_FOR_ORG", "List supported issue types for repository owner (organization).")),
@@ -511,12 +514,7 @@ func ListIssueTypes(getClient GetClientFn, t translations.TranslationHelperFunc)
511
514
returnmcp.NewToolResultError(fmt.Sprintf("failed to list issue types: %s", string(body))), nil
512
515
}
513
516
514
-
r, err:=json.Marshal(issueTypes)
515
-
iferr!=nil {
516
-
returnnil, fmt.Errorf("failed to marshal issue types: %w", err)
// SearchIssues creates a tool to search for issues.
810
-
funcSearchIssues(getClientGetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
808
+
funcSearchIssues(getClientGetClientFn, t translations.TranslationHelperFunc, flagsFeatureFlags) (tool mcp.Tool, handler server.ToolHandlerFunc) {
811
809
returnmcp.NewTool("search_issues",
812
810
mcp.WithDescription(t("TOOL_SEARCH_ISSUES_DESCRIPTION", "Search for issues in GitHub repositories using issues search syntax already scoped to is:issue")),
813
811
mcp.WithToolAnnotation(mcp.ToolAnnotation{
@@ -847,7 +845,7 @@ func SearchIssues(getClient GetClientFn, t translations.TranslationHelperFunc) (
Copy file name to clipboardExpand all lines: pkg/github/pullrequests.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -828,7 +828,7 @@ func ListPullRequests(getClient GetClientFn, t translations.TranslationHelperFun
828
828
}
829
829
}
830
830
831
-
returnFormatResponse(prs, flags, "")
831
+
returnFormatResponse(prs, flags)
832
832
}
833
833
}
834
834
@@ -926,7 +926,7 @@ func MergePullRequest(getClient GetClientFn, t translations.TranslationHelperFun
926
926
}
927
927
928
928
// SearchPullRequests creates a tool to search for pull requests.
929
-
funcSearchPullRequests(getClientGetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
929
+
funcSearchPullRequests(getClientGetClientFn, t translations.TranslationHelperFunc, flagsFeatureFlags) (tool mcp.Tool, handler server.ToolHandlerFunc) {
930
930
returnmcp.NewTool("search_pull_requests",
931
931
mcp.WithDescription(t("TOOL_SEARCH_PULL_REQUESTS_DESCRIPTION", "Search for pull requests in GitHub repositories using issues search syntax already scoped to is:pr")),
932
932
mcp.WithToolAnnotation(mcp.ToolAnnotation{
@@ -966,7 +966,7 @@ func SearchPullRequests(getClient GetClientFn, t translations.TranslationHelperF
0 commit comments