- add ability to provide an empty string in case the regex does not match

- FIX https://github.com/mikepenz/release-changelog-builder-action/issues/576
This commit is contained in:
Mike Penz
2021-11-12 11:36:29 +01:00
parent 94e94dd7a9
commit 1fa3f709a9
3 changed files with 39 additions and 2 deletions
+1
View File
@@ -34,6 +34,7 @@ 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
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)
}
export interface TagResolver {