Created
April 6, 2017 09:44
-
-
Save zealot128/b9f2bf027a26e5f981acb38e3e00c37f to your computer and use it in GitHub Desktop.
gitlab stats
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RAILS_ENV=production bundle exec rails r run.rb | |
puts "All Time:" | |
puts "-------------------" | |
puts "Number of successful deploys into production:" | |
puts Ci::Pipeline.where(ref: 'master').where(status: 'success').count | |
puts "Number of commits over all projects (no forks)" | |
puts Project.all.reject{|p| p.forked? }.map{|i| i.statistics.commit_count }.sum | |
puts "Number of issues" | |
puts Issue.count |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment