How to generate stats for a GitHub project?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-26 19:23:56

问题


Is there an easy/efficient way to generate some high-level reports for a particular GitHub project?

e.g. lines of code committed over time, top contributors, etc


回答1:


You can try applying gitstats to a cloned repo of your GitHub repo.

See for example the activity of the Git repo itself, with many data like the commits per year/month:


See also "Looking at Git Statistics", with the GitHub 'yearly_stats' for a simple little script.


Update April 2013 ("Get up to speed with Pulse"):

Check out Pulse

Pulse is a great way to discover recent activity on projects.
Maybe you haven't checked on your favorite repository in a while or you just discovered a project that looks interesting to you. Pulse will show you who has been actively committing and what has changed in a project's default branch:

You can find the link to the left of the nav bar.




回答2:


I am the author of weave-gitstats. Its opensource and based on weave. Most git statistics generators like gitstats or the statistics provided by github are "static", they don't have drilldown functionality, filtering and are limited to some default graphs. Weave-gistats provides a lot of dynamic dashboards that allow you to filter on eg year, author and allow you to create your own graphs using your own criteria.




回答3:


You should have a look to repoXplorer, an open source project I develop. It is able to compute stats for a project (a group of git repositories) as well as for a contributor and a group of contributors. It provides a REST interface and a web UI. The web UI provides various information like, for a project:

  • commits and authors count
  • date histogram of commits
  • date histogram of authors
  • top authors by commits
  • top authors by lines changed
  • top new authors compared to a given period

But best is to have a look to the demo instance here.

Here is a screenshot of the stats of the Kubernetes project (all git repositories of github organization of kubernetes):



来源:https://stackoverflow.com/questions/6610525/how-to-generate-stats-for-a-github-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!