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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

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'));