|
124 | 124 | },
|
125 | 125 | {
|
126 | 126 | "type": "object",
|
127 |
| - "required": ["default", "only"], |
| 127 | + "required": ["default"], |
128 | 128 | "additionalProperties": false,
|
129 | 129 | "properties": {
|
130 | 130 | "default": {
|
131 | 131 | "type": "string",
|
132 |
| - "description": "The title to use for all changesets that do not match any of the rules in the only array." |
| 132 | + "description": "The title to use for all changesets that do not match any of the rules in the except array." |
133 | 133 | },
|
134 |
| - "only": { |
| 134 | + "except": { |
135 | 135 | "type": "array",
|
136 | 136 | "items": {
|
137 | 137 | "type": "object",
|
| 138 | + "title": "TitleExcept", |
138 | 139 | "required": ["match", "value"],
|
139 | 140 | "additionalProperties": false,
|
140 | 141 | "properties": {
|
|
154 | 155 | ]
|
155 | 156 | },
|
156 | 157 | "body": {
|
157 |
| - "type": "string", |
158 |
| - "description": "The body (description) of the changeset." |
| 158 | + "description": "The body (description) of the changeset.", |
| 159 | + "oneOf": [ |
| 160 | + { |
| 161 | + "type": "string", |
| 162 | + "description": "The body to use for the entire campaign." |
| 163 | + }, |
| 164 | + { |
| 165 | + "type": "object", |
| 166 | + "required": ["default"], |
| 167 | + "additionalProperties": false, |
| 168 | + "properties": { |
| 169 | + "default": { |
| 170 | + "type": "string", |
| 171 | + "description": "The body to use for all changesets that do not match any of the rules in the except array." |
| 172 | + }, |
| 173 | + "except": { |
| 174 | + "type": "array", |
| 175 | + "items": { |
| 176 | + "type": "object", |
| 177 | + "title": "BodyExcept", |
| 178 | + "required": ["match", "value"], |
| 179 | + "additionalProperties": false, |
| 180 | + "properties": { |
| 181 | + "match": { |
| 182 | + "type": "string", |
| 183 | + "description": "The repository name to match. Glob wildcards are supported." |
| 184 | + }, |
| 185 | + "value": { |
| 186 | + "type": "string", |
| 187 | + "description": "The body to use for changesets that match this rule." |
| 188 | + } |
| 189 | + } |
| 190 | + } |
| 191 | + } |
| 192 | + } |
| 193 | + } |
| 194 | + ] |
159 | 195 | },
|
160 | 196 | "branch": {
|
161 |
| - "type": "string", |
162 |
| - "description": "The name of the Git branch to create or update on each repository with the changes." |
| 197 | + "description": "The name of the Git branch to create or update on each repository with the changes.", |
| 198 | + "oneOf": [ |
| 199 | + { |
| 200 | + "type": "string", |
| 201 | + "description": "The branch name to use for the entire campaign." |
| 202 | + }, |
| 203 | + { |
| 204 | + "type": "object", |
| 205 | + "required": ["default"], |
| 206 | + "additionalProperties": false, |
| 207 | + "properties": { |
| 208 | + "default": { |
| 209 | + "type": "string", |
| 210 | + "description": "The branch name to use for all changesets that do not match any of the rules in the except array." |
| 211 | + }, |
| 212 | + "except": { |
| 213 | + "type": "array", |
| 214 | + "items": { |
| 215 | + "type": "object", |
| 216 | + "title": "BranchExcept", |
| 217 | + "required": ["match", "value"], |
| 218 | + "additionalProperties": false, |
| 219 | + "properties": { |
| 220 | + "match": { |
| 221 | + "type": "string", |
| 222 | + "description": "The repository name to match. Glob wildcards are supported." |
| 223 | + }, |
| 224 | + "value": { |
| 225 | + "type": "string", |
| 226 | + "description": "The branch name to use for changesets that match this rule." |
| 227 | + } |
| 228 | + } |
| 229 | + } |
| 230 | + } |
| 231 | + } |
| 232 | + } |
| 233 | + ] |
163 | 234 | },
|
164 | 235 | "commit": {
|
165 | 236 | "title": "ExpandedGitCommitDescription",
|
|
169 | 240 | "required": ["message"],
|
170 | 241 | "properties": {
|
171 | 242 | "message": {
|
172 |
| - "type": "string", |
173 |
| - "description": "The Git commit message." |
| 243 | + "description": "The Git commit message.", |
| 244 | + "oneOf": [ |
| 245 | + { |
| 246 | + "type": "string", |
| 247 | + "description": "The commit message to use for the entire campaign." |
| 248 | + }, |
| 249 | + { |
| 250 | + "type": "object", |
| 251 | + "required": ["default"], |
| 252 | + "additionalProperties": false, |
| 253 | + "properties": { |
| 254 | + "default": { |
| 255 | + "type": "string", |
| 256 | + "description": "The commit message to use for all changesets that do not match any of the rules in the except array." |
| 257 | + }, |
| 258 | + "except": { |
| 259 | + "type": "array", |
| 260 | + "items": { |
| 261 | + "type": "object", |
| 262 | + "title": "GitCommitMessageExcept", |
| 263 | + "required": ["match", "value"], |
| 264 | + "additionalProperties": false, |
| 265 | + "properties": { |
| 266 | + "match": { |
| 267 | + "type": "string", |
| 268 | + "description": "The repository name to match. Glob wildcards are supported." |
| 269 | + }, |
| 270 | + "value": { |
| 271 | + "type": "string", |
| 272 | + "description": "The commit message to use for changesets that match this rule." |
| 273 | + } |
| 274 | + } |
| 275 | + } |
| 276 | + } |
| 277 | + } |
| 278 | + } |
| 279 | + ] |
174 | 280 | },
|
175 | 281 | "author": {
|
176 | 282 | "title": "GitCommitAuthor",
|
|
180 | 286 | "required": ["name", "email"],
|
181 | 287 | "properties": {
|
182 | 288 | "name": {
|
183 |
| - "type": "string", |
184 |
| - "description": "The Git commit author name." |
| 289 | + "description": "The Git commit author name.", |
| 290 | + "oneOf": [ |
| 291 | + { |
| 292 | + "type": "string", |
| 293 | + "description": "The author name to use for the entire campaign." |
| 294 | + }, |
| 295 | + { |
| 296 | + "type": "object", |
| 297 | + "required": ["default"], |
| 298 | + "additionalProperties": false, |
| 299 | + "properties": { |
| 300 | + "default": { |
| 301 | + "type": "string", |
| 302 | + "description": "The author name to use for all changesets that do not match any of the rules in the except array." |
| 303 | + }, |
| 304 | + "except": { |
| 305 | + "type": "array", |
| 306 | + "items": { |
| 307 | + "type": "object", |
| 308 | + "title": "GitCommitAuthorExcept", |
| 309 | + "required": ["match", "value"], |
| 310 | + "additionalProperties": false, |
| 311 | + "properties": { |
| 312 | + "match": { |
| 313 | + "type": "string", |
| 314 | + "description": "The repository name to match. Glob wildcards are supported." |
| 315 | + }, |
| 316 | + "value": { |
| 317 | + "type": "string", |
| 318 | + "description": "The author name to use for changesets that match this rule." |
| 319 | + } |
| 320 | + } |
| 321 | + } |
| 322 | + } |
| 323 | + } |
| 324 | + } |
| 325 | + ] |
185 | 326 | },
|
186 | 327 | "email": {
|
187 |
| - "type": "string", |
188 |
| - "format": "email", |
189 |
| - "description": "The Git commit author email." |
| 328 | + "description": "The Git commit author email.", |
| 329 | + "oneOf": [ |
| 330 | + { |
| 331 | + "type": "string", |
| 332 | + "format": "email", |
| 333 | + "description": "The author email to use for the entire campaign." |
| 334 | + }, |
| 335 | + { |
| 336 | + "type": "object", |
| 337 | + "required": ["default"], |
| 338 | + "additionalProperties": false, |
| 339 | + "properties": { |
| 340 | + "default": { |
| 341 | + "type": "string", |
| 342 | + "format": "email", |
| 343 | + "description": "The author email to use for all changesets that do not match any of the rules in the except array." |
| 344 | + }, |
| 345 | + "except": { |
| 346 | + "type": "array", |
| 347 | + "items": { |
| 348 | + "type": "object", |
| 349 | + "title": "GitCommitEmailExcept", |
| 350 | + "required": ["match", "value"], |
| 351 | + "additionalProperties": false, |
| 352 | + "properties": { |
| 353 | + "match": { |
| 354 | + "type": "string", |
| 355 | + "description": "The repository name to match. Glob wildcards are supported." |
| 356 | + }, |
| 357 | + "value": { |
| 358 | + "type": "string", |
| 359 | + "format": "email", |
| 360 | + "description": "The author email to use for changesets that match this rule." |
| 361 | + } |
| 362 | + } |
| 363 | + } |
| 364 | + } |
| 365 | + } |
| 366 | + } |
| 367 | + ] |
190 | 368 | }
|
191 | 369 | }
|
192 | 370 | }
|
|
0 commit comments