From 8211e01d9e6f283077c5692b62d7ea81e0a60f9e Mon Sep 17 00:00:00 2001 From: John Olheiser <42128690+jolheiser@users.noreply.github.com> Date: Sat, 9 Mar 2019 05:00:38 -0600 Subject: [PATCH] Add unit types to repo action URL to correctly show 404 when archived (#6247) Signed-off-by: jolheiser --- routers/routes/routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 01da321e4..f2fd96c3d 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -577,7 +577,7 @@ func RegisterRoutes(m *macaron.Macaron) { }) }, reqSignIn, context.RepoAssignment(), reqRepoAdmin, context.UnitTypes(), context.RepoRef()) - m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), context.RepoMustNotBeArchived(), repo.Action) + m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), context.UnitTypes(), context.RepoMustNotBeArchived(), repo.Action) m.Group("/:username/:reponame", func() { m.Group("/issues", func() {