-
-
Notifications
You must be signed in to change notification settings - Fork 375
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
Setting for empty commits on path condition #3708
Conversation
Hello and thanks for your contribution! If I get the code correctly, settings And can you clarify in the docs that this will also apply to events that will never have a And could you add that to one branch in https://github.com/woodpecker-ci/woodpecker/blob/main/pipeline/frontend/yaml/linter/schema/.woodpecker/test-when.yaml so we test the schema? |
Deployment of preview was successful: https://woodpecker-ci-woodpecker-pr-3708.surge.sh |
Hello @qwerty287, I expanded the documentation a bit. I hope it is now a little clearer. 😊 I added |
Co-authored-by: qwerty287 <80460567+qwerty287@users.noreply.github.com>
@qwerty287 As both of use were not sure about this option when looking at it for the first time, might it be a good idea to call it sth like @da-Kai What do you think? |
In general, I'd be fine with another name, but |
@anbraten @qwerty287 Maybe one of these 2?
|
I wrote that multiple times already: the term "empty commit" is just wrong in this context. There are events that are not commits but are "empty" (so don't have files) too, for example tag and release. That's why it's not that easy to find a good name here... Using something like |
Allow to set the behavior on empty commits evaluating
path
conditions.default value is true, to preserve current behavior.