Skip to content

Commit

Permalink
Documented logs.badge.branch used as a regular expression
Browse files Browse the repository at this point in the history
Also removed `logs.badge.matchBranchRegex` docs: the upstream patch in infection/infection#1538
also got rid of it.
  • Loading branch information
Ocramius committed Jul 20, 2021
1 parent ada9e77 commit 4e8d383
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/guide/mutation-badge.md
Expand Up @@ -32,15 +32,14 @@ Take these steps to enable the mutation score badge on your repository:
{
"logs": {
"badge": {
"matchBranchRegex": "/^release-.*$/"
"branch": "/^release-.*$/"
}
}
}
```

It is also possible to use `logs.badge.branch`, which does an exact match against your branch, should you wish
to run reporting against a single specific branch. Be aware that `branch` and `matchBranchRegex` are mutually
exclusive:
If you provide a value that is not a regular expression starting and ending with `/`, a direct match will
be performed:

```json
{
Expand Down
2 changes: 1 addition & 1 deletion src/guide/usage.md
Expand Up @@ -27,7 +27,7 @@ The first time you run Infection for your project, it will ask you several quest
"perMutator": "per-mutator.md",
"github": true,
"badge": {
"matchBranchRegex": "/^master$/"
"branch": "/^release-.*$/"
}
},
"tmpDir": "/opt/tmp-folder",
Expand Down

0 comments on commit 4e8d383

Please sign in to comment.