Add bitbucket config to schema

This commit is contained in:
bkellam 2024-09-19 18:08:40 -07:00
parent d45a9bcd46
commit 6d8558b578

View file

@ -19,6 +19,9 @@
},
{
"$ref": "#/definitions/GitLabConfig"
},
{
"$ref": "#/definitions/BitbucketConfig"
}
]
},
@ -114,6 +117,48 @@
"GitLabURL"
],
"additionalProperties": false
},
"BitbucketConfig": {
"type": "object",
"properties": {
"Type": {
"const": "bitbucket"
},
"BitBucketServerURL": {
"type": "string",
"description": "BitBucket Server url"
},
"BitBucketServerProject": {
"type": "string",
"description": "project to mirror"
},
"DisableTLS": {
"type": "boolean",
"description": "Disable TLS verification",
"default": false
},
"ProjectType": {
"type": "string",
"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.",
"enum": ["NORMAL", "PERSONAL"]
},
"Name": {
"$ref": "#/definitions/RepoNameRegexIncludeFilter"
},
"Exclude": {
"$ref": "#/definitions/RepoNameRegexExcludeFilter"
},
"CredentialPath": {
"type": "string",
"description": "Path to a file containing a Bitbucket access token.",
"default": "~/.bitbucket-credentials"
}
},
"required": [
"Type",
"BitBucketServerURL"
],
"additionalProperties": false
}
},
"properties": {