1
0
mirror of https://github.com/woodpecker-ci/woodpecker.git synced 2025-11-23 21:44:44 +02:00

Setting for empty commits on path condition (#3708)

This commit is contained in:
Kai J
2024-05-14 16:28:14 +02:00
committed by GitHub
parent d92cf4b18e
commit faf6b33140
5 changed files with 27 additions and 4 deletions

View File

@@ -260,6 +260,16 @@ func TestConstraintList(t *testing.T) {
with: []string{},
want: true,
},
{
conf: "{ include: [ README.md ], on_empty: false }",
with: []string{},
want: false,
},
{
conf: "{ include: [ README.md ], on_empty: true }",
with: []string{},
want: true,
},
}
for _, test := range testdata {
c := parseConstraintPath(t, test.conf)