mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
commit提取贡献者创建时间
This commit is contained in:
@@ -47,6 +47,7 @@ namespace :batch_add_contributors do
|
||||
else
|
||||
sql = "INSERT INTO commit_contributors (`created_at`, `count`, `name`) VALUES ('#{commit_date_str}',1,'#{commiter['email']}')"
|
||||
end
|
||||
puts "sql====#{sql}"
|
||||
|
||||
sql_connection.execute(sql)
|
||||
sql_connection.commit_db_transaction
|
||||
@@ -97,6 +98,7 @@ namespace :batch_add_contributors do
|
||||
else
|
||||
sql = "INSERT INTO commit_contributors (`created_at`, `count`, `name`) VALUES ('#{commit_date_str}',1,'#{commiter['email']}')"
|
||||
end
|
||||
puts "sql====#{sql}"
|
||||
|
||||
sql_connection.execute(sql)
|
||||
sql_connection.commit_db_transaction
|
||||
|
||||
Reference in New Issue
Block a user