新增:load_project新增repository

This commit is contained in:
2023-02-03 18:20:00 +08:00
parent 2772b97e32
commit bef1350933

View File

@@ -6,7 +6,8 @@ module Api::ProjectHelper
repo = params[:repo]
@project, @owner = Project.find_with_namespace(namespace, repo)
@repository = @project&.repository
if @project
logger.info "###########project founded"
@project