mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
FIX [bug]临时处理获取readme文件问题
This commit is contained in:
@@ -57,7 +57,13 @@ class RepositoriesController < ApplicationController
|
||||
# TODO
|
||||
# 临时处理readme文件问题
|
||||
admin = User.where(admin: true).last
|
||||
@readme = Gitea::Repository::Readme::GetService.call(@owner.login, @project.identifier, @ref, admin&.gitea_token)
|
||||
result = Gitea::Repository::Readme::GetService.call(@owner.login, @project.identifier, @ref, admin&.gitea_token)
|
||||
@readme =
|
||||
if result[:status] == :success
|
||||
result[:body]
|
||||
else
|
||||
{}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user