计图commit补充

This commit is contained in:
xxq250 2023-04-18 16:42:17 +08:00
parent 97cdcdd6de
commit 3a2395d58a
1 changed files with 1 additions and 0 deletions

View File

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