woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.3k stars 371 forks source link

Allow configuration option to specify default filter labels #4324

Closed lafriks closed 1 week ago

lafriks commented 2 weeks ago

Clear and concise description of the problem

Currently there is no way to limit where to limit agents where pipelines without any filter labels specified to run on.

Suggested solution

Add configuration option for woodpecker server to set default label filters that would be set for pipelines that has no filter set.

This could also be used as alternative to fix #2634

Alternative

As workaround this possible be also implemented in external configuration service but that seems not so straightforward and could be harder to implement

Additional context

Gitlab CI implements similar approach to allow for agents to set option that they are allowed to run "untagged pipelines"

Validations