-
-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub doesn't support self-hosted repositories #269
Comments
Hey @adelkahomolova , I am pretty confused. What exactly needs to be done in this issue? |
Hi, @hariom1625, thank you for the question. It is necessary to find out which VCS service is used (we support GitLab, GitHub, and Bitbucket). The way, how we found it out is just by URL (checking for "GitHub" string in URL). See ScanningStrategyDetectorUtils.ts |
Hey @adelkahomolova, I would love to trigger this issue and add support for GitHub. Can I go ahead? |
Yes @adelkahomolova, That was helpful :-) |
@haardikdharma10 Sure! Go ahead :) |
Thanks @adelkahomolova. I'd like some help on getting started. I went through both the files you mentioned above. The question I have is, do I need to change anything in the /src/services folder? I can see the file (GitHubService) but nothing such as githubClient similar to the one in gitlab folder (gitlabClient). Additionally, if you can help me with the files I need to edit, that'd be great :) |
@haardikdharma10 Hi! Thank you for your question! There is no client for Github because we are using the Octokit library and it acts as the "Client". There is a function to detect self-hosted Gitlab called The correct solution is to create a similar function that tries to detect Github on a custom URL. E.g. to call endpoint Do not hesitate to ask us if you have any other questions. 👏 Thank you |
@prokopsimek, Thanks a lot for such a brief and prompt response. It cleared almost everything in my head. Just to make sure before starting working on it:
If all of this sounds good to you, can I go ahead and raise a PR? |
If it's now clear to you, go for it! 👍 |
Thanks a lot! On it. |
GitHub can be self-hosted as well as Gitlab.
The text was updated successfully, but these errors were encountered: