构建流水线yaml, 返回json
This commit is contained in:
parent
8c077ef9a8
commit
d2c44ed163
|
@ -138,7 +138,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
|
||||||
private
|
private
|
||||||
|
|
||||||
def get_pipeline_file_sha(file_name, branch)
|
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)
|
interactor = Repositories::EntriesInteractor.call(@project.owner, @project.identifier, file_path_uri, ref: branch || @project.default_branch)
|
||||||
if interactor.success?
|
if interactor.success?
|
||||||
file = interactor.result
|
file = interactor.result
|
||||||
|
|
Loading…
Reference in New Issue