rake commit_log_to_db 放行符
This commit is contained in:
parent
15100689c3
commit
ffea285962
|
@ -25,7 +25,7 @@ namespace :commit_log_to_db do
|
|||
commit_author = "#{commiter['name']} <#{commiter['email']}>"
|
||||
commit_sha = commit['sha']
|
||||
ref = "master"
|
||||
commit_message = commit['commit']['message']
|
||||
commit_message = commit['commit']['message'].to_s.gsub("/n","")
|
||||
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")
|
||||
|
@ -59,7 +59,7 @@ namespace :commit_log_to_db do
|
|||
commit_author = "#{commiter['name']} <#{commiter['email']}>"
|
||||
commit_sha = commit['sha']
|
||||
ref = "master"
|
||||
commit_message = commit['commit']['message']
|
||||
commit_message = commit['commit']['message'].to_s.gsub("/n","")
|
||||
user = User.find_by(mail: commiter['email'])
|
||||
commit_date = Time.parse(commit['commit']['author']['date'])
|
||||
commit_date_str = commit_date.strftime("%Y-%m-%d %H:%M:%S")
|
||||
|
|
Loading…
Reference in New Issue