Skip to content

Commit

Permalink
- update documentation with flags config for label_extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepenz committed Jun 23, 2021
1 parent f2fcbb1 commit d517474
Show file tree
Hide file tree
Showing 2 changed files with 84 additions and 201 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,8 @@ This configuration is a `.json` file in the following format.
"label_extractor": [
{
"pattern": "(.) (.+)",
"target": "$1"
"target": "$1",
"flags": "gu"
},
{
"pattern": "(.) (.+)",
Expand Down Expand Up @@ -295,6 +296,7 @@ Table of descriptions for the `configuration.json` options to configure the resu
| label_extractor.pattern | A `regex` pattern, extracting values of the change message. |
| label_extractor.target | The result pattern. The result text will be used as label. If empty, no label is created. |
| label_extractor.on_property | The property to retrieve the text from. This is optional. Defaults to: `body`. Alternative values: `title`, `author`, `milestone`. |
| label_extractor.flags | Defines the regex flags specified for the pattern. Default: `gu` |
| transformers | An array of `transform` specifications, offering a flexible API to modify the text per pull request. This is applied on the change text created with `pr_template`. `transformers` are executed per change, in the order specified |
| transformer.pattern | A `regex` pattern, extracting values of the change message. |
| transformer.target | The result pattern, the regex groups will be filled into. Allows for full transformation of a pull request message. Including potentially specified texts |
Expand Down
Loading

0 comments on commit d517474

Please sign in to comment.