Skip to content

Releases: sourcebot-dev/sourcebot

v2.4.2

15 Nov 06:54
Compare
Choose a tag to compare

Added

  • Added support for syntax highlighting in the search bar. (#66)

Changed

  • Changed the exclude.repo property to support glob patterns. (#70)

Fixed

  • Fixed issue with indexing failing for empty repositories. (#73)
  • Fixed typos in schema. (#71)

New Contributors

Full Changelog: v2.4.1...v2.4.2

v2.4.1

11 Nov 19:37
Compare
Choose a tag to compare

What's Changed

  • Added additional telemetry in #63

Full Changelog: v2.4.0...v2.4.1

v2.4.0

07 Nov 02:48
Compare
Choose a tag to compare

What's Changed

Added support for indexing and searching repositories across multiple revisions (branch or tag). To get started, specify the revisions property in your config:

{
    "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v2/index.json",
    "repos": [
        {
            "type": "github",
            "revisions": {
                 // Specify branches to index...
                "branches": [
                    "main",
                    "release/*"
                ],
                // ... or specify tags
                "tags": [
                    "v*.*.*"
                ]
            },
            // For each repo (repoa, repob), Sourcebot will index all branches and tags in the repo
            // matching the `branches` and `tags` patterns above. Any branches or tags that don't
            // match the patterns will be ignored and not indexed.
            "repos": [
                "org/repoa",
                "org/repob"
            ]
        }
   ]
}

To search on a specific revision, use the revision filter in the search bar:
revisions_filter_dark

Full Changelog: v2.3.0...v2.4.0

v2.3.0

01 Nov 18:19
Compare
Choose a tag to compare

What's Changed

  • Added support for local directory indexing in #56.

To index local directories, use the local type in your config file:

{
    "$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/v2/index.json",
    "repos": [
        {
            "type": "local",
            "path": "/path/to/local/repo",
            "watch": "true",
            "exclude": {
               "paths": [
                  "node_modules",
                  "build"
               ]
            }
        }
    ]
}

When running in Docker, ensure that the directory is mapped to a volume:

docker run -v /path/to/local/repo:/path/to/local/repo /* additional args */ ghcr.io/sourcebot-dev/sourcebot:latest

Full Changelog: v2.2.0...v2.3.0

v2.2.0

30 Oct 20:36
Compare
Choose a tag to compare

What's Changed

  • Added a simple filtering panel to filter results by repository or language #48
image
  • Improved rendering performance for large number of results #52
  • All nested GitLab subgroups for a given group are now included #54

Full Changelog: v2.1.1...v2.2.0

v2.1.1

25 Oct 19:03
Compare
Choose a tag to compare

What's Changed

  • Fixed issue with GitLab projects that are not owned but still visible by the provided token not being synchronized. (#51)

Full Changelog: v2.1.0...v2.1.1

v2.1.0

23 Oct 03:09
Compare
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
Compare
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
Compare
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
Compare
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