新增:load_project新增repository

This commit is contained in:
yystopf 2023-02-03 18:20:00 +08:00
parent 2772b97e32
commit bef1350933
1 changed files with 2 additions and 1 deletions

View File

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