debian-mirror-gitlab/app/assets/javascripts/pipeline_wizard/validators.js

5 lines
142 B
JavaScript
Raw Normal View History

2022-05-07 20:08:51 +05:30
import { isSeq } from 'yaml';
export const isValidStepSeq = (v) =>
isSeq(v) && v.items.every((s) => s.get('inputs') && s.get('template'));