Skip to content

Commit e5d77c3

Browse files
committed
lint
1 parent 29373fd commit e5d77c3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pkg/github/issues.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func GetIssue(getClient GetClientFn, t translations.TranslationHelperFunc) (tool
8383

8484
// 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.
8585
func ListIssueTypes(getClient GetClientFn, t translations.TranslationHelperFunc) (tool mcp.Tool, handler server.ToolHandlerFunc) {
86-
86+
8787
return mcp.NewTool("list_issue_types",
8888
mcp.WithDescription(t("TOOL_LIST_ISSUE_TYPES_FOR_ORG", "List supported issue types for repository owner (organization).")),
8989
mcp.WithToolAnnotation(mcp.ToolAnnotation{
@@ -105,7 +105,7 @@ func ListIssueTypes(getClient GetClientFn, t translations.TranslationHelperFunc)
105105
if err != nil {
106106
return nil, fmt.Errorf("failed to get GitHub client: %w", err)
107107
}
108-
issue_types, resp, err := client.Organizations.ListIssueTypes(ctx, owner)
108+
issueTypes, resp, err := client.Organizations.ListIssueTypes(ctx, owner)
109109
if err != nil {
110110
return nil, fmt.Errorf("failed to list issue types: %w", err)
111111
}
@@ -119,7 +119,7 @@ func ListIssueTypes(getClient GetClientFn, t translations.TranslationHelperFunc)
119119
return mcp.NewToolResultError(fmt.Sprintf("failed to list issue types: %s", string(body))), nil
120120
}
121121

122-
r, err := json.Marshal(issue_types)
122+
r, err := json.Marshal(issueTypes)
123123
if err != nil {
124124
return nil, fmt.Errorf("failed to marshal issue types: %w", err)
125125
}

0 commit comments

Comments
 (0)