commit_log_to_db.rake trustie all
This commit is contained in:
parent
c2a4e62131
commit
03277d2ad7
|
@ -13,6 +13,7 @@ namespace :commit_log_to_db do
|
||||||
# projects = Project.where(id: [5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950])
|
# projects = Project.where(id: [5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950])
|
||||||
projects = Project.where("id < 6200").where("id not in(5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950)").where("project_type !=2")
|
projects = Project.where("id < 6200").where("id not in(5533,2,5971,299,1707,4418,1673,290,17,29,907,956,162,950)").where("project_type !=2")
|
||||||
projects.each_with_index do |project, index|
|
projects.each_with_index do |project, index|
|
||||||
|
next if project.owner.nil?
|
||||||
result = Gitea::Repository::Commits::ListService.call(project.owner.login,project.identifier,sha: "", page: 1, limit: 200, token: project.owner.gitea_token)
|
result = Gitea::Repository::Commits::ListService.call(project.owner.login,project.identifier,sha: "", page: 1, limit: 200, token: project.owner.gitea_token)
|
||||||
next if result.blank? || result[:total_count].blank?
|
next if result.blank? || result[:total_count].blank?
|
||||||
total_count = result[:total_count]
|
total_count = result[:total_count]
|
||||||
|
|
Loading…
Reference in New Issue