|
|
|
@@ -62,7 +62,7 @@ namespace :commit_log_to_db do |
|
|
|
commit_message = commit['commit']['message'] |
|
|
|
user = User.find_by(mail: commiter['email']) |
|
|
|
commit_date = Time.parse(commit['commit']['author']['date']) |
|
|
|
commit_date_str = commit_date.strftime("%a %b %d %H:%M:%S") |
|
|
|
commit_date_str = commit_date.strftime("%Y-%m-%d %H:%M:%S") |
|
|
|
|
|
|
|
data += "(#{user&.id},#{project.id},#{project.repository&.id},'#{project.identifier}','#{project.owner.name}/#{project.identifier}','#{commit_sha}','#{ref}','#{commit_message}','#{commit_date_str}','#{commit_date_str}')," |
|
|
|
end |
|
|
|
|