Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add autodiscoverExclusions to exclude projects fetched by autodiscoverFilter #21347

Open
szpak opened this issue Apr 5, 2023 · 0 comments
Open
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)

Comments

@szpak
Copy link
Contributor

szpak commented Apr 5, 2023

What would you like Renovate to be able to do?

I would like to be able to add the whole GitLab group to autodiscoverFilter, yet exclude some legacy projects in that group.

The following approch doesn't work:

  autodiscover: true,
  autodiscoverFilter: [
    "whole-group1/*",
    "!/whole-group1/legacy-project-to-skip/",
    ...

If you have any ideas on how this should be implemented, please tell us here.

As suggested in #21341, it might be possible to achieve with a separate autodiscoverExclusions, e.g.

  autodiscover: true,
  autodiscoverFilter: [
    "whole-group1/*",
  ],
  autodiscoverExclusions: [
    "whole-group1/legacy-project-to-skip"
  ]

The elements in autodiscoverExclusions should be subtracted from the projects resolved by autodiscoverFilter. Probably it would be good to have an ability to use also regexps in autodiscoverExclusions (e.g. "whole-group1/legacy-project*" or "/whole-group1/legacy-group/**/" or "/**/.*-static-pages/").

Is this a feature you are interested in implementing yourself?

No

@szpak szpak added priority-5-triage status:requirements Full requirements are not yet known, so implementation should not be started type:feature Feature (new functionality) labels Apr 5, 2023
@szpak szpak changed the title Add autodiscoverExclusions to exclude projects fetched by the autodiscoverFilter Add autodiscoverExclusions to exclude projects fetched by autodiscoverFilter Apr 5, 2023
@rarkins rarkins added priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others status:ready and removed priority-5-triage status:requirements Full requirements are not yet known, so implementation should not be started labels Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
priority-3-medium Default priority, "should be done" but isn't prioritised ahead of others type:feature Feature (new functionality)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants