debian-mirror-gitlab/app/assets/javascripts/pipeline_wizard/validators.js
2022-05-07 20:08:51 +05:30

4 lines
142 B
JavaScript

import { isSeq } from 'yaml';
export const isValidStepSeq = (v) =>
isSeq(v) && v.items.every((s) => s.get('inputs') && s.get('template'));