diff options
author | Lauris BH <lauris@nix.lv> | 2019-05-04 15:39:03 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-04 15:39:03 +0300 |
commit | 1fa96629461ac4229932b0a4526fc2f60c88ec51 (patch) | |
tree | caa3906758c6998bb6450932393336ac57c3db19 /routers/routes | |
parent | 2933ae4e88bb954af76c4e1e67c7ab1e4892e4a4 (diff) | |
download | gitea-1fa96629461ac4229932b0a4526fc2f60c88ec51.tar.gz gitea-1fa96629461ac4229932b0a4526fc2f60c88ec51.zip |
Git statistics in Activity tab (#4724)
* Initial implementation for git statistics in Activity tab
* Create top user by commit count endpoint
* Add UI and update src-d/go-git dependency
* Add coloring
* Fix typo
* Move git activity stats data extraction to git module
* Fix message
* Add git code stats test
Diffstat (limited to 'routers/routes')
-rw-r--r-- | routers/routes/routes.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go index 5fa37a8417..938afcab79 100644 --- a/routers/routes/routes.go +++ b/routers/routes/routes.go @@ -802,6 +802,11 @@ func RegisterRoutes(m *macaron.Macaron) { m.Get("/:period", repo.Activity) }, context.RepoRef(), repo.MustBeNotEmpty, context.RequireRepoReaderOr(models.UnitTypePullRequests, models.UnitTypeIssues, models.UnitTypeReleases)) + m.Group("/activity_author_data", func() { + m.Get("", repo.ActivityAuthors) + m.Get("/:period", repo.ActivityAuthors) + }, context.RepoRef(), repo.MustBeNotEmpty, context.RequireRepoReaderOr(models.UnitTypeCode)) + m.Get("/archive/*", repo.MustBeNotEmpty, reqRepoCodeReader, repo.Download) m.Group("/branches", func() { |