- introduce branch (head ref) as data point in the PullRequestInfo object
- expand extractor to allow using the `branch` -> e.g. to extract the label
This commit is contained in:
@@ -40,11 +40,12 @@ export interface Transformer extends Regex {
|
||||
|
||||
export interface Extractor extends Transformer {
|
||||
on_property?:
|
||||
| ('title' | 'author' | 'milestone' | 'body')[]
|
||||
| ('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)
|
||||
|
||||
Reference in New Issue
Block a user