统计提交数rake

This commit is contained in:
xxq250 2023-03-23 14:10:33 +08:00
parent 7ef5e48b9d
commit e9c7009c39
1 changed files with 1 additions and 1 deletions

View File

@ -1,6 +1,6 @@
namespace :total_commit_count do namespace :total_commit_count do
desc "total_commit_count" desc "total_commit_count"
task git_demo_raw: :environment do task done: :environment do
project_name = ENV['name'] || "mindspore" project_name = ENV['name'] || "mindspore"
puts "project_id=================#{project_name}" puts "project_id=================#{project_name}"
projects = Project.where("name like ?", "%#{project_name}%") projects = Project.where("name like ?", "%#{project_name}%")