Skip to content

Commit 6d8558b

Browse files
Add bitbucket config to schema
1 parent d45a9bc commit 6d8558b

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

schemas/index.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
},
2020
{
2121
"$ref": "#/definitions/GitLabConfig"
22+
},
23+
{
24+
"$ref": "#/definitions/BitbucketConfig"
2225
}
2326
]
2427
},
@@ -114,6 +117,48 @@
114117
"GitLabURL"
115118
],
116119
"additionalProperties": false
120+
},
121+
"BitbucketConfig": {
122+
"type": "object",
123+
"properties": {
124+
"Type": {
125+
"const": "bitbucket"
126+
},
127+
"BitBucketServerURL": {
128+
"type": "string",
129+
"description": "BitBucket Server url"
130+
},
131+
"BitBucketServerProject": {
132+
"type": "string",
133+
"description": "project to mirror"
134+
},
135+
"DisableTLS": {
136+
"type": "boolean",
137+
"description": "Disable TLS verification",
138+
"default": false
139+
},
140+
"ProjectType": {
141+
"type": "string",
142+
"description": "Only clone repos whose type matches the given string. Type can be either NORMAl or PERSONAL. Clones projects of both types if not set.",
143+
"enum": ["NORMAL", "PERSONAL"]
144+
},
145+
"Name": {
146+
"$ref": "#/definitions/RepoNameRegexIncludeFilter"
147+
},
148+
"Exclude": {
149+
"$ref": "#/definitions/RepoNameRegexExcludeFilter"
150+
},
151+
"CredentialPath": {
152+
"type": "string",
153+
"description": "Path to a file containing a Bitbucket access token.",
154+
"default": "~/.bitbucket-credentials"
155+
}
156+
},
157+
"required": [
158+
"Type",
159+
"BitBucketServerURL"
160+
],
161+
"additionalProperties": false
117162
}
118163
},
119164
"properties": {

0 commit comments

Comments
 (0)