From e0fc9590370ba4c9d4d864edd2eb7a882f1067b7 Mon Sep 17 00:00:00 2001 From: xxq250 Date: Fri, 31 May 2024 11:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=B5=81=E6=B0=B4=E7=BA=BF?= =?UTF-8?q?=E8=8A=82=E7=82=B9=E5=90=8D=E7=A7=B0=EF=BC=8C=E5=92=8C=E6=A0=87?= =?UTF-8?q?=E8=AF=86=E5=8C=BA=E5=88=86label?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/api/v1/projects/pipelines_controller.rb | 4 ++-- app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/api/v1/projects/pipelines_controller.rb b/app/controllers/api/v1/projects/pipelines_controller.rb index ce662f24d..888e68960 100644 --- a/app/controllers/api/v1/projects/pipelines_controller.rb +++ b/app/controllers/api/v1/projects/pipelines_controller.rb @@ -110,7 +110,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController # Rails.logger.info "input_node=====0===#{input_node["name"]}======#{input_node["inputs"]}" node = Action::Node.find_by(name: input_node["name"]) next if node.blank? - node.cust_name = input_node["label"] if input_node["label"].present? + node.label = input_node["label"] if input_node["label"].present? run_values = {} input_values = {} if input_node["inputs"].present? @@ -173,7 +173,7 @@ class Api::V1::Projects::PipelinesController < Api::V1::BaseController params_nodes.each do |input_node| node = Action::Node.find_by(name: input_node["name"]) next if node.blank? - node.cust_name = input_node["labelf"] if input_node["label"].present? + node.label = input_node["label"] if input_node["label"].present? run_values = {} input_values = {} if input_node["inputs"].present? diff --git a/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb b/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb index d25705687..cbe7a8333 100644 --- a/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb +++ b/app/views/api/v1/projects/pipelines/build_pipeline.yaml.erb @@ -44,7 +44,7 @@ jobs: runs-on: 'ubuntu-latest' steps: <%@steps_nodes.each do |node| %> - - name: <%=node.cust_name || node.name %> + - name: <%=node.label || node.name %> <% if node.name !="shell" %> uses: <%=node.full_name %> <% end %>