Signed-off-by: Seongmin Lee git@boltless.me
ERROR
api/tangled/pipelinecancelPipeline.go
ERROR
api/tangled/pipelinecancelPipeline.go
Failed to calculate interdiff for this file.
ERROR
appview/pages/templates/repo/pipelines/workflow.html
ERROR
appview/pages/templates/repo/pipelines/workflow.html
Failed to calculate interdiff for this file.
ERROR
appview/pipelines/pipelines.go
ERROR
appview/pipelines/pipelines.go
Failed to calculate interdiff for this file.
ERROR
lexicons/pipeline/cancelPipeline.json
ERROR
lexicons/pipeline/cancelPipeline.json
Failed to calculate interdiff for this file.
ERROR
spindle/db/events.go
ERROR
spindle/db/events.go
Failed to calculate interdiff for this file.
ERROR
spindle/server.go
ERROR
spindle/server.go
Failed to calculate interdiff for this file.
ERROR
spindle/xrpc/pipeline_cancelPipeline.go
ERROR
spindle/xrpc/pipeline_cancelPipeline.go
Failed to calculate interdiff for this file.
ERROR
spindle/xrpc/xrpc.go
ERROR
spindle/xrpc/xrpc.go
Failed to calculate interdiff for this file.
NEW
appview/state/router.go
NEW
appview/state/router.go
···
96
96
r.Mount("/", s.RepoRouter(mw))
97
97
r.Mount("/issues", s.IssuesRouter(mw))
98
98
r.Mount("/pulls", s.PullsRouter(mw))
99
-
r.Mount("/pipelines", s.PipelinesRouter())
99
+
r.Mount("/pipelines", s.PipelinesRouter(mw))
100
100
r.Mount("/labels", s.LabelsRouter())
101
101
102
102
// These routes get proxied to the knot
···
313
313
return repo.Router(mw)
314
314
}
315
315
316
-
func (s *State) PipelinesRouter() http.Handler {
316
+
func (s *State) PipelinesRouter(mw *middleware.Middleware) http.Handler {
317
317
pipes := pipelines.New(
318
318
s.oauth,
319
319
s.repoResolver,
···
325
325
s.enforcer,
326
326
log.SubLogger(s.logger, "pipelines"),
327
327
)
328
-
return pipes.Router()
328
+
return pipes.Router(mw)
329
329
}
330
330
331
331
func (s *State) LabelsRouter() http.Handler {