mirror of
https://github.com/sourcebot-dev/sourcebot.git
synced 2025-12-15 13:55:20 +00:00
Add bitbucket config to schema
This commit is contained in:
parent
d45a9bcd46
commit
6d8558b578
1 changed files with 45 additions and 0 deletions
|
|
@ -19,6 +19,9 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"$ref": "#/definitions/GitLabConfig"
|
"$ref": "#/definitions/GitLabConfig"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"$ref": "#/definitions/BitbucketConfig"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
@ -114,6 +117,48 @@
|
||||||
"GitLabURL"
|
"GitLabURL"
|
||||||
],
|
],
|
||||||
"additionalProperties": false
|
"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": {
|
"properties": {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue