增加流水线节点名称,和标识区分

This commit is contained in:
2024-05-31 10:56:46 +08:00
parent 62de4a0ac8
commit b96d52a84d
13 changed files with 39 additions and 9 deletions

View File

@@ -33,5 +33,7 @@ class Action::Pipeline < ApplicationRecord
belongs_to :user, optional: true
belongs_to :project
validates :name, presence: { message: "不能为空" }
validates :json, length: { maximum: 65535, too_long: "不能超过65535个字符"}
validates :yaml, length: { maximum: 65535, too_long: "不能超过65535个字符"}
end