Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitef56393

Browse files
committed
fixes
1 parent2c10588 commitef56393

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

‎pkg/github/issues.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func AddSubIssue(getClient GetClientFn, t translations.TranslationHelperFunc) (t
159159
mcp.WithDescription(t("TOOL_ADD_SUB_ISSUE_DESCRIPTION","Add a sub-issue to a parent issue in a GitHub repository.")),
160160
mcp.WithToolAnnotation(mcp.ToolAnnotation{
161161
Title:t("TOOL_ADD_SUB_ISSUE_USER_TITLE","Add sub-issue"),
162-
ReadOnlyHint:toBoolPtr(false),
162+
ReadOnlyHint:ToBoolPtr(false),
163163
}),
164164
mcp.WithString("owner",
165165
mcp.Required(),
@@ -182,11 +182,11 @@ func AddSubIssue(getClient GetClientFn, t translations.TranslationHelperFunc) (t
182182
),
183183
),
184184
func(ctx context.Context,request mcp.CallToolRequest) (*mcp.CallToolResult,error) {
185-
owner,err:=requiredParam[string](request,"owner")
185+
owner,err:=RequiredParam[string](request,"owner")
186186
iferr!=nil {
187187
returnmcp.NewToolResultError(err.Error()),nil
188188
}
189-
repo,err:=requiredParam[string](request,"repo")
189+
repo,err:=RequiredParam[string](request,"repo")
190190
iferr!=nil {
191191
returnmcp.NewToolResultError(err.Error()),nil
192192
}
@@ -272,7 +272,7 @@ func ListSubIssues(getClient GetClientFn, t translations.TranslationHelperFunc)
272272
mcp.WithDescription(t("TOOL_LIST_SUB_ISSUES_DESCRIPTION","List sub-issues for a specific issue in a GitHub repository.")),
273273
mcp.WithToolAnnotation(mcp.ToolAnnotation{
274274
Title:t("TOOL_LIST_SUB_ISSUES_USER_TITLE","List sub-issues"),
275-
ReadOnlyHint:toBoolPtr(true),
275+
ReadOnlyHint:ToBoolPtr(true),
276276
}),
277277
mcp.WithString("owner",
278278
mcp.Required(),
@@ -294,11 +294,11 @@ func ListSubIssues(getClient GetClientFn, t translations.TranslationHelperFunc)
294294
),
295295
),
296296
func(ctx context.Context,request mcp.CallToolRequest) (*mcp.CallToolResult,error) {
297-
owner,err:=requiredParam[string](request,"owner")
297+
owner,err:=RequiredParam[string](request,"owner")
298298
iferr!=nil {
299299
returnmcp.NewToolResultError(err.Error()),nil
300300
}
301-
repo,err:=requiredParam[string](request,"repo")
301+
repo,err:=RequiredParam[string](request,"repo")
302302
iferr!=nil {
303303
returnmcp.NewToolResultError(err.Error()),nil
304304
}
@@ -370,7 +370,7 @@ func RemoveSubIssue(getClient GetClientFn, t translations.TranslationHelperFunc)
370370
mcp.WithDescription(t("TOOL_REMOVE_SUB_ISSUE_DESCRIPTION","Remove a sub-issue from a parent issue in a GitHub repository.")),
371371
mcp.WithToolAnnotation(mcp.ToolAnnotation{
372372
Title:t("TOOL_REMOVE_SUB_ISSUE_USER_TITLE","Remove sub-issue"),
373-
ReadOnlyHint:toBoolPtr(false),
373+
ReadOnlyHint:ToBoolPtr(false),
374374
}),
375375
mcp.WithString("owner",
376376
mcp.Required(),
@@ -390,11 +390,11 @@ func RemoveSubIssue(getClient GetClientFn, t translations.TranslationHelperFunc)
390390
),
391391
),
392392
func(ctx context.Context,request mcp.CallToolRequest) (*mcp.CallToolResult,error) {
393-
owner,err:=requiredParam[string](request,"owner")
393+
owner,err:=RequiredParam[string](request,"owner")
394394
iferr!=nil {
395395
returnmcp.NewToolResultError(err.Error()),nil
396396
}
397-
repo,err:=requiredParam[string](request,"repo")
397+
repo,err:=RequiredParam[string](request,"repo")
398398
iferr!=nil {
399399
returnmcp.NewToolResultError(err.Error()),nil
400400
}
@@ -473,7 +473,7 @@ func ReprioritizeSubIssue(getClient GetClientFn, t translations.TranslationHelpe
473473
mcp.WithDescription(t("TOOL_REPRIORITIZE_SUB_ISSUE_DESCRIPTION","Reprioritize a sub-issue to a different position in the parent issue's sub-issue list.")),
474474
mcp.WithToolAnnotation(mcp.ToolAnnotation{
475475
Title:t("TOOL_REPRIORITIZE_SUB_ISSUE_USER_TITLE","Reprioritize sub-issue"),
476-
ReadOnlyHint:toBoolPtr(false),
476+
ReadOnlyHint:ToBoolPtr(false),
477477
}),
478478
mcp.WithString("owner",
479479
mcp.Required(),
@@ -499,11 +499,11 @@ func ReprioritizeSubIssue(getClient GetClientFn, t translations.TranslationHelpe
499499
),
500500
),
501501
func(ctx context.Context,request mcp.CallToolRequest) (*mcp.CallToolResult,error) {
502-
owner,err:=requiredParam[string](request,"owner")
502+
owner,err:=RequiredParam[string](request,"owner")
503503
iferr!=nil {
504504
returnmcp.NewToolResultError(err.Error()),nil
505505
}
506-
repo,err:=requiredParam[string](request,"repo")
506+
repo,err:=RequiredParam[string](request,"repo")
507507
iferr!=nil {
508508
returnmcp.NewToolResultError(err.Error()),nil
509509
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp