Skip to content

Releases: sourcebot-dev/sourcebot

v2.1.0

23 Oct 03:09

Choose a tag to compare

What's Changed

Added Gitea support in #45 for both Gitea Cloud and self-hosted Gitea instances. To get started using Gitea, use the gitea type in your config.json:

{
    "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v2/index.json",
    "repos": [
        {
            "type": "gitea",
            // note: url only necessary for self-hosted instances
            "url": "https://gitea.example.com",

            // Index individual repos
            "repos": [
                "my_org/repo1"
            ],

            // Index all repos in a org
            "orgs": [
                "my_org"
            ],

            // Index all repos owned by a user
            "users": [
                "my_user"
            ],

            // Exclude repos
            "exclude": {
                "forks": true,
                "archived": true,
                "repos": {
                   "my_org/repo2"
                }
            }
        }
    ]
}

Full Changelog: v2.0.2...v2.1.0

v2.0.2

18 Oct 19:06

Choose a tag to compare

What's Changed

  • Added version upgrade toast notification in #44

Full Changelog: v2.0.1...v2.0.2

v2.0.1

18 Oct 16:24

Choose a tag to compare

What's Changed

  • Add support for remote configs in #43

Full Changelog: v2.0.0...v2.0.1

Sourcebot v2.0.0

17 Oct 21:10

Choose a tag to compare

What's Changed

We've overhauled the config schema to make things more readable. Some examples:

// Single-line comments are now supported, as well as...
/*
    ...multi-line comments!
*/
{
    "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v2/index.json",
    "repos": [
        // For GitHub, you can include users, orgs, or individual repos
        {
            "type": "github",
            "users": [
                "torvalds"
            ],
            "orgs": [
                "commaai"
            ],
            "repos": [
                "sourcebot-dev/sourcebot"
            ]
        },
        // For GitLab, you can include users, groups (& sub-groups), or individual projects
        {
            "type": "gitlab",
            "users": [
                "my-user"
            ],
            "groups": [
                "my-group",
                "my-other-group/sub-group"
            ],
            "projects": [
                "my-group/project1"
            ]
        },
        // You can exclude repos with the `exclude` property
        {
            "type": "github",
            "orgs": [
                "my-org"
            ],
            "exclude": {
                "archived": true,
                "forks": true,
                "repos": [
                    "my-org/repo1",
                    "my-org/repo2"
                ]
            }
       },
       // You can authenticate with the `token` property
       {
            "type": "github",
            "token": "ghp_token1234",
            "orgs": [
                "my-private-org"
            ]
        },
        // You can also pass tokens as environment variables
        {
            "type": "github",
            "token": {
                "env": "GITHUB_TOKEN_ENV_VAR"
            },
            "orgs": [
                "my-private-org"
            ]
        },
        // Self-hosted instances can be used with the `url` property
        {
            "type": "gitlab",
            "url": "https://gitlab.example.com",
            "groups": [
                "my-group"
            ]
        }
    ]
}

For more examples, see the configs directory. You can also checkout the v2 schema here.

Full Changelog: v1.0.3...v2.0.0