新增: filenmae

This commit is contained in:
yystopf 2025-02-11 15:33:15 +08:00
parent 62eeda7007
commit bbbf4283d4
1 changed files with 1 additions and 0 deletions

View File

@ -46,6 +46,7 @@ class Api::V1::Projects::Actions::ActionsController < Api::V1::Projects::Actions
Rails.logger.info("#{file}不能识别流水线类型")
end
@result << {
filename: file,
name: file.to_s.gsub(".yml","").gsub(".yaml","") ,
branch: last_action_run.present? ? last_action_run.ref.gsub("refs/heads/","") : @project.default_branch,
pipeline_type: pipeline_type,