构建流水线yaml, 返回json

This commit is contained in:
xxq250 2024-05-23 16:26:09 +08:00
parent 8c077ef9a8
commit d2c44ed163
1 changed files with 1 additions and 1 deletions

View File

@ -138,7 +138,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
private
def get_pipeline_file_sha(file_name, branch)
file_path_uri = URI.parse(file_name)
file_path_uri = URI.parse(URI.encode(file_name))
interactor = Repositories::EntriesInteractor.call(@project.owner, @project.identifier, file_path_uri, ref: branch || @project.default_branch)
if interactor.success?
file = interactor.result