woodpecker/pipeline/frontend/yaml
Stephen Muth bc87208a33
Rework status constraint logic for successes (#1515)
Since "success" and "failure" are the only two possible values, and
"success" is considered to be included by default, the existing code can
also be simplified a little.

This has the side effect of ignoring the "exclude" part of the
constraint completely. I put it in the tests just to make sure the
workaround in
https://github.com/woodpecker-ci/woodpecker/issues/1181#issuecomment-1347253585
continues to work as expected, but couldn't think of any legitimate use
cases for it.

Fixes #1181
2023-01-02 06:36:57 +01:00
..
compiler Rework status constraint logic for successes (#1515) 2023-01-02 06:36:57 +01:00
constraint Rework status constraint logic for successes (#1515) 2023-01-02 06:36:57 +01:00
linter Move constrain to only have a single command in backend to run to dedicated backends (#1032) 2022-10-31 00:26:49 +01:00
matrix Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
types Move constrain to only have a single command in backend to run to dedicated backends (#1032) 2022-10-31 00:26:49 +01:00
config.go Add support for pipeline root.when conditions (#770) 2022-09-26 09:27:20 +02:00
config_test.go Rename build to pipeline in code (#1224) 2022-10-18 03:24:12 +02:00
container.go Add option to ignore failures on steps (#1219) 2022-11-15 19:47:27 +01:00
container_test.go Move constrain to only have a single command in backend to run to dedicated backends (#1032) 2022-10-31 00:26:49 +01:00
error.go Fix to show build pipeline parse error (#1066) 2022-08-15 14:37:46 +02:00
network.go Add linter misspell (#530) 2021-11-24 02:01:12 +01:00
network_test.go Remove github.com/kr/pretty in favor of assert.EqualValues() (#564) 2021-12-04 13:23:33 +01:00
secret.go Add linter misspell (#530) 2021-11-24 02:01:12 +01:00
secret_test.go Remove github.com/kr/pretty in favor of assert.EqualValues() (#564) 2021-12-04 13:23:33 +01:00
volume.go Add linter misspell (#530) 2021-11-24 02:01:12 +01:00
volume_test.go Remove github.com/kr/pretty in favor of assert.EqualValues() (#564) 2021-12-04 13:23:33 +01:00