Skip to content

Commit 559ab48

Browse files
Update pkg/github/tools.go
Co-authored-by: Copilot <[email protected]>
1 parent 4cf29f9 commit 559ab48

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

pkg/github/tools.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,12 @@ func DefaultToolsetGroup(readOnly bool, getClient GetClientFn, getGQLClient GetG
6262
AddWriteTools(func() server.ServerTool {
6363
tool, handler := CreateOrUpdateRepositoryCustomProperties(getClient, t)
6464
return toolsets.NewServerTool(tool, handler)
65-
}())
65+
AddReadTools(
66+
toolsets.NewServerTool(GetRepositoryCustomProperties(getClient, t)),
67+
).
68+
AddWriteTools(
69+
toolsets.NewServerTool(CreateOrUpdateRepositoryCustomProperties(getClient, t)),
70+
)
6671
issues := toolsets.NewToolset("issues", "GitHub Issues related tools").
6772
AddReadTools(
6873
toolsets.NewServerTool(GetIssue(getClient, t)),

0 commit comments

Comments
 (0)