App-Changelord/lib/App/Changelord/Command/changelog-schema.yml

57 lines
1.6 KiB
YAML
Raw Normal View History

2022-07-13 16:09:07 +00:00
type: object
additionalProperties: false
properties:
project:
type: object
2022-07-13 18:26:08 +00:00
additionalProperties: false
2022-07-13 16:09:07 +00:00
properties:
2022-07-13 18:26:08 +00:00
homepage:
2022-07-19 20:18:58 +00:00
type: [ string, 'null' ]
2022-07-13 18:26:08 +00:00
description: url of the project's homepage
examples:
- https://github.com/yanick/app-changelord
2022-07-13 16:09:07 +00:00
name:
2022-07-19 20:18:58 +00:00
type: [ 'null', string ]
2022-07-13 16:09:07 +00:00
description: name of the project
examples:
- App::Changelord
2022-07-20 13:59:23 +00:00
ticket_url:
type: string
description: perl code that takes a ticket string (e.g. 'GH123') via the `$_` variable and turns it into a link.
examples:
- s!GH(\d+)!https://github.com/yanick/App-Changelord/issue/$1/
- /^\d+$/ ? "https://.../$_" : undef
2022-07-20 18:27:53 +00:00
with_stats:
description: if true, add git statistics when bumping the version.
2022-07-19 20:18:58 +00:00
change_types:
2022-07-13 16:09:07 +00:00
type: array
items:
type: object
2022-07-19 20:18:58 +00:00
additionalProperties: false
properties:
keywords:
type: array
items: { type: string }
level: { enum: [ major, minor, patch ] }
title: { type: string }
2022-07-13 16:09:07 +00:00
releases:
type: array
items:
oneOf:
- type: string
2022-07-13 19:00:23 +00:00
- type: object
2022-07-19 20:18:58 +00:00
additionalProperties: false
2022-07-13 19:00:23 +00:00
properties:
version: { type: string }
2022-07-19 20:18:58 +00:00
date: { type: ['null',string] }
changes: { type: 'array', items: { $ref: '#/$defs/change' } }
$defs:
change:
type: object
required: [ desc ]
additionalProperties: false
properties:
desc: { type: string }
ticket: { type: [ string, 'null' ] }
type: { type: [ string, 'null' ] }