feat: add Project Aliases API support
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
API documentation: https://docs.gitlab.com/api/project_aliases/
This merge request adds support for managing project aliases in GitLab through the API client. Project aliases are alternative names that can be used to reference GitLab projects.
The changes include:
- A new ProjectAliases service that provides four main operations: listing all aliases for a project, getting details of a specific alias, creating new aliases, and deleting existing aliases
- Integration of this service into the main GitLab client so it can be used alongside other GitLab features
- Comprehensive test coverage to ensure the new functionality works correctly
- Auto-generated mock objects for testing purposes
The implementation follows the same patterns as other services in the codebase, making HTTP requests to GitLab's project aliases API endpoints. This allows developers using this client library to programmatically manage project aliases without having to manually construct API calls.
Closes #2157 (closed)
Edited by Yashesvinee V