-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.example.json5
116 lines (116 loc) · 4.43 KB
/
config.example.json5
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
{
// Configuration settings for the destination GitLab server where repositories will be saved.
"gitlab": {
"url": "", // URL of the GitLab instance; defaults to "https://gitlab.com/" when empty.
"token": "" // Personal access token for GitLab user authentication.
},
// Global configuration that applies to all sourced groups and repositories unless specifically overridden locally.
"config": {
"wiki": {
// Determines whether wiki syncing is excluded (true) or included (false); defaults to false
"exclude": true
},
"releases": {
// Determines whether syncing of releases and their assets is excluded (true) or included (false); defaults to false
"exclude": true,
"assets": {
// If true, assets will not be downloaded but will be linked directly from the original source URL; defaults to false.
"exclude": true,
// Maximum allowed size of assets to be synced. If set to "none", all assets will be synced regardless of size.
"max_size": "1GB"
}
}
},
// Defines the source platforms from which repositories will be synced.
"sources": {
"github": {
"token": "", // Personal access token for GitHub user authentication.
// Overrides global configuration for GitHub-sourced repositories, if specified.
"config": {
"wiki": {
"exclude": true
},
"releases": {
"exclude": true,
"assets": {
"exclude": true,
"threshold": 5,
"maxSize": "1GB"
}
}
}
},
"huggingface": {
"token": "", // Personal access token for HuggingFace user authentication.
// Overrides global configuration for HuggingFace-sourced repositories, if specified.
"config": {
"wiki": {
"exclude": true
},
"releases": {
"exclude": true,
"assets": {
"exclude": true,
"threshold": 5,
"maxSize": "1GB"
}
}
}
}
},
// Configuration for specific groups of repositories
"groups": [
{
"source": "github", // Indicates the source platform: either "github" or "huggingface".
"username": "opensearch-project", // Username of the group in the source platform.
"gitlab_group_id": 1227, // Parent GitLab group ID where the repositories will be saved.
// Local overriding configuration specific to this group.
"config": {
"wiki": {
"exclude": true
},
"releases": {
"exclude": true,
"assets": {
"exclude": true,
"threshold": 5,
"max_size": "1GB"
}
}
},
// List of specific repositories to sync. If empty, all repositories from the group will be synced.
"repositories": [
{
"name": "OpenSearch", // Name of the repository.
"exclude": false, // If true, the repository will not be synced.
// Local overriding configuration specific to this repository.
"wiki": {
"exclude": true
},
"releases": {
"exclude": true,
"assets": {
"exclude": true,
"threshold": 5,
"max_size": "1GB"
}
}
},
// Additional repositories can be specified here...
]
},
{
"source": "huggingface",
"username": "ilsp",
"gitlab_group_id": 7107,
"config": {
"releases": {
"assets": {
"exclude": false,
}
}
}
}
// Additional groups can be specified here...
]
}