- introduce ability to specify on_property on extractors as Array.

- simplify setup of more complex definitions
  - FIX https://github.com/mikepenz/release-changelog-builder-action/issues/651
This commit is contained in:
Mike Penz
2022-01-28 18:17:27 +01:00
parent e0a4c3fc64
commit b5ad2456c8
6 changed files with 122 additions and 26 deletions
+7 -1
View File
@@ -32,7 +32,13 @@ export interface Transformer extends Regex {
}
export interface Extractor extends Transformer {
on_property?: 'title' | 'author' | 'milestone' | 'body' | undefined // retrieve the property to extract the value from
on_property?:
| ('title' | 'author' | 'milestone' | 'body')[]
| 'title'
| 'author'
| 'milestone'
| 'body'
| undefined // retrieve the property to extract the value from
method?: 'replace' | 'match' | undefined // the method to use to extract the value, `match` will not use the `target` property
on_empty?: string | undefined // in case the regex results in an empty string, this value is gonna be used instead (only for label_extractor currently)
}