[PR #4724] [MERGED] Git statistics in Activity tab #17477

Closed
opened 2025-11-02 13:35:54 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/4724
Author: @lafriks
Created: 8/15/2018
Status: Merged
Merged: 5/4/2019
Merged by: @lafriks

Base: masterHead: feat/git_stats


📝 Commits (10+)

  • 36dc4fe Initial implementation for git statistics in Activity tab
  • 842277a Create top user by commit count endpoint
  • 251e168 Add UI and update src-d/go-git dependency
  • 070c8c1 Add coloring
  • 5e96ab1 Fix typo
  • 3336bda Move git activity stats data extraction to git module
  • 5c15007 Fix message
  • 5d4e114 Add git code stats test
  • 2605ae0 Merge branch 'master' into feat/git_stats
  • 0d73090 Merge branch 'master' into feat/git_stats

📊 Changes

7 files changed (+306 additions, -8 deletions)

View changed files

📝 models/repo_activity.go (+82 -6)
modules/git/repo_stats.go (+108 -0)
modules/git/repo_stats_test.go (+35 -0)
📝 options/locale/locale_en-US.ini (+18 -0)
📝 routers/repo/activity.go (+31 -2)
📝 routers/routes/routes.go (+5 -0)
📝 templates/repo/activity.tmpl (+27 -0)

📄 Description

Fixes #4697

TODO:

  • Implement required methods to load data
  • Git statistics display in Activity Tab
  • UI cleanup
  • Implement bar chart with top 10 users in UI (can be implemented in other PR)

Screenshot:
attels


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/4724 **Author:** [@lafriks](https://github.com/lafriks) **Created:** 8/15/2018 **Status:** ✅ Merged **Merged:** 5/4/2019 **Merged by:** [@lafriks](https://github.com/lafriks) **Base:** `master` ← **Head:** `feat/git_stats` --- ### 📝 Commits (10+) - [`36dc4fe`](https://github.com/go-gitea/gitea/commit/36dc4fe82590120bda35e3be60276d8242f6e63a) Initial implementation for git statistics in Activity tab - [`842277a`](https://github.com/go-gitea/gitea/commit/842277ad2ac155109a0fde1724d4269b6ca8db8e) Create top user by commit count endpoint - [`251e168`](https://github.com/go-gitea/gitea/commit/251e168a1dcb30c362d83efdfa14e82615b4dcba) Add UI and update src-d/go-git dependency - [`070c8c1`](https://github.com/go-gitea/gitea/commit/070c8c17be2b543e3f721059e5579b5fba03f841) Add coloring - [`5e96ab1`](https://github.com/go-gitea/gitea/commit/5e96ab1752bbdc823ab6cafd0a0df48650cf7364) Fix typo - [`3336bda`](https://github.com/go-gitea/gitea/commit/3336bda09c7e53d455fa1e3d660cfd61d176dd21) Move git activity stats data extraction to git module - [`5c15007`](https://github.com/go-gitea/gitea/commit/5c15007ea24bf06997c99706e2cb81e4fee78952) Fix message - [`5d4e114`](https://github.com/go-gitea/gitea/commit/5d4e114dcad62f3aab5dd65b63c769b76c3e1346) Add git code stats test - [`2605ae0`](https://github.com/go-gitea/gitea/commit/2605ae0c3fcd7e8af6ab462d754dc933c5df25e6) Merge branch 'master' into feat/git_stats - [`0d73090`](https://github.com/go-gitea/gitea/commit/0d73090c1b14faf07f601797c2d519c11bdab90b) Merge branch 'master' into feat/git_stats ### 📊 Changes **7 files changed** (+306 additions, -8 deletions) <details> <summary>View changed files</summary> 📝 `models/repo_activity.go` (+82 -6) ➕ `modules/git/repo_stats.go` (+108 -0) ➕ `modules/git/repo_stats_test.go` (+35 -0) 📝 `options/locale/locale_en-US.ini` (+18 -0) 📝 `routers/repo/activity.go` (+31 -2) 📝 `routers/routes/routes.go` (+5 -0) 📝 `templates/repo/activity.tmpl` (+27 -0) </details> ### 📄 Description Fixes #4697 TODO: - [x] Implement required methods to load data - [x] Git statistics display in Activity Tab - [x] UI cleanup - [ ] ~~Implement bar chart with top 10 users in UI~~ (can be implemented in other PR) Screenshot: ![attels](https://user-images.githubusercontent.com/165205/53291879-cd5b3300-37c2-11e9-8242-e6b2f5c54194.png) --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 13:35:54 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17477