mirror of
https://github.com/github/codeql-action
synced 2026-05-23 20:00:54 +03:00
Test the branch patterns work both ways
This commit is contained in:
Generated
+2
@@ -223,6 +223,8 @@ ava_1.default("patternsOverlap()", (t) => {
|
||||
t.false(actionsutil.patternsOverlap("*", "feature/*"));
|
||||
t.true(actionsutil.patternsOverlap("**", "feature/*"));
|
||||
t.false(actionsutil.patternsOverlap("feature-*", "**"));
|
||||
t.false(actionsutil.patternsOverlap("a/**/c", "a/**/d"));
|
||||
t.false(actionsutil.patternsOverlap("a/**/c", "a/**"));
|
||||
t.true(actionsutil.patternsOverlap("/robin/*/release/*", "/robin/moose/release/goose"));
|
||||
t.false(actionsutil.patternsOverlap("/robin/moose/release/goose", "/robin/*/release/*"));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user