2024-09-29 21:17:43 +00:00
|
|
|
{
|
2024-09-29 21:39:17 +00:00
|
|
|
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/index.json",
|
2024-09-29 21:17:43 +00:00
|
|
|
"Configs": [
|
|
|
|
|
// ~~~~~~~~~~~~ GitHub Examples ~~~~~~~~~~~~
|
|
|
|
|
// Index all repos in organization "my-org".
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubOrg": "my-org"
|
|
|
|
|
},
|
2024-10-03 21:06:24 +00:00
|
|
|
// Index all repos in self-hosted GitHub instance.
|
|
|
|
|
// @note: the environment variable GITHUB_HOSTNAME must be set. See README.
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubUrl": "https://github.example.com"
|
|
|
|
|
},
|
2024-09-29 21:17:43 +00:00
|
|
|
// Index all repos in user "my-user".
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubUser": "my-user"
|
|
|
|
|
},
|
|
|
|
|
// Index repos foo & bar in organization "my-org".
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubOrg": "my-org",
|
|
|
|
|
"Name": "^(foo|bar)$"
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// Index all repos except foo & bar in organization "my-org".
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubOrg": "my-org",
|
|
|
|
|
"Exclude": "^(foo|bar)$"
|
|
|
|
|
},
|
|
|
|
|
// Index all repos that contain topic "topic_a" or "topic_b" in organization "my-org".
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubOrg": "my-org",
|
|
|
|
|
"Topics": ["topic_a", "topic_b"]
|
|
|
|
|
},
|
|
|
|
|
// Index all repos that _do not_ contain "topic_x" and "topic_y" in organization "my-org".
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubOrg": "my-org",
|
|
|
|
|
"ExcludeTopics": ["topic_x", "topic_y"]
|
|
|
|
|
},
|
|
|
|
|
// Index all repos in organization, including forks in "my-org".
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubOrg": "my-org",
|
|
|
|
|
"IncludeForks": true /* default: false */
|
|
|
|
|
},
|
|
|
|
|
// Index all repos in organization, excluding repos that are archived in "my-org".
|
|
|
|
|
{
|
|
|
|
|
"Type": "github",
|
|
|
|
|
"GitHubOrg": "my-org",
|
|
|
|
|
"NoArchived": true /* default: false */
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ~~~~~~~~~~~~ GitLab Examples ~~~~~~~~~~~~
|
|
|
|
|
// Index all repos visible to the GITLAB_TOKEN.
|
|
|
|
|
{
|
|
|
|
|
"Type": "gitlab"
|
|
|
|
|
},
|
|
|
|
|
// Index all repos visible to the GITLAB_TOKEN (custom GitLab URL).
|
2024-10-03 21:06:24 +00:00
|
|
|
// @note: the environment variable GITLAB_HOSTNAME must also be set. See README.
|
2024-09-29 21:17:43 +00:00
|
|
|
{
|
|
|
|
|
"Type": "gitlab",
|
2024-10-03 21:06:24 +00:00
|
|
|
"GitLabURL": "https://gitlab.example.com"
|
|
|
|
|
},
|
2024-09-29 21:17:43 +00:00
|
|
|
// Index all repos (public only) visible to the GITLAB_TOKEN.
|
|
|
|
|
{
|
|
|
|
|
"Type": "gitlab",
|
|
|
|
|
"OnlyPublic": true
|
|
|
|
|
},
|
|
|
|
|
// Index only the repos foo & bar.
|
|
|
|
|
{
|
|
|
|
|
"Type": "gitlab",
|
|
|
|
|
"Name": "^(foo|bar)$"
|
|
|
|
|
},
|
|
|
|
|
// Index all repos except fizz & buzz visible to the GITLAB_TOKEN.
|
|
|
|
|
{
|
|
|
|
|
"Type": "gitlab",
|
|
|
|
|
"Exclude": "^(fizz|buzz)$"
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
}
|