|
|
|
@@ -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}" |
|
|
|
|