Skip to content
Snippets Groups Projects
Unverified Commit 825926bc authored by bryan's avatar bryan Committed by GitHub
Browse files

docs: updates documentation on autodiscover filter usage (#25242)

parent 9ab6847a
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,7 @@ You can limit which repositories Renovate can access by using the `autodiscoverF ...@@ -80,6 +80,7 @@ You can limit which repositories Renovate can access by using the `autodiscoverF
## autodiscoverFilter ## autodiscoverFilter
You can use this option to filter the list of repositories that the Renovate bot account can access through `autodiscover`. You can use this option to filter the list of repositories that the Renovate bot account can access through `autodiscover`.
The pattern matches against the organization/repo path.
It takes a [minimatch](https://www.npmjs.com/package/minimatch) glob-style or regex pattern. It takes a [minimatch](https://www.npmjs.com/package/minimatch) glob-style or regex pattern.
If you set multiple filters, then the matches of each filter are added to the overall result. If you set multiple filters, then the matches of each filter are added to the overall result.
...@@ -88,18 +89,21 @@ If you use an environment variable or the CLI to set the value for `autodiscover ...@@ -88,18 +89,21 @@ If you use an environment variable or the CLI to set the value for `autodiscover
Commas will be used as delimiter for a new filter. Commas will be used as delimiter for a new filter.
``` ```
# DO NOT use commas inside the filter if your are using env or CLI variables to configure it. # DO NOT use commas inside the filter if your are using env or cli variables to configure it.
RENOVATE_AUTODISCOVER_FILTER="/myapp/{readme.md,src/**}" RENOVATE_AUTODISCOVER_FILTER="/MyOrg/{my-repo,foo-repo}"
# in this example you can use regex instead # in this example you can use regex instead
RENOVATE_AUTODISCOVER_FILTER="/myapp/(readme\.md|src/.*)/" RENOVATE_AUTODISCOVER_FILTER="/MyOrg\/(my|foo)-repo/"
``` ```
**Minimatch**: **Minimatch**:
The configuration:
```json ```json
{ {
"autodiscoverFilter": ["project/*"] "autodiscoverFilter": ["my-org/*"]
} }
``` ```
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment