Skip to content

Commit 6278199

Browse files
authored
Rename variable tool_name to toolName
1 parent 6adb13c commit 6278199

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: pkg/github/code_scanning.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func ListCodeScanningAlerts(getClient GetClientFn, t translations.TranslationHel
117117
if err != nil {
118118
return mcp.NewToolResultError(err.Error()), nil
119119
}
120-
tool_name, err := OptionalParam[string](request, "tool_name")
120+
toolName, err := OptionalParam[string](request, "tool_name")
121121
if err != nil {
122122
return mcp.NewToolResultError(err.Error()), nil
123123
}
@@ -126,7 +126,7 @@ func ListCodeScanningAlerts(getClient GetClientFn, t translations.TranslationHel
126126
if err != nil {
127127
return nil, fmt.Errorf("failed to get GitHub client: %w", err)
128128
}
129-
alerts, resp, err := client.CodeScanning.ListAlertsForRepo(ctx, owner, repo, &github.AlertListOptions{Ref: ref, State: state, Severity: severity, ToolName: tool_name})
129+
alerts, resp, err := client.CodeScanning.ListAlertsForRepo(ctx, owner, repo, &github.AlertListOptions{Ref: ref, State: state, Severity: severity, ToolName: toolName})
130130
if err != nil {
131131
return nil, fmt.Errorf("failed to list alerts: %w", err)
132132
}

0 commit comments

Comments
 (0)