Browse Source

统计提交数 log

pull/330/head
xxq250 3 years ago
parent
commit
9dd8de07dc
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/tasks/total_commit_count.rake

+ 1
- 0
lib/tasks/total_commit_count.rake View File

@@ -12,6 +12,7 @@ namespace :total_commit_count do
# projects = Project.where(:name => 'opensource0311')
projects.each_with_index do |project, index|
result = Gitea::Repository::Commits::ListService.call(project.owner.login,project.identifier,sha: "", page: 1, limit: 5, token: project.owner.gitea_token)
next if result.blank? || result[:total_count].blank?
total_count = result[:total_count]
next if total_count > 2000
puts "#{index} total_count==========#{total_count}"


Loading…
Cancel
Save