feat: Add GitLab support with configuration, client, and API actions #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request introduces initial support for GitLab as a VCS provider across the codebase, including configuration, DTOs, client libraries, and database migrations. It also adds a new repository-scoped token connection type, improves branch statistics calculation, and enhances project DTOs with webhook configuration status. The most important changes are grouped below:
GitLab Integration Support:
GitLabConfigrecord and serialization support for GitLab connections, including self-hosted instances, toVcsConnectionConfigand related modules. [1] [2] [3] [4]GitLabDTOfor representing GitLab VCS connections and exporting the DTO in the module. [1] [2]application.properties.sample.GitLabClientand related exports in the VCS client library, and enabled the VcsClientFactory to create GitLab clients. [1] [2] [3] [4]OkHttpClientfactory method for GitLab API authentication.Database and Model Changes:
GITLABto the allowed values in thevcs_connection.provider_typedatabase constraint.repositoryPathfield toVcsConnectionfor repository-scoped token support, with corresponding getters and setters. [1] [2]FORGE_APPconnection type and introduceREPOSITORY_TOKENas a new connection type in the database.Repository Token Connection Type:
EVcsConnectionTypeenum to addREPOSITORY_TOKENand clarified connection type comments.Project and Branch DTO Enhancements:
ProjectDTOto include awebhooksConfiguredfield, populated from theVcsRepoBinding. [1] [2] [3]Miscellaneous:
commit_hashvalues incode_analysisfrom the associated pull requests.