File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -126,24 +126,23 @@ func TestDetectMatched(t *testing.T) {
126126 expected : true ,
127127 },
128128 {
129- desc : "push to tag matches workflow with paths condition (should skip paths check)" ,
130- triggedEvent : webhook_module .HookEventPush ,
131- payload : & api.PushPayload {
129+ desc : "push to tag matches workflow with paths condition (should skip paths check)" ,
130+ triggedEvent : webhook_module .HookEventPush ,
131+ payload : & api.PushPayload {
132132 Ref : "refs/tags/v1.0.0" ,
133133 Before : "0000000" ,
134134 Commits : []* api.PayloadCommit {
135135 {
136136 ID : "abcdef123456" ,
137- Added : []string {"src/main.go" },
138- Message : "Release v1.0.0" ,
139- },
140- },
141- },
142- commit : nil ,
143- yamlOn : "on:\n push:\n paths:\n - src/**" ,
144- expected : true ,
145- },
146-
137+ Added : []string {"src/main.go" },
138+ Message : "Release v1.0.0" ,
139+ },
140+ },
141+ },
142+ commit : nil ,
143+ yamlOn : "on:\n push:\n paths:\n - src/**" ,
144+ expected : true ,
145+ },
147146 }
148147
149148 for _ , tc := range testCases {
You can’t perform that action at this time.
0 commit comments