forked from SchemaStore/schemastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
backportrc.json
93 lines (93 loc) · 3.08 KB
/
backportrc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://json.schemastore.org/backportrc.json",
"additionalProperties": false,
"description": "A Backport config schema",
"properties": {
"repoName": {
"description": "A repo name for the current project\nhttps://github.com/sqren/backport/blob/main/docs/config-file-options.md#reponame-required",
"type": "string",
"minLength": 1,
"examples": ["kibana"]
},
"repoOwner": {
"description": "A repo owner for the current project\nhttps://github.com/sqren/backport/blob/main/docs/config-file-options.md#repoowner-required",
"type": "string",
"minLength": 1,
"examples": ["elastic"]
},
"targetBranchChoices": {
"description": "Target branches for the current project\nhttps://github.com/sqren/backport/blob/main/docs/config-file-options.md#targetbranchchoices-required",
"type": "array",
"uniqueItems": true,
"items": {
"description": "A target branch for the current project\nhttps://github.com/sqren/backport/blob/main/docs/config-file-options.md#targetbranchchoices-required",
"oneOf": [
{
"type": "string",
"minLength": 1,
"examples": ["6.2"]
},
{
"title": "target branch",
"type": "object",
"required": ["name", "checked"],
"properties": {
"name": {
"description": "A target branch for the current project\nhttps://github.com/sqren/backport/blob/main/docs/config-file-options.md#targetbranchchoices-required",
"type": "string",
"minLength": 1,
"examples": ["6.3"]
},
"checked": {
"description": "Whether to pre-select a target branch for the current project\nhttps://github.com/sqren/backport/blob/main/docs/config-file-options.md#targetbranchchoices-required",
"type": "boolean"
}
},
"additionalProperties": false
}
]
}
},
"upstream": {
"description": "Identifier for the GitHub project as `{owner}/{repoName}` (deprecated)",
"type": "string"
},
"branches": {
"description": "Branches to backport to",
"type": "array",
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"name": {
"type": "string"
},
"checked": {
"type": "boolean"
}
},
"required": ["name", "checked"]
}
]
}
},
"labels": {
"description": "Labels that will be added to the pull request",
"type": "array",
"items": {
"type": "string"
}
},
"all": {
"description": "Whether to only show the current user's commits or commits from anyone",
"type": "boolean"
}
},
"required": ["repoName", "repoOwner", "targetBranchChoices"],
"type": "object"
}