forked from sourcebot-dev/sourcebot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample-config.json
79 lines (77 loc) Β· 2.5 KB
/
example-config.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
{
"$schema": "https://raw.githubusercontent.com/sourcebot-dev/sourcebot/main/schemas/index.json",
"Configs": [
// ~~~~~~~~~~~~ GitHub Examples ~~~~~~~~~~~~
// Index all repos in organization "my-org".
{
"Type": "github",
"GitHubOrg": "my-org"
},
// 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).
{
"Type": "gitlab",
"GitLabURL": "https://gitlab.example.com/api/v4/" /* default: https://gitlab.com/api/v4/ */
}
// 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)$"
},
]
}