Skip to content

Commit ec86b0f

Browse files
committed
refactor: Update issue function names to use consistent capitalization
1 parent 4ac3230 commit ec86b0f

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

pkg/github/issues.go

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ import (
1414
"github.com/mark3labs/mcp-go/server"
1515
)
1616

17-
// getIssue creates a tool to get details of a specific issue in a GitHub repository.
18-
func getIssue(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
17+
// GetIssue creates a tool to get details of a specific issue in a GitHub repository.
18+
func GetIssue(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
1919
return mcp.NewTool("get_issue",
2020
mcp.WithDescription(t("TOOL_GET_ISSUE_DESCRIPTION", "Get details of a specific issue in a GitHub repository.")),
2121
mcp.WithString("owner",
@@ -68,8 +68,8 @@ func getIssue(client *github.Client, t translations.TranslationHelperFunc) (tool
6868
}
6969
}
7070

71-
// addIssueComment creates a tool to add a comment to an issue.
72-
func addIssueComment(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
71+
// AddIssueComment creates a tool to add a comment to an issue.
72+
func AddIssueComment(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
7373
return mcp.NewTool("add_issue_comment",
7474
mcp.WithDescription(t("TOOL_ADD_ISSUE_COMMENT_DESCRIPTION", "Add a comment to an existing issue")),
7575
mcp.WithString("owner",
@@ -134,8 +134,8 @@ func addIssueComment(client *github.Client, t translations.TranslationHelperFunc
134134
}
135135
}
136136

137-
// searchIssues creates a tool to search for issues and pull requests.
138-
func searchIssues(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
137+
// SearchIssues creates a tool to search for issues and pull requests.
138+
func SearchIssues(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
139139
return mcp.NewTool("search_issues",
140140
mcp.WithDescription(t("TOOL_SEARCH_ISSUES_DESCRIPTION", "Search for issues and pull requests across GitHub repositories")),
141141
mcp.WithString("q",
@@ -214,8 +214,8 @@ func searchIssues(client *github.Client, t translations.TranslationHelperFunc) (
214214
}
215215
}
216216

217-
// createIssue creates a tool to create a new issue in a GitHub repository.
218-
func createIssue(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
217+
// CreateIssue creates a tool to create a new issue in a GitHub repository.
218+
func CreateIssue(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
219219
return mcp.NewTool("create_issue",
220220
mcp.WithDescription(t("TOOL_CREATE_ISSUE_DESCRIPTION", "Create a new issue in a GitHub repository")),
221221
mcp.WithString("owner",
@@ -328,8 +328,8 @@ func createIssue(client *github.Client, t translations.TranslationHelperFunc) (t
328328
}
329329
}
330330

331-
// listIssues creates a tool to list and filter repository issues
332-
func listIssues(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
331+
// ListIssues creates a tool to list and filter repository issues
332+
func ListIssues(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
333333
return mcp.NewTool("list_issues",
334334
mcp.WithDescription(t("TOOL_LIST_ISSUES_DESCRIPTION", "List issues in a GitHub repository with filtering options")),
335335
mcp.WithString("owner",
@@ -442,8 +442,8 @@ func listIssues(client *github.Client, t translations.TranslationHelperFunc) (to
442442
}
443443
}
444444

445-
// updateIssue creates a tool to update an existing issue in a GitHub repository.
446-
func updateIssue(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
445+
// UpdateIssue creates a tool to update an existing issue in a GitHub repository.
446+
func UpdateIssue(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
447447
return mcp.NewTool("update_issue",
448448
mcp.WithDescription(t("TOOL_UPDATE_ISSUE_DESCRIPTION", "Update an existing issue in a GitHub repository")),
449449
mcp.WithString("owner",
@@ -580,8 +580,8 @@ func updateIssue(client *github.Client, t translations.TranslationHelperFunc) (t
580580
}
581581
}
582582

583-
// getIssueComments creates a tool to get comments for a GitHub issue.
584-
func getIssueComments(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
583+
// GetIssueComments creates a tool to get comments for a GitHub issue.
584+
func GetIssueComments(client *github.Client, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
585585
return mcp.NewTool("get_issue_comments",
586586
mcp.WithDescription(t("TOOL_GET_ISSUE_COMMENTS_DESCRIPTION", "Get comments for a GitHub issue")),
587587
mcp.WithString("owner",

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy