verctl 0.3.13

Stack-agnostic version PRs from Changesets-format fragments
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import rego.v1

deny contains msg if {
	some name, job in input.jobs
	some step in job.steps
	run := step.run
	is_string(run)
	normalized := replace(run, "\r\n", "\n")
	joined := replace(normalized, "\\\n", "")
	some line in split(joined, "\n")
	regex.match(`(^|[[:space:]])mise[[:space:]][^;&|]*\brun[[:space:]][^;&|]*\bver[[:space:]]+--`, line)
	msg := sprintf("%s: mise run ver -- is mise's separator; use mise run ver <verb>", [name])
}