Kooder is an open source code search project, offering code, repositories and issues search service for code hosting platforms including Gitee, GitLab and Gitea.

UI

There are two modules, gateway and indexer. Gateway is integrated inside gateway under default config.

Gateway:

  • Accept index tasks from HTTP requests and put them in the queue after examing it
  • Accept search requests and return their results back to the client

Indexer:

  • Monitor the index tasks inside the queue
  • Update these add, delete and update index tasks back to the index library

Logic Flow

image

Use it in Gitlab

Config following properties:

gitlab.url = http://gitlab-host:gitlab-port/  
gitlab.personal_access_token = <root user personal access token>  
git.username = root  
git.password =  
Enter fullscreen mode Exit fullscreen mode

Kooder will use access token as the password if you don't offer one.

Use it in Gitea

1.Site Administration

2.Add Gitea Webhook

3.Set up Webhook

  • Set Target URL to http://kooder-ip:kooder-port/gitea
  • Set POST Content Type to POST + application/json
  • CheckAll Event or Custom Events for the Trigger On option. ( If you choose Custom Events, you need to check Repo, Push and Issue)

2.Config following properties.

gitea.secret_token = <webhook secret token>
gitea.url = http://gitea-ip:prot/
gitea.personal_access_token = <admin user personal access token>
git.username = <admin username>
git.password = <admin password>
Enter fullscreen mode Exit fullscreen mode

More Info

GitHub: https://github.com/oschina/kooder
Gitee: https://gitee.com/koode/kooder

Logo

ModelScope旨在打造下一代开源的模型即服务共享平台,为泛AI开发者提供灵活、易用、低成本的一站式模型服务产品,让模型应用更简单!

更多推荐