Skip to content

Conversation

brendan-kellam
Copy link
Contributor

@brendan-kellam brendan-kellam commented Oct 16, 2024

This PR introduces a new configuration schema that is more expressive.

Example config:

{
    "repos": [
        {
            "type": "github",
            "token": "secret-token",
            "orgs": [
                "sourcebot-dev",
                "commaai"
            ],
            "users": [
                "DHH"
            ],
            "repos": [
                "torvalds/linux",
                "my-org/my-repo"
            ],
            "exclude": {
                "repos": [
                    "sourcebot-dev/sourcebot"
                ],
                "archived": true,
                "forks": true
            }
        },
        {
            "type": "gitlab",
            "token": "secret-token",
            "groups": [
                "my-group"
            ],
            "users": [
                "user1",
                "user2"
            ],
            "projects": [
                "my-group/project1",
                "my-group/my-sub-group/project2"
            ],
            "exclude": {
                "projects": [
                    "my-group/my-project3"
                ],
                "archived": true,
                "forks": true
            }
        }
    ]
}

With the new configuration schema comes a new index server, located in packages/backend. This has the same functionality as zoekt-indexserver (it will clone repos and periodically re-index them), but with improved logging s.t., it's now easier to determine what the index server is doing.

Fixes #35
Fixes #27

msukkari
msukkari previously approved these changes Oct 17, 2024
Copy link
Contributor

@msukkari msukkari left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔥🔥🔥 tested working on my side (public/private github and gitlab, as well as self-hosted gitlab)

@brendan-kellam brendan-kellam merged commit fc8815d into main Oct 17, 2024
1 check passed
@brendan-kellam brendan-kellam deleted the bkellam/index_server_v2 branch October 17, 2024 20:31
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

Successfully merging this pull request may close these issues.

Add logging / UI cues when a repository fails to clone Support authenticating against multiple GitLab / GitHub hosts
2 participants