- update replacement logic for array and comment types (fix cleanup if no match)

- adjust style definition - 140 line length
This commit is contained in:
Mike Penz
2022-12-09 14:09:40 +00:00
committed by GitHub
parent 3e744d00f1
commit 27d0a0a53c
9 changed files with 145 additions and 155 deletions
+1 -8
View File
@@ -40,14 +40,7 @@ export interface Transformer extends Regex {
}
export interface Extractor extends Transformer {
on_property?:
| ('title' | 'author' | 'milestone' | 'body' | 'branch')[]
| 'title'
| 'author'
| 'milestone'
| 'body'
| 'branch'
| undefined // retrieve the property to extract the value from
on_property?: ('title' | 'author' | 'milestone' | 'body' | 'branch')[] | 'title' | 'author' | 'milestone' | 'body' | 'branch' | 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)
}