Your product supports GitHub and GitLab for now. 90% of the codebase that supports GitHub and GitLab is identical. Alternatively, you can build two different code paths, one for GitHub and one for GitLab.