mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 12:45:46 +08:00
Merge branch 'dev_trustie' into dev_devops
This commit is contained in:
@@ -66,6 +66,8 @@ class RepositoriesController < ApplicationController
|
||||
end
|
||||
|
||||
def create_file
|
||||
content_params = content_params.merge(committer: {email: current_user.mail, name: current_user.login})
|
||||
|
||||
interactor = Gitea::CreateFileInteractor.call(current_user.gitea_token, @project.owner.login, content_params)
|
||||
if interactor.success?
|
||||
@file = interactor.result
|
||||
|
||||
Reference in New Issue
Block a user