mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-02 19:30:48 +08:00
构建流水线yaml,保存和更新,分支参数
This commit is contained in:
@@ -134,12 +134,14 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
|
|||||||
if interactor.success?
|
if interactor.success?
|
||||||
file = interactor.result
|
file = interactor.result
|
||||||
file['sha']
|
file['sha']
|
||||||
|
else
|
||||||
|
nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def content_params
|
def content_params
|
||||||
{
|
{
|
||||||
filepath: ".gitea/workflows/#{@pipeline.pipeline_name}.yaml",
|
filepath: ".gitea/workflows/#{URI.parse(@pipeline.pipeline_name)}.yaml",
|
||||||
branch: @pipeline.branch,
|
branch: @pipeline.branch,
|
||||||
new_branch: @pipeline.branch,
|
new_branch: @pipeline.branch,
|
||||||
content: @pipeline.yaml,
|
content: @pipeline.yaml,
|
||||||
|
|||||||
Reference in New Issue
Block a user