Skip to content

branch not indexed #117

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

Closed
elettrico opened this issue Dec 9, 2024 · 1 comment
Closed

branch not indexed #117

elettrico opened this issue Dec 9, 2024 · 1 comment

Comments

@elettrico
Copy link

I have this configuration:

{
    "$schema": "../schemas/v2/index.json",
    "repos": [
        {
            "type": "gitlab",
            "url": "https://gitlab.****.com",
            "token": "glpat-*****",
            "all": true,
            "revisions": [
                    "main",
                    "dev"
            ]
        }
    ]
}

But when I search, I can see only results from the main branch, also in the repositories page it shows only one branch per repository. Shouldn't it index the "dev" branch also?

@brendan-kellam
Copy link
Contributor

It looks like your config is slightly off - revisions is of type object that has the property branches, which is where you want to specify your branches. E.g.,:

{
    "$schema": "../schemas/v2/index.json",
    "repos": [
        {
            "type": "gitlab",
            "url": "https://gitlab.****.com",
            "token": "glpat-*****",
            "all": true,
            "revisions": {
                "branches": [
                    "main",
                    "dev"
                ]
            }
        }
    ]
}

An enhancement we should make is to raise a warning / error when a configuration is incorrect.

Going to close this issue, feel free to re-open if this didn't fix your issue.

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

2 participants