forked from Trustie/forgeplus
fixed 代码同步方向
This commit is contained in:
parent
df032c5343
commit
7b1f50dc76
|
|
@ -3,8 +3,8 @@ json.gitlink_branch_name @branch&.gitlink_branch_name
|
|||
json.external_type @branch&.sync_repository&.type
|
||||
json.external_branch_name @branch&.external_branch_name
|
||||
json.logs @reposync_branch_logs.each do |log|
|
||||
type = log['repo_name'].start_with?('gitee') ? 'gitee' : 'github'
|
||||
json.change_from log['sync_direct'] == "to_inter" ? type : 'gitlink'
|
||||
type = log['repo_name'].start_with?('gitee') ? 'gitee' : log['repo_name'].start_with?('github') ? 'github' : 'gitlink'
|
||||
json.change_from log['sync_direct'] == "to_inter" ? type : 'osredm'
|
||||
json.commit_id log['commit_id']
|
||||
json.sync_time log['update_at']
|
||||
json.log log['log']
|
||||
|
|
|
|||
Loading…
Reference in New Issue