Inconsistent pageSize in ListRepoLabelsTool #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In
operation/label/label.go, thelist_repo_labelstool definition sets aDefaultNumberof 100 forpageSize, but theListRepoLabelsFnhandler also contains redundant logic to default it to 100. Themcpframework should handle providing the default value.Recommendation:
Remove the redundant default-setting logic from the handler function to rely solely on the tool definition.