Skip to content

Commit 6108f57

Browse files
committed
Return pagination info
1 parent 699ac3c commit 6108f57

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

pkg/github/repositories.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2293,12 +2293,7 @@ func ListRepositoryCollaborators(t translations.TranslationHelperFunc) inventory
22932293
})
22942294
}
22952295

2296-
r, err := json.Marshal(result)
2297-
if err != nil {
2298-
return nil, nil, fmt.Errorf("failed to marshal response: %w", err)
2299-
}
2300-
2301-
return utils.NewToolResultText(string(r)), nil, nil
2296+
return MarshalledTextResult(result), nil, nil
23022297
},
23032298
)
23042299
}

pkg/github/repositories_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4494,7 +4494,6 @@ func Test_ListRepositoryCollaborators(t *testing.T) {
44944494

44954495
if tt.name == "empty collaborators returns empty array" {
44964496
assert.Empty(t, collaborators)
4497-
assert.Equal(t, "[]", textContent.Text)
44984497
return
44994498
}
45004499

0 commit comments

Comments
 (0)