Skip to content

Commit

Permalink
Merge pull request #220 from Ocramius/feature/logs-badge-matchBranchR…
Browse files Browse the repository at this point in the history
…egex-documentation

Documented `logs.badge.branch` accepting a regular expression
  • Loading branch information
maks-rafalko committed Jul 20, 2021
2 parents 2787501 + 4e8d383 commit 6f2fc1f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
15 changes: 14 additions & 1 deletion src/guide/mutation-badge.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,20 @@ Take these steps to enable the mutation score badge on your repository:
{
"logs": {
"badge": {
"branch": "master"
"branch": "/^release-.*$/"
}
}
}
```

If you provide a value that is not a regular expression starting and ending with `/`, a direct match will
be performed:

```json
{
"logs": {
"badge": {
"branch": "main"
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/guide/usage.md
Original file line number Diff line number Diff line change
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": {
"branch": "master"
"branch": "/^release-.*$/"
}
},
"tmpDir": "/opt/tmp-folder",
Expand Down

0 comments on commit 6f2fc1f

Please sign in to comment.