构建流水线yaml, 返回json

This commit is contained in:
xxq250 2024-05-23 16:40:43 +08:00
parent d2c44ed163
commit a6343d5442
1 changed files with 1 additions and 1 deletions

View File

@ -153,7 +153,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
filepath: ".gitea/workflows/#{@pipeline.pipeline_name}.yml", filepath: ".gitea/workflows/#{@pipeline.pipeline_name}.yml",
branch: @pipeline.branch, branch: @pipeline.branch,
new_branch: @pipeline.branch, new_branch: @pipeline.branch,
content: Base64.encode64(@pipeline.yaml), content: @pipeline.yaml,
message: "#{opt} pipeline", message: "#{opt} pipeline",
committer: { committer: {
email: current_user.mail, email: current_user.mail,