blobfish
Version:
File sync between GitHub repos
110 lines • 2.6 kB
JSON
{
"$id": "http://raw.githubusercontent.com/capythulhu/blobfish/main/schemas/blobfishrc.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"not": {
"allOf": [
{
"required": [
"comment"
]
},
{
"required": [
"commentDelimiter"
]
}
]
},
"oneOf": [
{
"not": {
"required": [
"commentDelimiter"
]
},
"required": [
"comment"
]
},
{
"not": {
"required": [
"comment"
]
},
"required": [
"commentDelimiter"
]
}
],
"properties": {
"$schema": {
"description": "The JSON schema version.",
"type": "string"
},
"comment": {
"description": "Optional comment that overrides the default commit message comment.",
"type": "string"
},
"commentDelimiter": {
"default": "//",
"description": "The delimiter for the default comment.",
"type": "string"
},
"replications": {
"items": {
"additionalProperties": false,
"properties": {
"files": {
"items": {
"oneOf": [
{
"description": "Path to the file in the source repository.",
"type": "string"
},
{
"additionalProperties": false,
"properties": {
"from": {
"description": "Source file path in the source repository.",
"type": "string"
},
"to": {
"description": "Target file path in the destination repository.",
"type": "string"
}
},
"required": [
"from"
],
"type": "object"
}
]
},
"type": "array"
},
"repository": {
"description": "The GitHub repository in the format 'owner/repo'.",
"type": "string"
},
"branch": {
"description": "The git branch in the repository. Defaults to the main branch",
"type": "string"
}
},
"required": [
"repository",
"files",
"branch"
],
"type": "object"
},
"type": "array"
}
},
"required": [
"replications"
],
"type": "object"
}