Skip to content

Commit d01db69

Browse files
authored
Fix lint-go CI failure by formatting label names test file (#31546)
1 parent 7d19592 commit d01db69

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

pkg/workflow/label_names_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,10 @@ func TestLabelNamesPreActivationFilter(t *testing.T) {
110110
compiler := NewCompiler()
111111

112112
tests := []struct {
113-
name string
114-
frontmatter string
115-
expectedIf string
116-
shouldHaveIf bool
113+
name string
114+
frontmatter string
115+
expectedIf string
116+
shouldHaveIf bool
117117
shouldCheckLabelArrayItems bool
118118
labelItems []string
119119
}{
@@ -135,8 +135,8 @@ tools:
135135
github:
136136
allowed: [get_pull_request]
137137
---`,
138-
expectedIf: "github.event.label == null || github.event.label.name == 'panel-review'",
139-
shouldHaveIf: true,
138+
expectedIf: "github.event.label == null || github.event.label.name == 'panel-review'",
139+
shouldHaveIf: true,
140140
labelItems: []string{"panel-review"},
141141
shouldCheckLabelArrayItems: false,
142142
},
@@ -158,8 +158,8 @@ tools:
158158
github:
159159
allowed: [get_pull_request]
160160
---`,
161-
expectedIf: "github.event.label == null || github.event.label.name == 'panel-review' || github.event.label.name == 'needs-triage'",
162-
shouldHaveIf: true,
161+
expectedIf: "github.event.label == null || github.event.label.name == 'panel-review' || github.event.label.name == 'needs-triage'",
162+
shouldHaveIf: true,
163163
labelItems: []string{"panel-review", "needs-triage"},
164164
shouldCheckLabelArrayItems: true,
165165
},
@@ -203,8 +203,8 @@ tools:
203203
github:
204204
allowed: [issue_read]
205205
---`,
206-
expectedIf: "github.event.label == null || github.event.label.name == 'bug' || github.event.label.name == 'enhancement'",
207-
shouldHaveIf: true,
206+
expectedIf: "github.event.label == null || github.event.label.name == 'bug' || github.event.label.name == 'enhancement'",
207+
shouldHaveIf: true,
208208
labelItems: []string{"bug", "enhancement"},
209209
shouldCheckLabelArrayItems: true,
210210
},

0 commit comments

Comments
 (0)