소스 검색

#2251 show commits count in PR tabs

Unknwon 9 년 전
부모
커밋
f00fef0cd0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      cmd/web.go

+ 2 - 2
cmd/web.go

@@ -492,8 +492,8 @@ func runWeb(ctx *cli.Context) {
 		m.Get("/archive/*", repo.Download)
 
 		m.Group("/pulls/:index", func() {
-			m.Get("/commits", repo.ViewPullCommits)
-			m.Get("/files", repo.ViewPullFiles)
+			m.Get("/commits", middleware.RepoRef(), repo.ViewPullCommits)
+			m.Get("/files", middleware.RepoRef(), repo.ViewPullFiles)
 			m.Post("/merge", reqRepoAdmin, repo.MergePullRequest)
 		}, repo.MustEnablePulls)