Skip to content
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

Add Support for GitLab and Codeberg to Scoop Search #15

Open
StarsbySea opened this issue Apr 19, 2023 · 2 comments
Open

Add Support for GitLab and Codeberg to Scoop Search #15

StarsbySea opened this issue Apr 19, 2023 · 2 comments

Comments

@StarsbySea
Copy link
Contributor

StarsbySea commented Apr 19, 2023

Hello Scoop maintainers,

I would like to suggest adding support for other code hosting platforms like GitLab and Codeberg to the Scoop Search functionality. This would help enrich the Scoop ecosystem by not limiting it to only GitHub (even though GitHub currently hosts the majority of Scoop Buckets).

I have gathered some search API endpoints for GitLab and Codeberg based on the ScoopInstaller.AzureFunctions/src/ScoopSearch.Functions/settings.json file. I hope this information will be helpful for the development, as I am not very proficient in C#.

GitLab:

API Document: https://docs.gitlab.com/ee/api/search.html#scope-projects

Note that accessing some endpoints may require authorization/authentication:
curl --header "PRIVATE-TOKEN: <your_access_token>" "https://gitlab.com/api/v4/search?scope=projects&search=scoop+bucket"

Codeberg.org:

API Document: https://codeberg.org/api/swagger#/repository/repoSearch

I hope you will consider adding support for these platforms to Scoop Search. Thank you for your hard work and dedication to the project!

Best regards.

@rashil2000
Copy link
Member

I'm all in for adding support for multiple Git providers, but there seems to be an extremely low number of Scoop users on these platforms. A site-wide search for "scoop" returns only 4-5 repos, both on GitLab and on Codeberg,

@gpailler
Copy link
Collaborator

Supporting other hosting platforms is definitely on my radar. Thanks for the API endpoints, it will be a good starting point.

gpailler added a commit that referenced this issue Jun 23, 2023
 + remove custom GitHub retry implementation (useless)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants