forked from Gitlink/forgeplus
镜像项目不同步commit log
This commit is contained in:
parent
85f327b822
commit
f2b722ec60
|
|
@ -16,7 +16,7 @@ class CommitLogsController < ApplicationController
|
|||
project = Project.where(identifier: repository_name).where(user_id: owner&.id)&.first
|
||||
project = Project.where(identifier: repository_name).where(gpid: repository_id)&.first if project.blank?
|
||||
project.update_column(:updated_on, Time.now) if project.present?
|
||||
render_ok if project.project_type == 'mirror'
|
||||
render_ok if project.project_type == 'sync_mirror'
|
||||
params[:commits].each do |commit|
|
||||
commit_id = commit[:id]
|
||||
message = commit[:message]
|
||||
|
|
|
|||
Loading…
Reference in New Issue