Skip to content

Config format V2 #42

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

Merged
merged 23 commits into from
Oct 17, 2024
Merged

Config format V2 #42

merged 23 commits into from
Oct 17, 2024

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