mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-16 09:45:57 +08:00
流水线pipeline_type
This commit is contained in:
@@ -87,6 +87,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController
|
||||
@pipeline.file_name = ".gitea/workflows/#{@pipeline.pipeline_name}.yml"
|
||||
@pipeline.branch = params[:branch] || @project.default_branch
|
||||
@pipeline.is_graphic_design = params[:pipeline_type] == 2 ? true : false
|
||||
@pipeline.pipeline_type = params[:pipeline_type] if params[:pipeline_type].present?
|
||||
@pipeline.save!
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user