We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d24da0 commit 9f994f7Copy full SHA for 9f994f7
internal/cmd/match_criteria_test.go
@@ -68,6 +68,36 @@ func TestLabelsMatch(t *testing.T) {
68
selectLabels: []string{},
69
want: true,
70
},
71
+ {
72
+ prLabels: []string{"a"},
73
+ selectLabels: []string{"a"},
74
+ ignoreLabels: []string{"b"},
75
+ want: true,
76
+ },
77
78
79
80
+ ignoreLabels: []string{"a"},
81
+ want: false,
82
83
84
85
+ selectLabels: []string{},
86
+ ignoreLabels: []string{},
87
88
89
90
91
92
93
94
95
96
+ prLabels: []string{"a", "b", "c"},
97
+ selectLabels: []string{"a", "b"},
98
+ ignoreLabels: []string{"c"},
99
100
101
}
102
103
for _, test := range tests {
0 commit comments