sourcebot-dev / sourcebot

Blazingly fast code search 🏎️ Deployed as a single Docker image 📦 Search million+ lines of code in your GitHub, GitLab, and Gitea repositories 🪄 MIT licensed ✅
https://sourcebot.dev
MIT License
1.17k stars 37 forks source link

FR: support code search on Forgejo instances #34

Open mvdkleijn opened 1 month ago

mvdkleijn commented 1 month ago

Forgejo is a hard fork of Gitea, supported and used by the codeberg.org forge.

It has a configurable setting for supporting different code indexers Currently Forgejo can work with bleve or elasticsearch.

https://forgejo.org/docs/latest/admin/config-cheat-sheet/

brendan-kellam commented 1 week ago

Quick update: I tested with a local Forgejo instance (version 8.0.3), and using a gitea config with a Forgejo url param worked based on my testing:

{
    "$schema": "./schemas/v2/index.json",
    "repos": [
        {
            "type": "gitea",
            "url": "https://forgejo.example.com",
            ...
        }
    ]
}

So it seems as of 8.0.3, the API interface hasn't diverged. (Note: I haven't tested with v9 yet, so TBD on if that is supported).

I think for now with this we can say Sourcebot has unofficial support for Forgejo. Let me know if this works on your side

mvdkleijn commented 1 week ago

I believe it would probably work on v9 as well then. I'll try to test it this weekend and report back then.

Thanks for your care and attention to my request. :heart: