@@ -57,7 +57,7 @@ func (r actionsActionType) String() string {
5757 return "unknown"
5858}
5959
60- func ActionFromString (s string ) actionsActionType {
60+ func actionFromString (s string ) actionsActionType {
6161 for r , str := range actionsResourceTypes {
6262 if str == strings .ToLower (s ) {
6363 return r
@@ -185,7 +185,7 @@ func ActionsRead(getClient GetClientFn, t translations.TranslationHelperFunc) (t
185185 return mcp .NewToolResultError (err .Error ()), nil
186186 }
187187
188- resourceType := ActionFromString (actionTypeStr )
188+ resourceType := actionFromString (actionTypeStr )
189189 if resourceType == actionsActionTypeUnknown {
190190 return mcp .NewToolResultError (fmt .Sprintf ("unknown action: %s" , actionTypeStr )), nil
191191 }
@@ -1127,7 +1127,7 @@ func DeleteWorkflowRunLogs(getClient GetClientFn, t translations.TranslationHelp
11271127}
11281128
11291129// GetWorkflowRunUsage creates a tool to get usage metrics for a workflow run
1130- func getWorkflowRunUsage (ctx context.Context , client * github.Client , request mcp.CallToolRequest , owner , repo string , resourceID int64 ) (* mcp.CallToolResult , error ) {
1130+ func getWorkflowRunUsage (ctx context.Context , client * github.Client , _ mcp.CallToolRequest , owner , repo string , resourceID int64 ) (* mcp.CallToolResult , error ) {
11311131 usage , resp , err := client .Actions .GetWorkflowRunUsageByID (ctx , owner , repo , resourceID )
11321132 if err != nil {
11331133 return ghErrors .NewGitHubAPIErrorResponse (ctx , "failed to get workflow run usage" , resp , err ), nil
0 commit comments