From 6d8558b578c0899566cd826d6a9f60495034e144 Mon Sep 17 00:00:00 2001 From: bkellam Date: Thu, 19 Sep 2024 18:08:40 -0700 Subject: [PATCH 1/2] Add bitbucket config to schema --- schemas/index.json | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/schemas/index.json b/schemas/index.json index 9fc6d54f7..b28750e6b 100644 --- a/schemas/index.json +++ b/schemas/index.json @@ -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": { From f414454aae60810927c02304415e05be4c6e8aef Mon Sep 17 00:00:00 2001 From: bkellam Date: Thu, 19 Sep 2024 19:02:42 -0700 Subject: [PATCH 2/2] nit --- schemas/index.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schemas/index.json b/schemas/index.json index b28750e6b..4614e8331 100644 --- a/schemas/index.json +++ b/schemas/index.json @@ -151,7 +151,7 @@ "CredentialPath": { "type": "string", "description": "Path to a file containing a Bitbucket access token.", - "default": "~/.bitbucket-credentials" + "default": ".bitbucket-credentials" } }, "required": [