You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
name: "--ignore-labels match (with one out of two)",
28
-
prLabels: []string{"a", "b"},
29
-
ignoreLabels: []string{"b", "c"},
30
-
want: false,
28
+
name: "--ignore-labels match (with one out of two)",
29
+
prLabels: []string{"a", "b"},
30
+
ignoreLabels: []string{"b", "c"},
31
+
want: false,
32
+
caseSensitive: false,
31
33
},
32
34
33
35
{
34
-
name: "no labels match (select or ignore)",
35
-
prLabels: []string{"a"},
36
-
ignoreLabels: []string{"b"},
37
-
selectLabels: []string{"c"},
38
-
want: false,
36
+
name: "no labels match (select or ignore)",
37
+
prLabels: []string{"a"},
38
+
ignoreLabels: []string{"b"},
39
+
selectLabels: []string{"c"},
40
+
want: false,
41
+
caseSensitive: false,
39
42
},
40
43
{
41
-
name: "--select-labels match",
42
-
prLabels: []string{"a", "c"},
43
-
ignoreLabels: []string{"b"},
44
-
selectLabels: []string{"c"},
45
-
want: true,
44
+
name: "--select-labels match",
45
+
prLabels: []string{"a", "c"},
46
+
ignoreLabels: []string{"b"},
47
+
selectLabels: []string{"c"},
48
+
want: true,
49
+
caseSensitive: false,
46
50
},
47
51
{
48
-
name: "--select-labels match (with one out of two) and ignore labels don't match",
49
-
prLabels: []string{"a"},
50
-
ignoreLabels: []string{"b"},
51
-
selectLabels: []string{"a", "c"},
52
-
want: true,
52
+
name: "--select-labels match (with one out of two) and ignore labels don't match",
53
+
prLabels: []string{"a"},
54
+
ignoreLabels: []string{"b"},
55
+
selectLabels: []string{"a", "c"},
56
+
want: true,
57
+
caseSensitive: false,
53
58
},
54
59
{
55
-
name: "the pull request has no labels",
56
-
prLabels: []string{},
57
-
ignoreLabels: []string{"b"},
58
-
selectLabels: []string{"a", "c"},
59
-
want: false,
60
+
name: "the pull request has no labels",
61
+
prLabels: []string{},
62
+
ignoreLabels: []string{"b"},
63
+
selectLabels: []string{"a", "c"},
64
+
want: false,
65
+
caseSensitive: false,
60
66
},
61
67
{
62
-
name: "the pull request has no labels and ignore labels don't match so it matches - but select labels is empty so it means all labels or even no labels match",
63
-
prLabels: []string{},
64
-
ignoreLabels: []string{"b"},
65
-
selectLabels: []string{},
66
-
want: true,
68
+
name: "the pull request has no labels and ignore labels don't match so it matches - but select labels is empty so it means all labels or even no labels match",
69
+
prLabels: []string{},
70
+
ignoreLabels: []string{"b"},
71
+
selectLabels: []string{},
72
+
want: true,
73
+
caseSensitive: false,
67
74
},
68
75
{
69
-
name: "the pull request has no labels but we want to match the a label",
70
-
prLabels: []string{},
71
-
ignoreLabels: []string{},
72
-
selectLabels: []string{"a"},
73
-
want: false,
76
+
name: "the pull request has no labels but we want to match the a label",
77
+
prLabels: []string{},
78
+
ignoreLabels: []string{},
79
+
selectLabels: []string{"a"},
80
+
want: false,
81
+
caseSensitive: false,
74
82
},
75
83
{
76
-
name: "no label match criteria, so it matches",
77
-
prLabels: []string{},
78
-
ignoreLabels: []string{},
79
-
selectLabels: []string{},
80
-
want: true,
84
+
name: "no label match criteria, so it matches",
85
+
prLabels: []string{},
86
+
ignoreLabels: []string{},
87
+
selectLabels: []string{},
88
+
want: true,
89
+
caseSensitive: false,
81
90
},
82
91
{
83
-
name: "with one matching label and no matching ignore labels so it matches",
84
-
prLabels: []string{"a"},
85
-
selectLabels: []string{"a"},
86
-
ignoreLabels: []string{"b"},
87
-
want: true,
92
+
name: "with one matching label and no matching ignore labels so it matches",
93
+
prLabels: []string{"a"},
94
+
selectLabels: []string{"a"},
95
+
ignoreLabels: []string{"b"},
96
+
want: true,
97
+
caseSensitive: false,
88
98
},
89
99
{
90
-
name: "the pr labels match the select and ignore labels so it doesn't match",
91
-
prLabels: []string{"a"},
92
-
selectLabels: []string{"a"},
93
-
ignoreLabels: []string{"a"},
94
-
want: false,
100
+
name: "the pr labels match the select and ignore labels so it doesn't match",
101
+
prLabels: []string{"a"},
102
+
selectLabels: []string{"a"},
103
+
ignoreLabels: []string{"a"},
104
+
want: false,
105
+
caseSensitive: false,
95
106
},
96
107
{
97
-
name: "the pr has one label but no defined ignore or select labels so it matches",
98
-
prLabels: []string{"a"},
99
-
selectLabels: []string{},
100
-
ignoreLabels: []string{},
101
-
want: true,
108
+
name: "the pr has one label but no defined ignore or select labels so it matches",
109
+
prLabels: []string{"a"},
110
+
selectLabels: []string{},
111
+
ignoreLabels: []string{},
112
+
want: true,
113
+
caseSensitive: false,
102
114
},
103
115
{
104
-
name: "the pr has one label and it is the select label so it matches",
105
-
prLabels: []string{"a"},
106
-
selectLabels: []string{"a"},
107
-
ignoreLabels: []string{},
108
-
want: true,
116
+
name: "the pr has one label and it is the select label so it matches",
117
+
prLabels: []string{"a"},
118
+
selectLabels: []string{"a"},
119
+
ignoreLabels: []string{},
120
+
want: true,
121
+
caseSensitive: false,
109
122
},
110
123
{
111
-
name: "the pr has labels and matching select labels but it matches an ignore label so it doesn't match",
112
-
prLabels: []string{"a", "b", "c"},
113
-
selectLabels: []string{"a", "b"},
114
-
ignoreLabels: []string{"c"},
115
-
want: false,
124
+
name: "the pr has labels and matching select labels but it matches an ignore label so it doesn't match",
125
+
prLabels: []string{"a", "b", "c"},
126
+
selectLabels: []string{"a", "b"},
127
+
ignoreLabels: []string{"c"},
128
+
want: false,
129
+
caseSensitive: false,
116
130
},
117
131
{
118
132
name: "the pr has uppercase labels and we are using case insensitive labels so it matches",
0 commit comments