feat: Add visibility option to listgroupoptions
What does this MR do?
Adds support for the visibility query parameter in ListGroupsOptions.
The GitLab API supports filtering groups by visibility (public, internal, private), but this option was not exposed in the Go client.
Changes
- Added
Visibility *VisibilityValuefield toListGroupsOptions - Added test to verify that the query parameter is correctly encoded
Why is this needed?
This allows users of the client to filter groups by visibility when calling ListGroups.
API Reference
https://docs.gitlab.com/ee/api/groups.html#list-groups
Related issue: #2226 (closed)
Edited by Mohamed Othman