[PR #428] [MERGED] commithgraph / timeline #15375

Closed
opened 2025-11-02 11:45:09 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/428
Author: @kjellkvinge
Created: 12/20/2016
Status: Merged
Merged: 12/28/2016
Merged by: @lunny

Base: masterHead: master


📝 Commits (4)

📊 Changes

10 files changed (+673 additions, -2 deletions)

View changed files

📝 cmd/web.go (+1 -0)
models/graph.go (+108 -0)
models/graph_test.go (+41 -0)
public/css/gitgraph.css (+15 -0)
public/js/draw.js (+17 -0)
public/js/libs/gitgraph.js (+399 -0)
📝 routers/repo/commit.go (+27 -0)
📝 templates/base/head.tmpl (+7 -0)
📝 templates/repo/commits.tmpl (+14 -2)
templates/repo/graph.tmpl (+44 -0)

📄 Description

Hi.

As mentioned in #410 - this is what I have so far. I do not have much experience with go and projects like gitea, so I will be happy for any comments and guidance :)

This patch contains functionality to:

  • gather data from the repo by running something like 'git log --graph --pretty=oneline -n 100'
  • adds route to graph endpoint
  • use js to draw the actual graph. (using gitgraph - https://github.com/bluef/gitgraph.js )

🔄 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/428 **Author:** [@kjellkvinge](https://github.com/kjellkvinge) **Created:** 12/20/2016 **Status:** ✅ Merged **Merged:** 12/28/2016 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `master` --- ### 📝 Commits (4) - [`a8a9cf5`](https://github.com/go-gitea/gitea/commit/a8a9cf57aade0e80bf60dc0cb392d953806d1493) Add model and tests for graph - [`bf76828`](https://github.com/go-gitea/gitea/commit/bf7682888f93082329bfabe2a6aad519f7a827ba) Add route and router for graph - [`9e97946`](https://github.com/go-gitea/gitea/commit/9e97946d004e51eb9d233457ee1d53a772170daf) Add assets for graph - [`49eb8e6`](https://github.com/go-gitea/gitea/commit/49eb8e649c215f27db39944118174cb4666f670b) Add template for graph ### 📊 Changes **10 files changed** (+673 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `cmd/web.go` (+1 -0) ➕ `models/graph.go` (+108 -0) ➕ `models/graph_test.go` (+41 -0) ➕ `public/css/gitgraph.css` (+15 -0) ➕ `public/js/draw.js` (+17 -0) ➕ `public/js/libs/gitgraph.js` (+399 -0) 📝 `routers/repo/commit.go` (+27 -0) 📝 `templates/base/head.tmpl` (+7 -0) 📝 `templates/repo/commits.tmpl` (+14 -2) ➕ `templates/repo/graph.tmpl` (+44 -0) </details> ### 📄 Description Hi. As mentioned in #410 - this is what I have so far. I do not have much experience with go and projects like gitea, so I will be happy for any comments and guidance :) This patch contains functionality to: - gather data from the repo by running something like 'git log --graph --pretty=oneline -n 100' - adds route to graph endpoint - use js to draw the actual graph. (using gitgraph - https://github.com/bluef/gitgraph.js ) --- <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 11:45:09 -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#15375