Browse Source

计图commit补充

pull/342/head
xxq250 3 years ago
parent
commit
3a2395d58a
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      lib/tasks/commit_log_to_db.rake

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

@@ -63,6 +63,7 @@ namespace :commit_log_to_db do
# "luoyuan <luoyuan7@huawei.com>"
commit_author = "#{commiter['name']} <#{commiter['email']}>"
commit_sha = commit['sha']
next if CommitLog.find_by(commit_id: commit_sha).present?
ref = "master"
commit_message = commit['commit']['message'].to_s.gsub("/n","").gsub("\"","")
user = User.find_by(mail: commiter['email'])


Loading…
Cancel
Save