mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
构建流水线yaml, 返回json
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user